org.chromattic.api.query
Interface Query<O>


public interface Query<O>

A base interface for all queries.

Version:
$Revision$
Author:
Julien Viet

Method Summary
 QueryResult<O> objects()
          Executes the query and return the result as a serie of Chromattic entities.
 QueryResult<O> objects(java.lang.Long offset, java.lang.Long limit)
          Executes the query and return the result as a serie of Chromattic entities with the specified limit and offset.
 

Method Detail

objects

QueryResult<O> objects()
                       throws ChromatticException
Executes the query and return the result as a serie of Chromattic entities.

Returns:
the query result
Throws:
ChromatticException - any chromattic exception

objects

QueryResult<O> objects(java.lang.Long offset,
                       java.lang.Long limit)
                       throws ChromatticException
Executes the query and return the result as a serie of Chromattic entities with the specified limit and offset.

Parameters:
offset - the optional offset
limit - the optional limit
Returns:
the query result
Throws:
ChromatticException - any chromattic exception
java.lang.IllegalArgumentException - if the offset or limit argument is negative


Copyright © 2012 eXo Platform SAS. All Rights Reserved.