|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGDbCreateQueryCmd
TWGDbCreateQueryCmd encapsulates the parameters for creating a saved query or for creating and running a dynamic query that is not saved. The TWGDbQueryParms object is used to set properties for the query.
The TWGDbCreateQueryCmd 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):
Query id for the new query will be returned as parameter 0 (Java Long) if the return code is 0.
TWGDatabaseConstants
,
Serialized FormField Summary | |
---|---|
static int |
TWG_DB_CREATE_QUERY_CMD
Command code for the create query command that creates a saved query |
static int |
TWG_DB_CREATE_QUERY_CMD_INTEL
Command code for the creating a saved query using a command with intelByteBuffer parameters. |
static int |
TWG_DB_CREATE_RUN_QUERY_CMD
Command code for the creating and running running a dynamic query that is not permanently saved |
static int |
TWG_DB_CREATE_RUN_QUERY_CMD_INTEL
Command code for the creating and running a dynamic query that is not saved using a command with intelByteBuffer parameters |
Constructor Summary | |
---|---|
TWGDbCreateQueryCmd(byte[] buf)
This constructor is to be used only in the Director engine. |
|
TWGDbCreateQueryCmd(byte[] localeBuf,
byte[] parmsBuf)
The constructor is only to be used in Director engine. |
|
TWGDbCreateQueryCmd(TWGDbQueryParms query_parms)
Constructor for building the command. |
Method Summary | |
---|---|
java.util.Locale |
getLocale()
This method applies to only the TWG_DB_CREATE_RUN_QUERY_CMD. |
TWGDbQueryParms |
getQueryParms()
Get reference to the TWGDbQueryParms for the command. |
void |
setIntelByteBufferParms(Command cmd)
This method is public as an implementation side effect. |
void |
setLocale(java.util.Locale queryLocale)
This method applies to only the TWG_DB_CREATE_RUN_QUERY_CMD. |
void |
setLocale(java.lang.String language,
java.lang.String country)
This method applies to only the TWG_DB_CREATE_RUN_QUERY_CMD. |
void |
setLocale(java.lang.String language,
java.lang.String country,
java.lang.String variant)
This method applies to only the TWG_DB_CREATE_RUN_QUERY_CMD. |
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_CREATE_QUERY_CMD
public static final int TWG_DB_CREATE_RUN_QUERY_CMD
public static final int TWG_DB_CREATE_QUERY_CMD_INTEL
public static final int TWG_DB_CREATE_RUN_QUERY_CMD_INTEL
Constructor Detail |
public TWGDbCreateQueryCmd(TWGDbQueryParms query_parms)
query_parms
- - the query parametersTWGDbQueryParms
public TWGDbCreateQueryCmd(byte[] buf) throws TWGDbException
Constructor for building the command using an intel byte buffer format of the TWGDbQueryParms object. This is used for the TWG_DB_CREATE_QUERY_CMD_INTEL command
buf
- - the intel byte buffer commandTWGDbQueryParms
public TWGDbCreateQueryCmd(byte[] localeBuf, byte[] parmsBuf) throws TWGDbException
Constructor for building the command using an intel byte buffer format of the command and the locale. This is used for the TWG_DB_CREATE_RUN_QUERY_CMD_INTEL command
TWGDbQueryParms
Method Detail |
public TWGDbQueryParms getQueryParms()
TWGDbQueryParms
public void setLocale(java.util.Locale queryLocale)
queryLocale
- - Locale for translationspublic void setLocale(java.lang.String language, java.lang.String country)
language
- - the language to display for the query result.country
- - the country that the language is spoken in.public void setLocale(java.lang.String language, java.lang.String country, java.lang.String variant)
language
- - the language to display for the query result.country
- - the country that the language is spoken in.variant
- - the variant of the language.public java.util.Locale getLocale()
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |