|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGDbDeleteRowsCmd
TWGDbDeleteRowsCmd encapsulates the parameters for deleting rows in a single table that meet a specified condition. It is passed as a parameter on an IPC command to the database update service node.
Return codes (all found in TWGDatabaseConstants):
TWGDatabaseConstants
,
Serialized FormField Summary | |
---|---|
static int |
TWG_DB_DELETE_ROWS_CMD
Command code for the delete rows command |
static int |
TWG_DB_DELETE_ROWS_CMD_INTEL
Command code for the delete rows command with intelByteBuffer parameters. |
Constructor Summary | |
---|---|
protected |
TWGDbDeleteRowsCmd(Command cmd)
This method is protected as an implementation side effect. |
|
TWGDbDeleteRowsCmd(java.lang.String version,
java.lang.String db,
TWGDbColumnFilter column_filter)
Constructor for the building the command. |
|
TWGDbDeleteRowsCmd(java.lang.String db,
TWGDbColumnFilter column_filter)
Constructor for the building the command. |
|
TWGDbDeleteRowsCmd(TWGDbColumnFilter column_filter)
Constructor for the building the command. |
Method Summary | |
---|---|
void |
addCondition(TWGDbColumnFilter column_filter,
java.lang.String op)
Add a column filter and a logical operator(TWGDatabaseConstants.OR or TWGDatabaseConstants.AND) used to combine the two filters. |
boolean |
getAutoInventoryUpdateSignal()
Check to see if automatic inventory update request is set |
TWGDbColumnFilter |
getColumnFilter()
Get the first column filter. |
java.lang.String |
getDbName()
Get the database name parameter from the command |
Vect |
getFilters()
Get column filters that define which rows are to be deleted |
int |
getNumberOfFilters()
Get number of column filters in the command. |
int |
getNumberOfOperators()
Get number of logical operators in the command. |
Vect |
getOperators()
Get column logical operators in the command that combine filters. |
java.lang.String |
getVersion()
Get the database version requested parameter from the command |
void |
setAutoInventoryUpdateSignal(boolean do_signal)
Request to automatically signal inventory update once delete of rows is completed |
void |
setIntelByteBufferParms(Command cmd)
This method is public as an implementation side effect. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TWG_DB_DELETE_ROWS_CMD
public static final int TWG_DB_DELETE_ROWS_CMD_INTEL
Constructor Detail |
public TWGDbDeleteRowsCmd(java.lang.String version, java.lang.String db, TWGDbColumnFilter column_filter)
version
- - the version of the database requested by the client.
Database versions are found in TWGDatabaseConstants.db
- - the name of the database the table is in.
Database names are found in TWGDatabaseConstants.TWGDbColumnFilter
,
TWGDatabaseConstants
public TWGDbDeleteRowsCmd(TWGDbColumnFilter column_filter)
TWGDbColumnFilter
public TWGDbDeleteRowsCmd(java.lang.String db, TWGDbColumnFilter column_filter)
db
- - the name of the database the table is in.
Database names are found in TWGDatabaseConstants.TWGDbColumnFilter
,
TWGDatabaseConstants
protected TWGDbDeleteRowsCmd(Command cmd) throws TWGDbException
Constructor for the building the command from an IPC command that contains IntelByteBuffer format input parameters for this command
cmd
- - the IPC command
-
- TWGDbException thrown for version errors
-
- TWGDbParameterException thrown for parameter errors
TWGDbException
Method Detail |
public void addCondition(TWGDbColumnFilter column_filter, java.lang.String op) throws TWGDbException
column_filter
- - reference to a TWGDbColumnFilter subclass
object which specifies the condition for
deleting rows in a table.op
- - logical operator. It is either TWGDatabaseConstants.OR or
TWGDatabaseConstants.AND.
TWGDatabaseConstants.AND combines two filters and
evaluates to TRUE when both of the filters are TRUE.
TWGDatabaseConstants.OR combines two filters and
evaluates to TRUE when either filter is TRUE.
TWGDbException
TWGDbColumnFilter
public int getNumberOfFilters()
public Vect getFilters()
public Vect getOperators()
public int getNumberOfOperators()
public java.lang.String getVersion()
public java.lang.String getDbName()
public TWGDbColumnFilter getColumnFilter()
public void setIntelByteBufferParms(Command cmd) throws TWGDbException
Build IntelByteBuffer parms version of this command and add them to the IPC command
cmd
- - the IPC command whose input parameters will be set by this method
-
- TWGDbException thrown for parameter or version errors
TWGDbException
public void setAutoInventoryUpdateSignal(boolean do_signal)
do_signal
- - true if update should be signalled, false if notpublic boolean getAutoInventoryUpdateSignal()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |