|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Projectable
Projectable defines default projection methods for Query implementations. All Querydsl query implementations should implement this interface.
| Method Summary | ||
|---|---|---|
long |
count()
return the amount of matched rows |
|
long |
countDistinct()
return the amount of distinct matched rows |
|
Iterator<Object[]> |
iterate(Expr<?> first,
Expr<?> second,
Expr<?>... rest)
iterate over the results for the given projection |
|
|
iterate(Expr<RT> projection)
iterate over the results for the given projection |
|
Iterator<Object[]> |
iterateDistinct(Expr<?> first,
Expr<?> second,
Expr<?>... rest)
iterate over the distinct results for the given projection |
|
|
iterateDistinct(Expr<RT> projection)
iterate over the distinct results for the given projection |
|
List<Object[]> |
list(Expr<?> first,
Expr<?> second,
Expr<?>... rest)
list the results for the given projection |
|
|
list(Expr<RT> projection)
list the results for the given projection |
|
List<Object[]> |
listDistinct(Expr<?> first,
Expr<?> second,
Expr<?>... rest)
list the distinct results for the given projection |
|
|
listDistinct(Expr<RT> projection)
list the distinct results for the given projection |
|
|
listDistinctResults(Expr<RT> projection)
list the distinct results for the given projection |
|
|
listResults(Expr<RT> projection)
list the results for the given projection |
|
|
map(Expr<K> key,
Expr<V> value)
return the given projection as a Map instance using key and value for Map population |
|
Object[] |
uniqueResult(Expr<?> first,
Expr<?> second,
Expr<?>... rest)
return a unique result for the given projection |
|
|
uniqueResult(Expr<RT> projection)
return a unique result for the given projection |
|
| Method Detail |
|---|
@Nonnegative long count()
@Nonnegative long countDistinct()
Iterator<Object[]> iterate(Expr<?> first,
Expr<?> second,
Expr<?>... rest)
first - second - rest -
<RT> Iterator<RT> iterate(Expr<RT> projection)
RT - generic type of the Iteratprprojection -
Iterator<Object[]> iterateDistinct(Expr<?> first,
Expr<?> second,
Expr<?>... rest)
first - second - rest -
<RT> Iterator<RT> iterateDistinct(Expr<RT> projection)
RT - generic type of the Iteratprprojection -
List<Object[]> list(Expr<?> first,
Expr<?> second,
Expr<?>... rest)
first - second - rest - rest
<RT> List<RT> list(Expr<RT> projection)
RT - generic type of the Listprojection -
List<Object[]> listDistinct(Expr<?> first,
Expr<?> second,
Expr<?>... rest)
first - second - rest - rest
<RT> List<RT> listDistinct(Expr<RT> projection)
RT - generic type of the Listprojection -
<RT> SearchResults<RT> listResults(Expr<RT> projection)
RT - projection -
<RT> SearchResults<RT> listDistinctResults(Expr<RT> projection)
RT - projection -
<K,V> Map<K,V> map(Expr<K> key,
Expr<V> value)
K - V - key - value -
@Nullable
Object[] uniqueResult(Expr<?> first,
Expr<?> second,
Expr<?>... rest)
first - second - rest -
@Nullable <RT> RT uniqueResult(Expr<RT> projection)
RT - return typeprojection -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||