DeclarativeQueryManager (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.registry Interface DeclarativeQueryManager

所有父接口:
QueryManager

public interface DeclarativeQueryManager
extends QueryManager

This interface provides the ability to execute declarative queries (e.g. SQL)

作者:
Farrukh S. Najmi

方法摘要
 Query createQuery(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.
 BulkResponse 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
 

方法详细信息

createQuery

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

参数:
queryType - the type of query
queryString - the query in its string representation
抛出异常:
JAXRException - If the JAXR provider encounters an internal error
InvalidRequestException - If the JAXR provider validates query syntax (optional) and the sqlQuery is not valid
另请参见:
Query.QUERY_TYPE_SQL, Query.QUERY_TYPE_XQUERY, Query.QUERY_TYPE_EBXML_FILTER_QUERY

executeQuery

BulkResponse executeQuery(Query query)
                          throws JAXRException
Executes a query as specified by query parameter.

Capability Level: 1

参数:
query - the query to be executed
返回:
the BulkResponse that is the result of the query
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.