org.qi4j.api.dataset
Interface Query<T>
- All Known Implementing Classes:
- IterableQuery
public interface Query<T>
TODO
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