public interface Projectable
Query
implementations.
All Querydsl query implementations should implement either this interface or
SimpleProjectable
.SimpleProjectable
Modifier and Type | Method and Description |
---|---|
long |
count()
return the amount of matched rows
|
boolean |
exists() |
com.mysema.commons.lang.CloseableIterator<Tuple> |
iterate(Expression<?>... args)
iterate over the results for the given projection
|
<RT> com.mysema.commons.lang.CloseableIterator<RT> |
iterate(Expression<RT> projection)
iterate over the results for the given projection
|
java.util.List<Tuple> |
list(Expression<?>... args)
list the results for the given projection
An empty list is returned for no results.
|
<RT> java.util.List<RT> |
list(Expression<RT> projection)
list the results for the given projection
An empty list is returned for no results.
|
SearchResults<Tuple> |
listResults(Expression<?>... args)
list the results for the given projection
|
<RT> SearchResults<RT> |
listResults(Expression<RT> projection)
list the results for the given projection
|
<K,V> java.util.Map<K,V> |
map(Expression<K> key,
Expression<V> value)
return the given projection as a Map instance using key and value for Map population
An empty map is returned for no results.
|
boolean |
notExists() |
Tuple |
singleResult(Expression<?>... args)
return a single result for the given projection or null if no result is found
|
<RT> RT |
singleResult(Expression<RT> projection)
return a single result for the given projection or null if no result is found
|
<T> T |
transform(ResultTransformer<T> transformer)
Apply the given transformer to this Projectable instance and return the results
|
Tuple |
uniqueResult(Expression<?>... args)
return a unique result for the given projection or null if no result is found
|
<RT> RT |
uniqueResult(Expression<RT> projection)
return a unique result for the given projection or null if no result is found
|
@Nonnegative long count()
boolean exists()
boolean notExists()
com.mysema.commons.lang.CloseableIterator<Tuple> iterate(Expression<?>... args)
args
- <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expression<RT> projection)
RT
- generic type of the Iteratorprojection
- java.util.List<Tuple> list(Expression<?>... args)
args
- <RT> java.util.List<RT> list(Expression<RT> projection)
RT
- generic type of the Listprojection
- SearchResults<Tuple> listResults(Expression<?>... args)
args
- <RT> SearchResults<RT> listResults(Expression<RT> projection)
RT
- projection
- <K,V> java.util.Map<K,V> map(Expression<K> key, Expression<V> value)
K
- V
- key
- value
- @Nullable Tuple singleResult(Expression<?>... args)
There is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
for multiple results only the first one is returned
args
- @Nullable <RT> RT singleResult(Expression<RT> projection)
There is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
for multiple results only the first one is returned
RT
- return typeprojection
- <T> T transform(ResultTransformer<T> transformer)
T
- transformer
- @Nullable Tuple uniqueResult(Expression<?>... args)
There is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
args
- NonUniqueResultException
- if there is more than one matching result@Nullable <RT> RT uniqueResult(Expression<RT> projection)
There is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
RT
- return typeprojection
- NonUniqueResultException
- if there is more than one matching resultCopyright © 2007-2013 Mysema Ltd. All Rights Reserved.