Performing a batch update

To perform a batch update, the entity accessing the CHA creates a SortedTable and puts values into it using the stPut (key, object) method as shown in the following example:
aTable = new SortedTable() ;
aTable.stPut("a","1") ;
aTable.stPut("b","2") ;
aTable.stPut("c","3") ;

The entity sends the SortedTable to the server side of the CHA context using the following method:

public int setValueAt(SortedTable aSortedTable) throws DSEInvalidRequestException

This method returns 0 if the client side context successfully sent all of the updates to the server side and the server side performed all of the updates. If method returns any other value, that value indicates which element in the table the server failed to set. The server also does not set any subsequent elements. For example, if the method returns 2, the server did not successfully set the second element in the table and stopped processing the table at that element.

Related concepts
Batch update