|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGDbRunQueryCmd
TWGDbRunQueryCmd: run database query This command is for retrieving data from database tables based on a query. The query must be for tables in one physical database. This class can be serialized for use with the TWG IPC.
Field Summary | |
---|---|
static int |
TWG_DB_RUN_QUERY_CMD
|
static int |
TWG_DB_RUN_QUERY_CMD_INTEL
|
Constructor Summary | |
---|---|
protected |
TWGDbRunQueryCmd(byte[] buf)
Constructor using an intel byte buffer format of this command as input |
|
TWGDbRunQueryCmd(long qId)
Constructor for the building the command. |
|
TWGDbRunQueryCmd(long qId,
LongValueSet managedObjId)
TWGDbRunQueryCmd is used for running an existing query. |
Method Summary | |
---|---|
protected int |
getBufferLen()
Get the length of the buffer required to hold this object in intel byte buffer format |
java.util.Locale |
getLocale()
Get the persistent object id of the query |
LongValueSet |
getManagedObjId()
Get the list managed object used for targetted queries |
java.lang.Long |
getQueryId()
Get the persistent object id of the query |
void |
setIntelByteBufferParms(Command cmd)
This method is public as an implementation side effect. |
void |
setLocale(java.util.Locale queryLocale)
Set the Locale to be used in translations |
void |
setLocale(java.lang.String language,
java.lang.String country)
Set the locale for translations |
void |
setLocale(java.lang.String language,
java.lang.String country,
java.lang.String variant)
Set the locale for translations |
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_RUN_QUERY_CMD
public static final int TWG_DB_RUN_QUERY_CMD_INTEL
Constructor Detail |
public TWGDbRunQueryCmd(long qId, LongValueSet managedObjId)
TWGDbRunQueryCmd is used for running an existing query. The persistent object id for the query is used to identify the query to be run.
The TWGDbRunQueryCmd object is passed as a parameter on an IPC command to the database query service node (TWGDatabaseConstants.QUERY_SERVICE_NODE_NAME).
Return codes (all found in TWGDatabaseConstants):
TWGDbQueryResults will be returned as parameter 0 if return code is 0.
qId
- - the persistent object idTWGDatabaseConstants
,
Constructor for the building the command.
public TWGDbRunQueryCmd(long qId)
qId
- - the persistent object idprotected TWGDbRunQueryCmd(byte[] buf) throws TWGDbException
This method should be called only in the Director server engine.
buf
- = the intel byte buffer format of the commandMethod Detail |
public void setLocale(java.util.Locale queryLocale)
public void setLocale(java.lang.String language, java.lang.String country)
public void setLocale(java.lang.String language, java.lang.String country, java.lang.String variant)
public java.util.Locale getLocale()
public java.lang.Long getQueryId()
public LongValueSet getManagedObjId()
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 errorsprotected int getBufferLen()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |