Platform SDK Java 8.5 API Reference

com.genesyslab.platform.applicationblocks.com.queries
Class CfgStatDayQuery

java.lang.Object
  extended by com.genesyslab.platform.applicationblocks.com.CfgQuery<TT>
      extended by com.genesyslab.platform.applicationblocks.com.CfgFilterBasedQuery<CfgStatDay>
          extended by com.genesyslab.platform.applicationblocks.com.queries.CfgStatDayQuery
All Implemented Interfaces:
ICfgFilterBasedQuery<CfgStatDay>, ICfgQuery<CfgStatDay>, ICfgQueryObjectClass<CfgStatDay>

public class CfgStatDayQuery
extends CfgFilterBasedQuery<CfgStatDay>

Class designed to construct queries to the Configuration Service for reading CfgStatDay object(s).

See Also:
ConfService, CfgStatDay

Constructor Summary
CfgStatDayQuery()
          Create query object with default filter value for configuration objects of CfgStatDay type.
CfgStatDayQuery(IConfService service)
          Create query object with default filter value for configuration objects of CfgStatDay type.
CfgStatDayQuery(int dbid)
          Create query object with filter initialized for the object DBID.
CfgStatDayQuery(java.lang.String name)
          Create query object with filter initialized for object name value.
 
Method Summary
 AsyncRequestResult<CfgStatDay> beginExecute(Action<AsyncRequestResult<CfgStatDay>> callback, java.lang.Object state)
          Begins the asynchronous execution of the current query.
 java.util.Collection<CfgStatDay> execute()
          Executes the query and returns a list of CfgStatDay objects.
 CfgStatDay executeSingleResult()
          Executes a query the result of which is a single object.
 int getDbid()
          A unique identifier of a day.
 java.lang.String getName()
          Name of a day.
 CfgStatDayType getStatdayType()
          Type of a stat day (see CfgStatDayTYpe ).
 CfgObjectState getState()
          Current state of a stat day (see CfgObjectState ).
 int getTableDbid()
          A unique identifier of a stat table.
 int getTenantDbid()
          A unique identifier of a tenant.
 void setDbid(int value)
          A unique identifier of a day.
 void setName(java.lang.String value)
          Name of a day.
 void setStatdayType(CfgStatDayType value)
          Type of a stat day (see CfgStatDayTYpe ).
 void setState(CfgObjectState value)
          Current state of a stat day (see CfgObjectState ).
 void setTableDbid(int value)
          A unique identifier of a stat table.
 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

CfgStatDayQuery

public CfgStatDayQuery()
Create query object with default filter value for configuration objects of CfgStatDay type. This query will not be executable.


CfgStatDayQuery

public CfgStatDayQuery(IConfService service)
Create query object with default filter value for configuration objects of CfgStatDay type. If an instance of the configuration service is provided, the query will be executable.

Parameters:
service - The configuration service to use when executing this query

CfgStatDayQuery

public CfgStatDayQuery(int dbid)
Create query object with filter initialized for the object DBID.

Parameters:
dbid - value for filter on object dbid
See Also:
setDbid(int)

CfgStatDayQuery

public CfgStatDayQuery(java.lang.String name)
Create query object with filter initialized for object name value.

Parameters:
name - value for filter on object name
See Also:
setName(String)
Method Detail

executeSingleResult

public CfgStatDay executeSingleResult()
                               throws ConfigException
Executes a query the result of which is a single object. Exception will be thrown if multiple objects are returned by the configuration server.

Overrides:
executeSingleResult in class CfgQuery<CfgStatDay>
Returns:
the CfgStatDay object retrieved as a result of this operation
Throws:
ConfigException

execute

public java.util.Collection<CfgStatDay> execute()
                                         throws ConfigException,
                                                java.lang.InterruptedException
Executes the query and returns a list of CfgStatDay objects.

Overrides:
execute in class CfgQuery<CfgStatDay>
Returns:
A collection of CfgStatDay objects
Throws:
ConfigException
java.lang.InterruptedException

beginExecute

public AsyncRequestResult<CfgStatDay> beginExecute(Action<AsyncRequestResult<CfgStatDay>> callback,
                                                   java.lang.Object state)
                                            throws ConfigException
Begins the asynchronous execution of the current query.

Parameters:
callback - The method to be called when query results are available
state - a user-defined object that qualifies or contains information about an asynchronous operation
Returns:
AsyncRequestResult describing the current operation
Throws:
ConfigException

setTenantDbid

public final void setTenantDbid(int value)
A unique identifier of a tenant. If specified, Configuration Server will return information only about the days that are defined within this tenant.

Parameters:
value - filter value on field "tenant_dbid".

getTenantDbid

public final int getTenantDbid()
A unique identifier of a tenant. If specified, Configuration Server will return information only about the days that are defined within this tenant.

Returns:
filter value or null (if applicable)
See Also:
setTenantDbid(int)

setTableDbid

public final void setTableDbid(int value)
A unique identifier of a stat table. If specified, Configuration Server will return information only about the days that are defined within this table.

Parameters:
value - filter value on field "table_dbid".

getTableDbid

public final int getTableDbid()
A unique identifier of a stat table. If specified, Configuration Server will return information only about the days that are defined within this table.

Returns:
filter value or null (if applicable)
See Also:
setTableDbid(int)

setState

public final void setState(CfgObjectState value)
Current state of a stat day (see CfgObjectState ). If specified, Configuration Server will return information only about stat days that are currently in this state.

Parameters:
value - filter value on field "state".

getState

public final CfgObjectState getState()
Current state of a stat day (see CfgObjectState ). If specified, Configuration Server will return information only about stat days that are currently in this state.

Returns:
filter value or null (if applicable)
See Also:
setState(CfgObjectState)

setDbid

public final void setDbid(int value)
A unique identifier of a day. If specified, Configuration Server will return information only about this day.

Parameters:
value - filter value on field "dbid".

getDbid

public final int getDbid()
A unique identifier of a day. If specified, Configuration Server will return information only about this day.

Returns:
filter value or null (if applicable)
See Also:
setDbid(int)

setName

public final void setName(java.lang.String value)
Name of a day. Shall be specified as a character string. If specified, Configuration Server will return information only about the day(s) with that name.

Parameters:
value - filter value on field "name".

getName

public final java.lang.String getName()
Name of a day. Shall be specified as a character string. If specified, Configuration Server will return information only about the day(s) with that name.

Returns:
filter value or null (if applicable)
See Also:
setName(String)

setStatdayType

public final void setStatdayType(CfgStatDayType value)
Type of a stat day (see CfgStatDayTYpe ). If specified, Configuration Server will return information only about stat days have this type.

Parameters:
value - filter value on field "statday_type".

getStatdayType

public final CfgStatDayType getStatdayType()
Type of a stat day (see CfgStatDayTYpe ). If specified, Configuration Server will return information only about stat days have this type.

Returns:
filter value or null (if applicable)
See Also:
setStatdayType(CfgStatDayType)

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.