|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGDbGetQueriesCmd
The TWGDbGetQueriesCmd command is used for getting information about existing saved database queries. This command returns can request information about a single query, all the queries in a single physical Director database, or all queries in all Director databases.
The TWGDbGetQueriesCmd 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):
A TWGDbQueryReply object will be returned as output parameter 0 if return code is 0 and information about only one query is requested. A vector containing list of TWGDbQueryReply objects will be returned as output parameter 0 if return code is 0 and information about more than one query is requested.
TWGDatabaseConstants
,
TWGDbQueryReply
,
Serialized FormField Summary | |
---|---|
static int |
TWG_DB_GET_QUERY_CMD
Command code for the get queries command |
static int |
TWG_DB_GET_QUERY_CMD_INTEL
Command code for the get queries command with intelByteBuffer parameters |
Constructor Summary | |
---|---|
TWGDbGetQueriesCmd()
Constructor for the building the command. |
|
TWGDbGetQueriesCmd(byte[] buf)
The constructor is to be used only in the Director engine. |
|
TWGDbGetQueriesCmd(long queryId)
Constructor to get guery information for a specific query. |
|
TWGDbGetQueriesCmd(java.lang.Long queryId)
Constructor to get guery information for a specific query. |
|
TWGDbGetQueriesCmd(java.lang.String db_name)
Constructor for the building the command. |
|
TWGDbGetQueriesCmd(java.lang.String db_name,
StringValueSet table_classes)
Constructor for the command with an additional parameter for specifiying a list of table class names. |
|
TWGDbGetQueriesCmd(StringValueSet table_classes)
Constructor for the command with a parameter for specifiying a list of table class names. |
Method Summary | |
---|---|
protected int |
getBufferLen()
Get the length of the buffer required to hold this object in intel byte buffer format |
java.lang.String |
getDatabaseName()
Get the database name. |
java.util.Locale |
getLocale()
Get the locale to be used for translating query table and column names, as well as titles for default queries. |
java.lang.Long |
getQueryId()
Get persistent object id of the requested query. |
StringValueSet |
getTableClasses()
Get the table classes. |
void |
setIntelByteBufferParms(Command cmd)
This method is public as an implementation side effect. |
void |
setLocale(java.util.Locale loc)
Set the locale to be used for translating query table and column names, as well as titles for default queries. |
void |
setLocale(java.lang.String language,
java.lang.String country)
Set the locale to be used for translating query table and column names, as well as titles for default queries. |
void |
setLocale(java.lang.String language,
java.lang.String country,
java.lang.String variant)
Set the locale to be used for translating query table and column names, as well as titles for default queries. |
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_GET_QUERY_CMD
public static final int TWG_DB_GET_QUERY_CMD_INTEL
Constructor Detail |
public TWGDbGetQueriesCmd(java.lang.String db_name)
The default Locale will be used for translation.
db_name
- - the database from which the information is retrieved.
Use * if queries from all databases should be retrievedpublic TWGDbGetQueriesCmd()
public TWGDbGetQueriesCmd(java.lang.String db_name, StringValueSet table_classes)
db_name
- - the database from which the information is retrieved.
Use * if queries from all databases should be retrievedtable_classes
- - a StringValueSet containing a list of table classespublic TWGDbGetQueriesCmd(StringValueSet table_classes)
table_classes
- - a StringValueSet containing a list of table classespublic TWGDbGetQueriesCmd(java.lang.Long queryId)
queryId
- - the persistent object id of the querypublic TWGDbGetQueriesCmd(long queryId)
queryId
- - the persistent object id of the querypublic TWGDbGetQueriesCmd(byte[] buf) throws TWGDbException
Constructor using an intel byte buffer format of this command as input
buf
- = the intel byte buffer format of the commandMethod Detail |
public void setLocale(java.util.Locale loc)
loc
- - a Locale for the translationspublic void setLocale(java.lang.String language, java.lang.String country)
language
- - the language for the Locale.country
- - the country for the Locale.public void setLocale(java.lang.String language, java.lang.String country, java.lang.String variant)
language
- - the language for the Locale.country
- - the country for the Locale.variant
- - the language variantpublic java.util.Locale getLocale()
public java.lang.String getDatabaseName()
public StringValueSet getTableClasses()
public java.lang.Long getQueryId()
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 |