org.apache.portals.graffito.jcr.query.impl
Class QueryImpl

java.lang.Object
  extended by org.apache.portals.graffito.jcr.query.impl.QueryImpl
All Implemented Interfaces:
Query

public class QueryImpl
extends java.lang.Object
implements Query

Default Query implementation

Author:
Christophe Lombart

Constructor Summary
QueryImpl(Filter filter, Mapper mapper)
          Constructor
 
Method Summary
 void addOrderByAscending(java.lang.String fieldNameAttribute)
          Order the object found (ascending)
 void addOrderByDescending(java.lang.String fieldNameAttribute)
          Order the object found (descending)
 Filter getFilter()
           
 java.lang.String getOrderByExpression()
           
 void setFilter(Filter filter)
          Set the filter to use with this query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryImpl

public QueryImpl(Filter filter,
                 Mapper mapper)
Constructor

Parameters:
filter -
mapper -
Method Detail

setFilter

public void setFilter(Filter filter)
Description copied from interface: Query
Set the filter to use with this query

Specified by:
setFilter in interface Query
Parameters:
filter - The filter to use
See Also:
Query.setFilter(org.apache.portals.graffito.jcr.query.Filter)

getFilter

public Filter getFilter()
Specified by:
getFilter in interface Query
Returns:
The filter used for this query
See Also:
Query.getFilter()

addOrderByDescending

public void addOrderByDescending(java.lang.String fieldNameAttribute)
Description copied from interface: Query
Order the object found (descending)

Specified by:
addOrderByDescending in interface Query
Parameters:
fieldNameAttribute - the name of the field used to sort the search result

addOrderByAscending

public void addOrderByAscending(java.lang.String fieldNameAttribute)
Description copied from interface: Query
Order the object found (ascending)

Specified by:
addOrderByAscending in interface Query
Parameters:
fieldNameAttribute - the name of the field used to sort the search result
See Also:
Query.addOrderByAscending(java.lang.String)

getOrderByExpression

public java.lang.String getOrderByExpression()


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