Name

QueryManager

Synopsis

public interface QueryManager {
// Public Instance Methods
    public abstract javax.xml.registry.infomodel.RegistryObject
      getRegistryObject(String id) 
      throws JAXRException;               // L1
    public abstract javax.xml.registry.infomodel.RegistryObject getRegistryObject(String id, 
String objectType) 
       throws JAXRException;               // L0
    public abstract BulkResponse getRegistryObjects(  ) throws JAXRException;               // L0
    public abstract BulkResponse getRegistryObjects(String objectType)
      throws JAXRException;               // L0
    public abstract BulkResponse getRegistryObjects(Collection objectKeys) 
      throws JAXRException;               // L1
    public abstract BulkResponse getRegistryObjects(Collection objectKeys, 
      String objectTypes) 
      throws JAXRException;               // L0
    public abstract RegistryService getRegistryService(  ) 
      throws JAXRException;               // L0
}

QueryManager provides methods that allow objects in the registry to be retrieved based on type and/or identifier. The only way to obtain a QueryManager object is by calling the getBusinessQueryManager( ) or the getDeclarativeQueryManager( ) method on RegistryService, which both return one of the two derived interfaces of QueryManager defined by the API. The QueryManager getRegistryService( ) method returns the RegistryService object from which it was obtained.

The zero-argument getRegistryObjects( ) returns a BulkResponse containing all of the objects in the registry belonging to the calling user, while getRegistryObject(String objectType) returns the subset of those objects that are ...

Get Java Web Services in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.