Previous section   Next section
DeclarativeQueryManager javax.xml.registry

JAXR 1.0; JWSDP 1.0, J2EE 1.4
public interface DeclarativeQueryManager extends QueryManager {
// Public Instance Methods
    public abstract Query createQuery(int queryType, String queryString) 
      throws InvalidRequestExceptionJAXRException;        // L1
    public abstract BulkResponse executeQuery(Query query) 
      throws JAXRException;                               // L1
}

DeclarativeQueryManager is a derived interface of QueryManager that provides the ability to search the registry using queries expressed directly in one of the query languages that it supports, rather than using a query generated as a result of calling one of the methods of the QueryManager or BusinessQueryManager interfaces. A DeclarativeQueryManager can be obtained from the RegistryService object of a level 1 JAXR provider.

The query languages that a DeclarativeQueryManager supports are implementation-dependent and might include SQL-92, the ebXML filter query language, or XQuery. The createQuery( ) method returns a Query object that encapsulates a specified query expressed in a given query language. An InvalidRequestType exception is thrown if the JAXR provider does not support the requested query language or if the query string appears to be invalid. Validation of the query string is optional. The executeQuery( ) method performs a query described by a Query object and returns the results in the form of a BulkResponse.

Returned By

RegistryService.getDeclarativeQueryManager( )


  Previous section   Next section