Query (Java EE 5)

Java EE API


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
static int
static int
 
Method Summary
 int
 String
 

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 查询的类型
ThrowsJAXRException: 如果 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

Overrides:
toString in class Object
Returns:
the String representation for this query


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!