Name
Query
Synopsis
public interface Query { // Public Constants public static final int QUERY_TYPE_EBXML_FILTER_QUERY; // =2 public static final int QUERY_TYPE_SQL; // =0 public static final int QUERY_TYPE_XQUERY; // =1 // Public Instance Methods public abstract int getType( ) throws JAXRException; // L1 public abstract String toString( ); // L1 }
The Query
interface provides a way to encapsulate
a registry query to be handled by a
DeclarativeQueryManager
. A
Query
object is created by calling the
createQuery( )
method of the
DeclarativeQueryManager
whose
executeQuery( )
method is eventually used to
perform the search operation that it specifies. The query manager may
choose to return a private object implementing
Query
that represents the query string in a form
that is suitable for the means that are eventually used to action it.
The getType( )
methods return the type of query
that the Query
object represents (such as
QUERY_TYPE_SQL
), while toString( )
returns a string representation of the query.
DeclarativeQueryManager
s are supported only by
level 1 providers, but only queries of type
QUERY_TYPE_EBXML_FILTER_QUERY
are required to be
supported.
Passed To
DeclarativeQueryManager.executeQuery( )
Returned By
DeclarativeQueryManager.createQuery( )
Get Java Web Services in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.