QueryManager (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.registry Interface QueryManager

所有已知子接口:
BusinessQueryManager, DeclarativeQueryManager

public interface QueryManager

This is the common base interface for all QueryManagers in the API.

作者:
Farrukh S. Najmi

方法摘要
 RegistryObject getRegistryObject(String id)
          Gets the RegistryObject specified by the Id.
 RegistryObject getRegistryObject(String id, String objectType)
          Gets the RegistryObject specified by the Id and type of object.
 BulkResponse getRegistryObjects()
          Gets the RegistryObjects owned by the caller.
 BulkResponse getRegistryObjects(Collection objectKeys)
          Gets the specified RegistryObjects.
 BulkResponse getRegistryObjects(Collection objectKeys, String objectTypes)
          Gets the specified RegistryObjects.
 BulkResponse getRegistryObjects(String objectType)
          Gets the RegistryObjects owned by the caller, that are of the specified type.
 RegistryService getRegistryService()
          Returns the parent RegistryService that created this object.
 

方法详细信息

getRegistryObject

RegistryObject getRegistryObject(String id,
                                 String objectType)
                                 throws JAXRException
Gets the RegistryObject specified by the Id and type of object.

Capability Level: 0

参数:
id - is the id of the Key for a RegistryObject.
objectType - is a constant definition from LifeCycleManager that specifies the type of object desired.
返回:
the RegistryObject, returned as its concrete type (e.g. Organization, User etc.).
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

getRegistryObject

RegistryObject getRegistryObject(String id)
                                 throws JAXRException
Gets the RegistryObject specified by the Id.

Capability Level: 1

参数:
id - the id for the desired object
返回:
the RegistryObject, returned as its concrete type (e.g. Organization, User etc.).
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

getRegistryObjects

BulkResponse getRegistryObjects(Collection objectKeys)
                                throws JAXRException
Gets the specified RegistryObjects. The objects are returned as their concrete type (e.g. Organization, User etc.).

Capability Level: 1

参数:
objectKeys - a Collection of Key objects for the desired objects
返回:
BulkResponse containing a heterogeneous Collection of RegistryObjects (e.g. Organization, User etc.).
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

getRegistryObjects

BulkResponse getRegistryObjects(Collection objectKeys,
                                String objectTypes)
                                throws JAXRException
Gets the specified RegistryObjects. The objects are returned as their concrete type (e.g. Organization, User etc.).

Capability Level: 0

参数:
objectKeys - a Collection of Key objects for the desired objects
objectTypes - a Collection of String objects that allow filtering desired objects by their type
返回:
BulkResponse containing a heterogeneous Collection of RegistryObjects (e.g. Organization, User etc.).
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

getRegistryObjects

BulkResponse getRegistryObjects()
                                throws JAXRException
Gets the RegistryObjects owned by the caller. The objects are returned as their concrete type (e.g. Organization, User etc.).

Capability Level: 0

返回:
BulkResponse containing a heterogeneous Collection of RegistryObjects (e.g. Organization, User etc.).
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

getRegistryObjects

BulkResponse getRegistryObjects(String objectType)
                                throws JAXRException
Gets the RegistryObjects owned by the caller, that are of the specified type. The objects are returned as their concrete type (e.g. Organization, User etc.).

Capability Level: 0

参数:
objectType - Is a constant that defines the type of object sought. See LifeCycleManager for constants for object types.
返回:
BulkResponse containing a heterogeneous Collection of RegistryObjects (e.g. Organization, User etc.).
抛出异常:
JAXRException - If the JAXR provider encounters an internal error
另请参见:
LifeCycleManager.ORGANIZATION

getRegistryService

RegistryService getRegistryService()
                                   throws JAXRException
Returns the parent RegistryService that created this object.

Capability Level: 0

返回:
the RegistryService created this object
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.