com.tivoli.twg.engine
Class TWGDbStoreRowsCmd

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGDbStoreRowsCmd
All Implemented Interfaces:
java.io.Serializable

public class TWGDbStoreRowsCmd
extends java.lang.Object
implements java.io.Serializable

TWGDbStoreRowsCmd encapsulates the parameters for inserting or updating rows in one or more database tables. All the tables updated must reside in a single physical database.

The TWGDbStoreRowsCmd object is passed as a parameter on an IPC command to the database update service node.

A TWGDbReply object is returned as output parameter 0 for this command.

Command behavior:

For tables that have keys this command handles both inserts and updates. The database will insert the row if a row with that key does not exist, otherwise it will update the existing row with the new data.

For tables that do not have keys all rows will be inserted. There is no capability for updating these rows.

Each TWGDbStoreRows object must contain values for all key columns for keyed tables. Values do not have to be specified for columns that are not part of a key.

If a value is not provided for a non-key column the database engine will treat these columns differently for inserted and updated rows:

Return codes (all found in TWGDatabaseConstants):