QueryManager (Java EE 5)

Java EE API


javax.xml.registry Interface QueryManager

All Known Subinterfaces:
BusinessQueryManager, DeclarativeQueryManager

public interface QueryManager


这是 API 中所有 QueryManager 的公共基本接口。
英文文档:

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

Author:
Farrukh S. Najmi

Method Summary
 RegistryObject
 RegistryObject
 BulkResponse
 BulkResponse
 BulkResponse
 BulkResponse
 RegistryService
 

Method Detail

public RegistryObject getRegistryObject(String id, String objectType) throws JAXRException
获取通过对象的 ID 和类型指定的 RegistryObject。

功能级别:0
id RegistryObject 的 Key 的 ID。
objectType 取自 LifeCycleManager 的常量定义,指定所需对象的类型。
return 作为具体类型(例如,Organization、User 等)返回的 RegistryObject。
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getRegistryObject

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

Capability Level: 0

Parameters:
id - is the id of the Key for a RegistryObject.
objectType - is a constant definition from LifeCycleManager that specifies the type of object desired.
Returns:
the RegistryObject, returned as its concrete type (e.g. Organization, User etc.).
Throws:
JAXRException - If the JAXR provider encounters an internal error

public RegistryObject getRegistryObject(String id) throws JAXRException
获取通过 ID 指定的 RegistryObject。

功能级别:1
id 所需对象的 ID
return 作为具体类型(例如,Organization、User 等)返回的 RegistryObject。
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getRegistryObject

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

Capability Level: 1

Parameters:
id - the id for the desired object
Returns:
the RegistryObject, returned as its concrete type (e.g. Organization, User etc.).
Throws:
JAXRException - If the JAXR provider encounters an internal error

public BulkResponse getRegistryObjects(java.util.Collection<E> objectKeys) throws JAXRException
获取指定的 RegistryObject。对象将作为其具体的类型返回(例如,Organization、User 等)。

功能级别:1
objectKeys 所需对象的 Key 对象所组成的 Collection
return BulkResponse,它包含 RegistryObject(例如,Organization、User 等)所组成的异构 Collection。
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

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

Parameters:
objectKeys - a Collection of Key objects for the desired objects
Returns:
BulkResponse containing a heterogeneous Collection of RegistryObjects (e.g. Organization, User etc.).
Throws:
JAXRException - If the JAXR provider encounters an internal error

public BulkResponse getRegistryObjects(java.util.Collection<E> objectKeys, String objectTypes) throws JAXRException
获取指定的 RegistryObject。对象将作为其具体的类型返回(例如,Organization、User 等)。

功能级别:0
objectKeys 所需对象的 Key 对象所组成的 Collection
objectTypes 允许根据类型过滤所需对象的 String 对象所组成的 Collection
return BulkResponse,它包含 RegistryObject(例如,Organization、User 等)所组成的异构 Collection。
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

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

Parameters:
objectKeys - a Collection of Key objects for the desired objects
objectTypes - a Collection of String objects that allow filtering desired objects by their type
Returns:
BulkResponse containing a heterogeneous Collection of RegistryObjects (e.g. Organization, User etc.).
Throws:
JAXRException - If the JAXR provider encounters an internal error

public BulkResponse getRegistryObjects() throws JAXRException
获取调用者拥有的 RegistryObject。对象将作为其具体的类型返回(例如,Organization、User 等)。

功能级别:0
return BulkResponse,它包含 RegistryObject(例如,Organization、User 等)所组成的异构 Collection。
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

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

Returns:
BulkResponse containing a heterogeneous Collection of RegistryObjects (e.g. Organization, User etc.).
Throws:
JAXRException - If the JAXR provider encounters an internal error

public BulkResponse getRegistryObjects(String objectType) throws JAXRException
获取调用者拥有的 RegistryObject,这些 RegistryObject 属于指定类型。对象将作为其具体的类型返回(例如,Organization、User 等)。

功能级别:0
objectType 定义所查找对象类型的常量。关于对象类型的常量,请参见 LifeCycleManager。
return BulkResponse,它包含 RegistryObject(例如,Organization、User 等)所组成的异构 Collection。
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
See also ORGANIZATION
英文文档:

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

Parameters:
objectType - Is a constant that defines the type of object sought. See LifeCycleManager for constants for object types.
Returns:
BulkResponse containing a heterogeneous Collection of RegistryObjects (e.g. Organization, User etc.).
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
LifeCycleManager.ORGANIZATION

public RegistryService getRegistryService() throws JAXRException
返回创建此对象的父 RegistryService。

功能级别:0
return 创建此对象的 RegistryService
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
associates <{javax.xml.registry.RegistryService}>
英文文档:

getRegistryService

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

Capability Level: 0

Returns:
the RegistryService created this object
Throws:
JAXRException - If the JAXR provider encounters an internal error


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!