|
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<CfgDNGroup>
com.genesyslab.platform.applicationblocks.com.queries.CfgDNGroupQuery
public class CfgDNGroupQuery
Class designed to construct queries to the Configuration Service for reading CfgDNGroup object(s).
ConfService
,
CfgDNGroup
Constructor Summary | |
---|---|
CfgDNGroupQuery()
Create query object with default filter value for configuration objects of CfgDNGroup type. |
|
CfgDNGroupQuery(IConfService service)
Create query object with default filter value for configuration objects of CfgDNGroup type. |
|
CfgDNGroupQuery(int dbid)
Create query object with filter initialized for the object DBID. |
|
CfgDNGroupQuery(java.lang.String name)
Create query object with filter initialized for object name value. |
Method Summary | |
---|---|
AsyncRequestResult<CfgDNGroup> |
beginExecute(Action<AsyncRequestResult<CfgDNGroup>> callback,
java.lang.Object state)
Begins the asynchronous execution of the current query. |
java.util.Collection<CfgDNGroup> |
execute()
Executes the query and returns a list of CfgDNGroup objects. |
CfgDNGroup |
executeSingleResult()
Executes a query the result of which is a single object. |
int |
getDbid()
A unique identifier of a group. |
int |
getDnDbid()
A unique identifier of a DN. |
CfgDNGroupType |
getDnGroupType()
Type of a DN group (see
CfgDNGroupType
). |
java.lang.String |
getName()
Name of a DN group. |
CfgObjectState |
getState()
Current state of a DN group (see
CfgObjectState
). |
int |
getTenantDbid()
A unique identifier of a tenant. |
void |
setDbid(int value)
A unique identifier of a group. |
void |
setDnDbid(int value)
A unique identifier of a DN. |
void |
setDnGroupType(CfgDNGroupType value)
Type of a DN group (see
CfgDNGroupType
). |
void |
setName(java.lang.String value)
Name of a DN group. |
void |
setState(CfgObjectState value)
Current state of a DN group (see
CfgObjectState
). |
void |
setTenantDbid(int value)
A unique identifier of a tenant. |
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 CfgDNGroupQuery()
public CfgDNGroupQuery(IConfService service)
service
- The configuration service to use when executing this querypublic CfgDNGroupQuery(int dbid)
dbid
- value for filter on object dbidsetDbid(int)
public CfgDNGroupQuery(java.lang.String name)
name
- value for filter on object namesetName(String)
Method Detail |
---|
public CfgDNGroup executeSingleResult() throws ConfigException
executeSingleResult
in class CfgQuery<CfgDNGroup>
ConfigException
public java.util.Collection<CfgDNGroup> execute() throws ConfigException, java.lang.InterruptedException
execute
in class CfgQuery<CfgDNGroup>
ConfigException
java.lang.InterruptedException
public AsyncRequestResult<CfgDNGroup> beginExecute(Action<AsyncRequestResult<CfgDNGroup>> 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 setTenantDbid(int value)
value
- filter value on field "tenant_dbid".public final int getTenantDbid()
setTenantDbid(int)
public final void setDnGroupType(CfgDNGroupType value)
CfgDNGroupType
). If
specified, Configuration Server will return information only about
the DN groups of this type.
value
- filter value on field "dn_group_type".public final CfgDNGroupType getDnGroupType()
CfgDNGroupType
). If
specified, Configuration Server will return information only about
the DN groups of this type.
setDnGroupType(CfgDNGroupType)
public final void setDnDbid(int value)
value
- filter value on field "dn_dbid".public final int getDnDbid()
setDnDbid(int)
public final void setState(CfgObjectState value)
CfgObjectState
). If specified, Configuration Server
will return information only about DN groups 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 DN groups that are currently
in this state.
setState(CfgObjectState)
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 setDbid(int value)
value
- filter value on field "dbid".public final int getDbid()
setDbid(int)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |