Platform SDK Java 8.5 API Reference

com.genesyslab.platform.applicationblocks.com.queries
Class CfgPhysicalSwitchQuery

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

public class CfgPhysicalSwitchQuery
extends CfgFilterBasedQuery<CfgPhysicalSwitch>

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

See Also:
ConfService, CfgPhysicalSwitch

Constructor Summary
CfgPhysicalSwitchQuery()
          Create query object with default filter value for configuration objects of CfgPhysicalSwitch type.
CfgPhysicalSwitchQuery(IConfService service)
          Create query object with default filter value for configuration objects of CfgPhysicalSwitch type.
CfgPhysicalSwitchQuery(int dbid)
          Create query object with filter initialized for the object DBID.
CfgPhysicalSwitchQuery(java.lang.String name)
          Create query object with filter initialized for object name value.
 
Method Summary
 AsyncRequestResult<CfgPhysicalSwitch> beginExecute(Action<AsyncRequestResult<CfgPhysicalSwitch>> callback, java.lang.Object state)
          Begins the asynchronous execution of the current query.
 java.util.Collection<CfgPhysicalSwitch> execute()
          Executes the query and returns a list of CfgPhysicalSwitch objects.
 CfgPhysicalSwitch executeSingleResult()
          Executes a query the result of which is a single object.
 int getDbid()
          A unique identifier of a physical switch.
 int getFolderDbid()
          A unique identifier of a folder.
 java.lang.String getName()
          Name of a physical switch.
 CfgObjectState getState()
          

Current state of a physical switch (see CfgObjectState ).

 void setDbid(int value)
          A unique identifier of a physical switch.
 void setFolderDbid(int value)
          A unique identifier of a folder.
 void setName(java.lang.String value)
          Name of a physical switch.
 void setState(CfgObjectState value)
          

Current state of a physical switch (see CfgObjectState ).

 
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

CfgPhysicalSwitchQuery

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


CfgPhysicalSwitchQuery

public CfgPhysicalSwitchQuery(IConfService service)
Create query object with default filter value for configuration objects of CfgPhysicalSwitch 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

CfgPhysicalSwitchQuery

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

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

CfgPhysicalSwitchQuery

public CfgPhysicalSwitchQuery(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 CfgPhysicalSwitch 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<CfgPhysicalSwitch>
Returns:
the CfgPhysicalSwitch object retrieved as a result of this operation
Throws:
ConfigException

execute

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

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

beginExecute

public AsyncRequestResult<CfgPhysicalSwitch> beginExecute(Action<AsyncRequestResult<CfgPhysicalSwitch>> 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

setDbid

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

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

getDbid

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

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

setName

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

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

getName

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

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

setState

public final void setState(CfgObjectState value)

Current state of a physical switch (see CfgObjectState ). If specified, Configuration Server will return information only about physical switches that are currently in this state.

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

getState

public final CfgObjectState getState()

Current state of a physical switch (see CfgObjectState ). If specified, Configuration Server will return information only about physical switches that are currently in this state.

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

setFolderDbid

public final void setFolderDbid(int value)
A unique identifier of a folder. If specified, Configuration Server will return information only about the physical switches located immediately under this folder.

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

getFolderDbid

public final int getFolderDbid()
A unique identifier of a folder. If specified, Configuration Server will return information only about the physical switches located immediately under this folder.

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

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.