ICfgQuery<TT>
CfgFilterBasedQuery
, CfgXPathBasedQuery
public class CfgQuery<TT extends ICfgObject> extends java.lang.Object implements ICfgQuery<TT>
Constructor | Description |
---|---|
CfgQuery() |
Creates a new instance of the class.
|
CfgQuery(IConfService confService) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
<T extends ICfgObject> |
beginExecute(java.lang.Class<T> clazz,
Action<AsyncRequestResult<T>> callback,
java.lang.Object state) |
|
<T extends ICfgObject> |
endExecute(AsyncRequestResult<T> asyncResult) |
|
java.util.Collection<? extends ICfgObject> |
execute() |
Executes the query and returns a list of objects read from the configuration server.
|
<T extends ICfgObject> |
execute(java.lang.Class<T> clazz) |
|
ICfgObject |
executeSingleResult() |
Executes a query the result of which is a single object of the specified type.
|
<T extends ICfgObject> |
executeSingleResult(java.lang.Class<T> clazz) |
Deprecated.
|
public CfgQuery()
@Deprecated public CfgQuery(IConfService confService)
confService
- reference to IConfService to be used for query execution.@Deprecated public <T extends ICfgObject> java.util.Collection<T> execute(java.lang.Class<T> clazz) throws ConfigException, java.lang.InterruptedException
IConfService.retrieveMultipleObjects(java.lang.Class<T>, com.genesyslab.platform.applicationblocks.com.ICfgQuery)
directly.execute
in interface ICfgQuery<TT extends ICfgObject>
T
- The type of configuration object returnedclazz
- class used for generic matchingConfigException
java.lang.InterruptedException
public java.util.Collection<? extends ICfgObject> execute() throws ConfigException, java.lang.InterruptedException
ConfigException
java.lang.InterruptedException
@Deprecated public <T extends ICfgObject> AsyncRequestResult<T> beginExecute(java.lang.Class<T> clazz, Action<AsyncRequestResult<T>> callback, java.lang.Object state) throws ConfigException
beginExecute
in interface ICfgQuery<TT extends ICfgObject>
T
- the type of object returnedcallback
- The method to be called when query results are availablestate
- a user-defined object that qualifies or contains information about an asynchronous operationclazz
- class used for generic matchingConfigException
@Deprecated public <T extends ICfgObject> java.util.Collection<T> endExecute(AsyncRequestResult<T> asyncResult) throws ConfigException, java.lang.InterruptedException
IConfService.endRetrieveMultipleObjects(com.genesyslab.platform.applicationblocks.com.AsyncRequestResult<T>)
directly.endExecute
in interface ICfgQuery<TT extends ICfgObject>
T
- the type of object returnedasyncResult
- The AsyncRequestResult object used to track the current requestConfigException
java.lang.InterruptedException
@Deprecated public <T extends ICfgObject> T executeSingleResult(java.lang.Class<T> clazz) throws ConfigException
IConfService.retrieveObject(com.genesyslab.platform.applicationblocks.com.ICfgQuery<T>)
directly.executeSingleResult
in interface ICfgQuery<TT extends ICfgObject>
T
- the type of object returnedclazz
- class used for generic matchingConfigException
public ICfgObject executeSingleResult() throws ConfigException
ConfigException
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.