|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.registry Interface DeclarativeQueryManager
- All Superinterfaces:
- QueryManager
public interface DeclarativeQueryManager
- extends QueryManager
Implements:
QueryManager
此接口提供执行声明性查询(例如 SQL)的能力。
This interface provides the ability to execute declarative queries (e.g. SQL)
- Author:
- Farrukh S. Najmi
Method Summary | |
---|---|
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 |
Method Detail |
---|
public Query
createQuery(int queryType, String queryString) throws InvalidRequestException, JAXRException
根据给定的 queryType(例如,QUERY_TYPE_SQL)和表示查询(符合 queryType 的语法)的 String,创建一个 Query 对象。
- 功能级别:1
queryType | 查询的类型 |
queryString | 查询的字符串表示形式 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
Throws | InvalidRequestException: 如果 JAXR 提供者验证查询语法(可选)且 sqlQuery 无效 |
See also | QUERY_TYPE_SQL, QUERY_TYPE_XQUERY, QUERY_TYPE_EBXML_FILTER_QUERY |
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
- Parameters:
queryType
- the type of queryqueryString
- the query in its string representation- Throws:
JAXRException
- If the JAXR provider encounters an internal errorInvalidRequestException
- If the JAXR provider validates query syntax (optional) and the sqlQuery is not valid- See Also:
Query.QUERY_TYPE_SQL
,Query.QUERY_TYPE_XQUERY
,Query.QUERY_TYPE_EBXML_FILTER_QUERY
public BulkResponse
executeQuery(Query query) throws JAXRException
根据 query 参数的指定执行查询。
- 功能级别:1
query | 要执行的查询 |
return | 作为查询结果的 BulkResponse |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
executeQuery
BulkResponse executeQuery(Query query) throws JAXRException
- 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 JAXR provider encounters an internal error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!