public interface Query<T>
Modifier and Type | Interface and Description |
---|---|
static class |
Query.Order |
Modifier and Type | Method and Description |
---|---|
long |
count() |
<ThrowableType extends Throwable> |
execute(Visitor<T,ThrowableType> resultVisitor) |
Query |
filter(Specification<T> filter) |
T |
first() |
Object |
getVariable(String name) |
Query |
limit(int maxNrOfResults) |
Query |
orderBy(Property<?> property,
Query.Order order) |
Query<T> |
setVariable(String name,
Object value) |
T |
single() |
Query |
skip(int skipNrOfResults) |
Iterable<T> |
toIterable() |
Query filter(Specification<T> filter)
Query orderBy(Property<?> property, Query.Order order)
Query skip(int skipNrOfResults)
Query limit(int maxNrOfResults)
long count() throws QueryExecutionException
QueryExecutionException
T first() throws QueryExecutionException
QueryExecutionException
T single() throws QueryException
QueryException
<ThrowableType extends Throwable> boolean execute(Visitor<T,ThrowableType> resultVisitor) throws ThrowableType extends Throwable, QueryExecutionException
ThrowableType extends Throwable
QueryExecutionException
Iterable<T> toIterable() throws QueryExecutionException
QueryExecutionException