com.tivoli.twg.engine
Class TWGDbReplaceManagedObjCmd

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

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

TWGDbReplaceManagedObjCmd encapsulates the parameters for replacing the rows for a managed object in one or more tables with new rows. The object is passed as a parameter on an IPC command to the database update service node.

First all the rows for the managed object are deleted from the tables specified in the replacement rows. Then the replacement rows are inserted into the database tables. If there are tables other than the ones in the replacement rows that need to have rows * deleted a separate Delete Rows request must be issued.

If any of the deletes or inserts fails, the entire set of commands is backed out of the database -- no commit is done.

This command does not support replacing more than one managed object per request

Return codes (all found in TWGDatabaseConstants):