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

All Known Implementing Classes:
QueryImpl

public interface Query

Graffito JCR Query interface

Author:
Christophe Lombart

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()
           
 void setFilter(Filter filter)
          Set the filter to use with this query
 

Method Detail

setFilter

void setFilter(Filter filter)
Set the filter to use with this query

Parameters:
filter - The filter to use

getFilter

Filter getFilter()
Returns:
The filter used for this query

addOrderByAscending

void addOrderByAscending(java.lang.String fieldNameAttribute)
Order the object found (ascending)

Parameters:
fieldNameAttribute - the name of the field used to sort the search result

addOrderByDescending

void addOrderByDescending(java.lang.String fieldNameAttribute)
Order the object found (descending)

Parameters:
fieldNameAttribute - the name of the field used to sort the search result


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