Package javax.xml.registry
Interface DeclarativeQueryManager
- All Superinterfaces:
QueryManager
This interface provides the ability to execute declarative queries (e.g. SQL)
- Author:
- Farrukh S. Najmi
-
Method Summary
Modifier and TypeMethodDescriptioncreateQuery
(int queryType, String 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.executeQuery
(Query query) Executes a query as specified by query parameter.Methods inherited from interface javax.xml.registry.QueryManager
getRegistryObject, getRegistryObject, getRegistryObjects, getRegistryObjects, getRegistryObjects, getRegistryObjects, getRegistryService
-
Method Details
-
createQuery
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
- the type of queryqueryString
- the query in its string representation- Returns:
- Query object created
- Throws:
JAXRException
- If the Jakarta XML Registries provider encounters an internal errorInvalidRequestException
- If the Jakarta XML Registries provider validates query syntax (optional) and the sqlQuery is not valid- See Also:
-
executeQuery
Executes a query as specified by query parameter.- Capability Level: 1
- Parameters:
query
- the query to be executed- Returns:
- the BulkResponse that is the result of the query
- Throws:
JAXRException
- If the Jakarta XML Registries provider encounters an internal error
-