77import org .labkey .api .data .TableInfo ;
88import org .labkey .api .data .triggers .Trigger ;
99import org .labkey .api .data .triggers .TriggerFactory ;
10+ import org .labkey .api .query .QueryUpdateService ;
1011import org .labkey .api .query .ValidationException ;
1112import org .labkey .api .security .User ;
1213import org .labkey .api .util .logging .LogHelper ;
@@ -35,9 +36,9 @@ public Factory()
3536 }
3637
3738 @ Override
38- public void beforeInsert (TableInfo table , Container c , User user , @ Nullable Map <String , Object > newRow , ValidationException errors , Map <String , Object > extraContext ) throws ValidationException
39+ public void beforeInsert (TableInfo table , Container c , User user , @ Nullable QueryUpdateService . InsertOption insertOption , @ Nullable Map <String , Object > newRow , ValidationException errors , Map <String , Object > extraContext ) throws ValidationException
3940 {
40- beforeInsert (table , c , user , newRow , errors , extraContext , null );
41+ beforeInsert (table , c , user , insertOption , newRow , errors , extraContext , null );
4142 }
4243
4344 @ Override
@@ -64,13 +65,13 @@ protected void afterUpsert(TableInfo table, Container c, User user, @Nullable Ma
6465 }
6566
6667 @ Override
67- public void beforeInsert (TableInfo table , Container c , User user , @ Nullable Map <String , Object > newRow , ValidationException errors , Map <String , Object > extraContext , @ Nullable Map <String , Object > existingRecord ) throws ValidationException
68+ public void beforeInsert (TableInfo table , Container c , User user , @ Nullable QueryUpdateService . InsertOption insertOption , @ Nullable Map <String , Object > newRow , ValidationException errors , Map <String , Object > extraContext , @ Nullable Map <String , Object > existingRecord ) throws ValidationException
6869 {
6970 beforeUpsert (table , c , user , newRow , existingRecord , errors , extraContext );
7071 }
7172
7273 @ Override
73- public void beforeUpdate (TableInfo table , Container c , User user , @ Nullable Map <String , Object > newRow , @ Nullable Map <String , Object > oldRow , ValidationException errors , Map <String , Object > extraContext ) throws ValidationException
74+ public void beforeUpdate (TableInfo table , Container c , User user , @ Nullable QueryUpdateService . InsertOption insertOption , @ Nullable Map <String , Object > newRow , @ Nullable Map <String , Object > oldRow , ValidationException errors , Map <String , Object > extraContext ) throws ValidationException
7475 {
7576 beforeUpsert (table , c , user , newRow , oldRow , errors , extraContext );
7677 }
0 commit comments