org.qi4j.api.dataset
Interface Query<T>

All Known Implementing Classes:
IterableQuery

public interface Query<T>

TODO


Nested Class Summary
static class Query.Order
           
 
Method Summary
 long count()
           
<ThrowableType extends java.lang.Throwable>
boolean
execute(Visitor<T,ThrowableType> resultVisitor)
           
 Query filter(Specification<T> filter)
           
 T first()
           
 java.lang.Object getVariable(java.lang.String name)
           
 Query limit(int maxNrOfResults)
           
 Query orderBy(Property<?> property, Query.Order order)
           
 Query<T> setVariable(java.lang.String name, java.lang.Object value)
           
 T single()
           
 Query skip(int skipNrOfResults)
           
 java.lang.Iterable<T> toIterable()
           
 

Method Detail

filter

Query filter(Specification<T> filter)

orderBy

Query orderBy(Property<?> property,
              Query.Order order)

skip

Query skip(int skipNrOfResults)

limit

Query limit(int maxNrOfResults)

setVariable

Query<T> setVariable(java.lang.String name,
                     java.lang.Object value)

getVariable

java.lang.Object getVariable(java.lang.String name)

count

long count()
           throws QueryExecutionException
Throws:
QueryExecutionException

first

T first()
        throws QueryExecutionException
Throws:
QueryExecutionException

single

T single()
         throws QueryException
Throws:
QueryException

execute

<ThrowableType extends java.lang.Throwable> boolean execute(Visitor<T,ThrowableType> resultVisitor)
                throws ThrowableType extends java.lang.Throwable,
                       QueryExecutionException
Throws:
ThrowableType extends java.lang.Throwable
QueryExecutionException

toIterable

java.lang.Iterable<T> toIterable()
                                 throws QueryExecutionException
Throws:
QueryExecutionException