Class QueryImpl


  • public class QueryImpl
    extends Object
    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.
    Author:
    Farrukh S. Najmi
    • Constructor Detail

      • QueryImpl

        public QueryImpl()
    • Method Detail

      • getType

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

        Capability Level: 1
        Returns:
        the type of query
        Throws:
        javax.xml.registry.JAXRException
        See Also:
        Query.QUERY_TYPE_SQL, Query.QUERY_TYPE_XQUERY
      • toString

        public 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 Object