Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


oracle.webcenter.search
Interface QueryManager


public interface QueryManager

This class is the entry point for all Query / Search operations of a WebCenter service. From within this class, a QueryHandler can be retrieved to either execute Queries or federate the execution to a List of child QueryHandlers. This translates to having a QueryExecutor or a QueryFederator. The only method that is mandated in the Query Manager for creating a Query Handler is createRowQueryHandler. This allows for a QueryHandler (be it a QueryFederator or a QueryExecutor) of type Row to be created from here. The Search implementation can embellish upon this according to its needs and provide other methods to create other types of QueryHandlers, and perhaps in so doing, concretize whether it needs a QueryExecutor or a QueryFederator. For example, the WebCenter Search Service will likely only implement the createRowQueryHandler except it will return a QueryFederator<Row> instead of just a base QueryHandler<Row>. Another example would be the List service Search implementation which may contain two methods which are: createRowQueryHandler that returns a QueryExecutor<Row> and createListDefQueryExector that returns a QueryExecutor<ListDef>.

Since:
11.1.1.0.0 Beta 2

Method Summary
 QueryHandler<Row> createRowQueryHandler(Query query, java.util.List<QName> columns)
          Creates a QueryHandler of Rows with a Query object and a List of column names for which we seek within each Row.

 

Method Detail

createRowQueryHandler

QueryHandler<Row> createRowQueryHandler(Query query,
                                        java.util.List<QName> columns)
                                        throws SearchException
Creates a QueryHandler of Rows with a Query object and a List of column names for which we seek within each Row.
Parameters:
query - a Query object that represents the search request
columns - a List of QNames specifying which columns to return
Returns:
a QueryHandler of Row which will return a QueryResult<Row>
Throws:
SearchException - when the query is invalid or service has a problem understanding the list of columns specified

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.