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 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.


Field Summary
static int QUERY_TYPE_SQL
           
static int QUERY_TYPE_XQUERY
           
 
Method Summary
 int getType()
          Gets the type of Query (e.g.
 java.lang.String toString()
          Must print the String representing the query.
 

Field Detail

QUERY_TYPE_SQL

public static final int QUERY_TYPE_SQL

QUERY_TYPE_XQUERY

public static final int QUERY_TYPE_XQUERY
Method Detail

getType

public int getType()
            throws JAXRException
Gets the type of Query (e.g. QUERY_TYPE_SQL)

Capability Level: 1
Returns:
the type of query
See Also:
QUERY_TYPE_SQL, QUERY_TYPE_XQUERY

toString

public java.lang.String toString()
Must print the String representing the query. For example in case of SQL query prints the SQL query as a string.

Capability Level: 1
Overrides:
toString in class java.lang.Object