|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface SelectQuery.ExecutionContext<E>
| Method Summary | ||
|---|---|---|
List<E> |
asList()
|
|
|
consumeWith(EntityListConsumer<E,R> consumer)
|
|
long |
count()
Returns a count of matching items. |
|
E |
singleValue()
Returns the single Entity that is the result of this query. |
|
void |
visitWith(Visitor<E> visitor)
|
|
| Method Detail |
|---|
List<E> asList()
E singleValue()
throws IllegalStateException
Will return null if no rows were returned by the DB query.
Throws IllegalStateException if more than one row is found.
IllegalStateException - if more than one row is found.<R> R consumeWith(EntityListConsumer<E,R> consumer)
void visitWith(Visitor<E> visitor)
long count()
entityName + "Count" pseudo-view stuff in the entity model, but rather generates
a count function directly in the query that it executes, so you should be able to use it with
arbitrary entities.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||