Top Description Fields Methods
javax.xml.registry

public Interface Query


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 Jakarta XML Registries specification.
Author
Farrukh S. Najmi

Field Summary

Modifier and TypeField and Description
public static final int
QUERY_TYPE_EBXML_FILTER_QUERY

An OASIS ebXML Registry XML Filter Query type.

public static final int
QUERY_TYPE_SQL

An SQL query type.

public static final int
QUERY_TYPE_XQUERY

A W3C XQuery type.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the type of query
getType
()

Gets the type of Query (for example, QUERY_TYPE_SQL).

public String

Returns:

the String representation for this query
toString
()

Returns the String representing the query.

Field Detail

QUERY_TYPE_EBXML_FILTER_QUERYback to summary
public static final int QUERY_TYPE_EBXML_FILTER_QUERY

An OASIS ebXML Registry XML Filter Query type.

QUERY_TYPE_SQLback to summary
public static final int QUERY_TYPE_SQL

An SQL query type.

QUERY_TYPE_XQUERYback to summary
public static final int QUERY_TYPE_XQUERY

A W3C XQuery type.

Method Detail

getTypeback to summary
public int getType() throws JAXRException

Gets the type of Query (for example, QUERY_TYPE_SQL).

Capability Level: 1
Returns:int

the type of query

Exceptions
JAXRException:
If the Jakarta XML Registries provider encounters an internal error
See Also
Query#QUERY_TYPE_SQL, Query#QUERY_TYPE_XQUERY, Query#QUERY_TYPE_EBXML_FILTER_QUERY
toStringback to summary
public 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:String

the String representation for this query