Package javax.xml.registry
Interface Query
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
FieldsModifier and TypeFieldDescriptionstatic final int
An OASIS ebXML Registry XML Filter Query type.static final int
An SQL query type.static final int
A W3C XQuery type. -
Method Summary
-
Field Details
-
QUERY_TYPE_SQL
static final int QUERY_TYPE_SQLAn SQL query type.- See Also:
-
QUERY_TYPE_XQUERY
static final int QUERY_TYPE_XQUERYA W3C XQuery type.- See Also:
-
QUERY_TYPE_EBXML_FILTER_QUERY
static final int QUERY_TYPE_EBXML_FILTER_QUERYAn OASIS ebXML Registry XML Filter Query type.- See Also:
-
-
Method Details
-
getType
Gets the type of Query (for example, QUERY_TYPE_SQL).- Capability Level: 1
- Returns:
- the type of query
- Throws:
JAXRException
- If the Jakarta XML Registries provider encounters an internal error- See Also:
-
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
-