org.apache.portals.graffito.jcr.query
Interface QueryManager

All Known Implementing Classes:
QueryManagerImpl

public interface QueryManager

The query manager is used to instantiate query objects and execute query based on the object model. Internally, this service used the JCR QueryManager

Author:
Christophe Lombart

Method Summary
 java.lang.String buildJCRExpression(Query query)
          Build a JCR search expression from a Query
 Filter createFilter(java.lang.Class classQuery)
          Create a new empty filter
 Query createQuery(Filter filter)
          Create a new empty query
 

Method Detail

createFilter

Filter createFilter(java.lang.Class classQuery)
Create a new empty filter

Parameters:
classQuery - The class used to search
Returns:
a new instantiated filter object

createQuery

Query createQuery(Filter filter)
Create a new empty query

Parameters:
filter - the filter used by the query
Returns:
a new instantiated query object

buildJCRExpression

java.lang.String buildJCRExpression(Query query)
Build a JCR search expression from a Query

Parameters:
query - the query matching to the JCR search expression
Returns:
a JCR XPATH search expression


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.