public interface SimpleProjectable<T>
Projectable
.Projectable
Modifier and Type | Method and Description |
---|---|
long |
count()
Get the count of matched elements
|
boolean |
exists() |
com.mysema.commons.lang.CloseableIterator<T> |
iterate()
Get the projection as a typed closeable Iterator
|
java.util.List<T> |
list()
Get the projection as a typed List
|
SearchResults<T> |
listResults()
Get the projection in
SearchResults form |
boolean |
notExists() |
T |
singleResult()
Get the projection as a single result or null if no result is found
|
T |
uniqueResult()
Get the projection as a unique result or null if no result is found
|
boolean exists()
boolean notExists()
com.mysema.commons.lang.CloseableIterator<T> iterate()
java.util.List<T> list()
@Nullable T singleResult()
for multiple results only the first one is returned
@Nullable T uniqueResult()
NonUniqueResultException
- if there is more than one matching resultSearchResults<T> listResults()
SearchResults
formlong count()
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.