|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.applicationblocks.com.CfgQuery<TT>
com.genesyslab.platform.applicationblocks.com.CfgFilterBasedQuery<CfgService>
com.genesyslab.platform.applicationblocks.com.queries.CfgServiceQuery
public class CfgServiceQuery
Class designed to construct queries to the Configuration Service for reading CfgService object(s).
ConfService
,
CfgService
Constructor Summary | |
---|---|
CfgServiceQuery()
Create query object with default filter value for configuration objects of CfgService type. |
|
CfgServiceQuery(IConfService service)
Create query object with default filter value for configuration objects of CfgService type. |
|
CfgServiceQuery(int dbid)
Create query object with filter initialized for the object DBID. |
|
CfgServiceQuery(java.lang.String name)
Create query object with filter initialized for object name value. |
Method Summary | |
---|---|
AsyncRequestResult<CfgService> |
beginExecute(Action<AsyncRequestResult<CfgService>> callback,
java.lang.Object state)
Begins the asynchronous execution of the current query. |
java.util.Collection<CfgService> |
execute()
Executes the query and returns a list of CfgService objects. |
CfgService |
executeSingleResult()
Executes a query the result of which is a single object. |
int |
getAppDbid()
A unique identifier of an application. |
CfgAppType |
getAppType()
Type of the application (see
CfgAppType
). |
int |
getDbid()
A unique identifier of a service. |
int |
getFolderDbid()
A unique identifier of a folder. |
java.lang.String |
getName()
Name of a service. |
int |
getScsDbid()
A unique identifier of a Service Control Server. |
CfgObjectState |
getState()
Current state of a service (see
CfgObjectState
). |
int |
getTenantDbid()
A unique identifier of a tenant. |
int |
getType()
The type of the solution. |
void |
setAppDbid(int value)
A unique identifier of an application. |
void |
setAppType(CfgAppType value)
Type of the application (see
CfgAppType
). |
void |
setDbid(int value)
A unique identifier of a service. |
void |
setFolderDbid(int value)
A unique identifier of a folder. |
void |
setName(java.lang.String value)
Name of a service. |
void |
setScsDbid(int value)
A unique identifier of a Service Control Server. |
void |
setState(CfgObjectState value)
Current state of a service (see
CfgObjectState
). |
void |
setTenantDbid(int value)
A unique identifier of a tenant. |
void |
setType(int value)
The type of the solution. |
Methods inherited from class com.genesyslab.platform.applicationblocks.com.CfgFilterBasedQuery |
---|
equals, getCfgObjectClass, getCfgObjectType, getDoRequestFolderId, getDoRequestObjectPath, getExtraFilter, getFilter, getInt, getProperty, getQueryObjectClass, getString, hashCode, setDoRequestFolderId, setDoRequestObjectPath, setObjectClass, setProperty, toString |
Methods inherited from class com.genesyslab.platform.applicationblocks.com.CfgQuery |
---|
beginExecute, endExecute, execute, executeSingleResult |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.genesyslab.platform.applicationblocks.com.ICfgQuery |
---|
beginExecute, endExecute, execute, executeSingleResult |
Constructor Detail |
---|
public CfgServiceQuery()
public CfgServiceQuery(IConfService service)
service
- The configuration service to use when executing this querypublic CfgServiceQuery(int dbid)
dbid
- value for filter on object dbidsetDbid(int)
public CfgServiceQuery(java.lang.String name)
name
- value for filter on object namesetName(String)
Method Detail |
---|
public CfgService executeSingleResult() throws ConfigException
executeSingleResult
in class CfgQuery<CfgService>
ConfigException
public java.util.Collection<CfgService> execute() throws ConfigException, java.lang.InterruptedException
execute
in class CfgQuery<CfgService>
ConfigException
java.lang.InterruptedException
public AsyncRequestResult<CfgService> beginExecute(Action<AsyncRequestResult<CfgService>> callback, java.lang.Object state) throws ConfigException
callback
- The method to be called when query results are availablestate
- a user-defined object that qualifies or contains information about an asynchronous operation
ConfigException
public final void setDbid(int value)
value
- filter value on field "dbid".public final int getDbid()
setDbid(int)
public final void setName(java.lang.String value)
value
- filter value on field "name".public final java.lang.String getName()
setName(String)
public final void setTenantDbid(int value)
value
- filter value on field "tenant_dbid".public final int getTenantDbid()
setTenantDbid(int)
public final void setAppType(CfgAppType value)
CfgAppType
). If specified, Configuration Server will return information
only about the services that involve this application type.
value
- filter value on field "app_type".public final CfgAppType getAppType()
CfgAppType
). If specified, Configuration Server will return information
only about the services that involve this application type.
setAppType(CfgAppType)
public final void setState(CfgObjectState value)
CfgObjectState
). If specified, Configuration Server
will return information only about services that are currently in
this state.
value
- filter value on field "state".public final CfgObjectState getState()
CfgObjectState
). If specified, Configuration Server
will return information only about services that are currently in
this state.
setState(CfgObjectState)
public final void setAppDbid(int value)
value
- filter value on field "app_dbid".public final int getAppDbid()
setAppDbid(int)
public final void setScsDbid(int value)
value
- filter value on field "scs_dbid".public final int getScsDbid()
setScsDbid(int)
public final void setType(int value)
value
- filter value on field "type".public final int getType()
setType(int)
public final void setFolderDbid(int value)
value
- filter value on field "folder_dbid".public final int getFolderDbid()
setFolderDbid(int)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |