2828import org .labkey .remoteapi .query .DeleteRowsCommand ;
2929import org .labkey .remoteapi .query .Filter ;
3030import org .labkey .remoteapi .query .InsertRowsCommand ;
31- import org .labkey .remoteapi .query .SaveRowsCommand ;
32- import org .labkey .remoteapi .query .SaveRowsResponse ;
31+ import org .labkey .remoteapi .query .RowsResponse ;
3332import org .labkey .remoteapi .query .SelectRowsCommand ;
3433import org .labkey .remoteapi .query .SelectRowsResponse ;
3534import org .labkey .remoteapi .query .UpdateRowsCommand ;
@@ -110,13 +109,13 @@ public int getRowCount(String schema, String query) throws Exception
110109 return resp .getRowCount ().intValue ();
111110 }
112111
113- public SaveRowsResponse insertRow (String schema , String query , Map <String , Object > row , boolean expectFailure ) throws CommandException
112+ public RowsResponse insertRow (String schema , String query , Map <String , Object > row , boolean expectFailure ) throws CommandException
114113 {
115114 try
116115 {
117116 InsertRowsCommand insertCmd = new InsertRowsCommand (schema , query );
118117 insertCmd .addRow (row );
119- SaveRowsResponse resp = insertCmd .execute (getConnection (), _containerPath );
118+ RowsResponse resp = insertCmd .execute (getConnection (), _containerPath );
120119
121120 if (expectFailure )
122121 throw new RuntimeException ("Expected command to fail" );
@@ -137,14 +136,14 @@ public SaveRowsResponse insertRow(String schema, String query, Map<String, Objec
137136 }
138137 }
139138
140- public SaveRowsResponse updateRow (String schema , String query , Map <String , Object > row , boolean expectFailure ) throws CommandException
139+ public RowsResponse updateRow (String schema , String query , Map <String , Object > row , boolean expectFailure ) throws CommandException
141140 {
142141 try
143142 {
144- SaveRowsCommand cmd = new UpdateRowsCommand (schema , query );
143+ UpdateRowsCommand cmd = new UpdateRowsCommand (schema , query );
145144 cmd .addRow (row );
146145
147- SaveRowsResponse resp = cmd .execute (getConnection (), _containerPath );
146+ RowsResponse resp = cmd .execute (getConnection (), _containerPath );
148147
149148 if (expectFailure )
150149 throw new RuntimeException ("Expected command to fail" );
@@ -172,14 +171,14 @@ public void deleteIfExists(String schema, String query, Map<String, Object> row,
172171 }
173172 }
174173
175- public SaveRowsResponse deleteRow (String schema , String query , Map <String , Object > row , String pkCol , boolean expectFailure ) throws CommandException
174+ public RowsResponse deleteRow (String schema , String query , Map <String , Object > row , String pkCol , boolean expectFailure ) throws CommandException
176175 {
177176 try
178177 {
179178 DeleteRowsCommand cmd = new DeleteRowsCommand (schema , query );
180179 cmd .addRow (row );
181180
182- SaveRowsResponse resp = cmd .execute (getConnection (), _containerPath );
181+ RowsResponse resp = cmd .execute (getConnection (), _containerPath );
183182 if (expectFailure )
184183 throw new RuntimeException ("Expected command to fail" );
185184
@@ -445,7 +444,7 @@ public int deleteAllRecords(String schemaName, String queryName, Filter filter)
445444
446445 if (!dr .getRows ().isEmpty ())
447446 {
448- SaveRowsResponse resp = dr .execute (getConnection (), _containerPath );
447+ RowsResponse resp = dr .execute (getConnection (), _containerPath );
449448 return resp .getRowsAffected ().intValue ();
450449 }
451450
0 commit comments