|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.registry Interface Query
public interface Query
Query 接口用声明性查询语言封装查询。目前,Query 只能是 SQL 查询或者 ebXML Filter Query。将来可能添加对其他查询语言(如 XQL 查询)的支持。查询必须符合某种固定模式,这由 JAXR 规范定义。
The Query interface encapsulates a query in a declarative query language. Currently a Query can be an SQL query or an ebXML Filter Query only. In future support for other query languages such as XQL query may be added. The query must conform to a fixed schema as defined by the JAXR specification.
- Author:
- Farrukh S. Najmi
Field Summary | |
---|---|
static int |
QUERY_TYPE_EBXML_FILTER_QUERY
An OASIS ebXML Registry XML Filter Query type. |
static int |
QUERY_TYPE_SQL
An SQL query type. |
static int |
QUERY_TYPE_XQUERY
A W3C XQuery type. |
Method Summary | |
---|---|
int |
getType()
Gets the type of Query (for example, QUERY_TYPE_SQL). |
String |
toString()
Returns the String representing the query. |
Field Detail |
---|
英文文档:
QUERY_TYPE_SQL
static final int QUERY_TYPE_SQL
- An SQL query type.
- See Also:
- Constant Field Values
英文文档:
QUERY_TYPE_XQUERY
static final int QUERY_TYPE_XQUERY
- A W3C XQuery type.
- See Also:
- Constant Field Values
英文文档:
QUERY_TYPE_EBXML_FILTER_QUERY
static final int QUERY_TYPE_EBXML_FILTER_QUERY
- An OASIS ebXML Registry XML Filter Query type.
- See Also:
- Constant Field Values
Method Detail |
---|
public int
getType() throws JAXRException
获得 Query 类型(例如,QUERY_TYPE_SQL)。
- 功能级别:1
return | 查询的类型 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
See also | QUERY_TYPE_SQL, QUERY_TYPE_XQUERY, QUERY_TYPE_EBXML_FILTER_QUERY |
getType
int getType() throws JAXRException
- Gets the type of Query (for example, QUERY_TYPE_SQL).
- Capability Level: 1
- Returns:
- the type of query
- Throws:
JAXRException
- If the JAXR provider encounters an internal error- See Also:
QUERY_TYPE_SQL
,QUERY_TYPE_XQUERY
,QUERY_TYPE_EBXML_FILTER_QUERY
public String
toString()
返回表示查询的 String。例如,在使用 SQL 查询的情况下,以字符串形式的返回 SQL 查询。
- 功能级别:1
return | 此查询的 String 表示形式 |
toString
String toString()
- Returns the String representing the query. For example,
in the case of an SQL query, returns the SQL query as a string.
- Capability Level: 1
- Returns:
- the String representation for this query
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!