Top Description Methods
javax.xml.registry

public Interface DeclarativeQueryManager

extends QueryManager
Imports
java.util.*, javax.xml.registry.infomodel.*

This interface provides the ability to execute declarative queries (e.g. SQL)
Author
Farrukh S. Najmi

Method Summary

Modifier and TypeMethod and Description
public Query

Returns:

Query object created
createQuery
(int
the type of query
queryType
,
String
the query in its string representation
queryString
)

Creates a Query object given a queryType (for example, QUERY_TYPE_SQL) and a String that represents a query in the syntax appropriate for queryType.

public BulkResponse

Returns:

the BulkResponse that is the result of the query
executeQuery
(Query
the query to be executed
query
)

Executes a query as specified by query parameter.

Inherited from javax.xml.registry.QueryManager:
getRegistryObjectgetRegistryObjectgetRegistryObjectsgetRegistryObjectsgetRegistryObjectsgetRegistryObjectsgetRegistryService

Method Detail

createQueryback to summary
public Query createQuery(int queryType, String queryString) throws InvalidRequestException, JAXRException

Creates a Query object given a queryType (for example, QUERY_TYPE_SQL) and a String that represents a query in the syntax appropriate for queryType.

Capability Level: 1
Parameters
queryType:int

the type of query

queryString:String

the query in its string representation

Returns:Query

Query object created

Exceptions
InvalidRequestException:
If the Jakarta XML Registries provider validates query syntax (optional) and the sqlQuery is not valid
JAXRException:
If the Jakarta XML Registries provider encounters an internal error
See Also
Query#QUERY_TYPE_SQL, Query#QUERY_TYPE_XQUERY, Query#QUERY_TYPE_EBXML_FILTER_QUERY
executeQueryback to summary
public BulkResponse executeQuery(Query query) throws JAXRException

Executes a query as specified by query parameter.

Capability Level: 1
Parameters
query:Query

the query to be executed

Returns:BulkResponse

the BulkResponse that is the result of the query

Exceptions
JAXRException:
If the Jakarta XML Registries provider encounters an internal error