|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.support.ProjectableAdapter<P>
public class ProjectableAdapter<P extends Projectable>
ProjectableAdapter is an adapter implementation for the Projectable interface
| Constructor Summary | |
|---|---|
ProjectableAdapter(P projectable)
|
|
| Method Summary | ||
|---|---|---|
long |
count()
return the amount of matched rows |
|
long |
countDistinct()
return the amount of distinct matched rows |
|
boolean |
exists()
|
|
protected P |
getProjectable()
|
|
com.mysema.commons.lang.CloseableIterator<Object[]> |
iterate(Expression<?>[] args)
iterate over the results for the given projection |
|
com.mysema.commons.lang.CloseableIterator<Object[]> |
iterate(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
iterate over the results for the given projection |
|
|
iterate(Expression<RT> projection)
iterate over the results for the given projection |
|
com.mysema.commons.lang.CloseableIterator<Object[]> |
iterateDistinct(Expression<?>[] args)
iterate over the distinct results for the given projection |
|
com.mysema.commons.lang.CloseableIterator<Object[]> |
iterateDistinct(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
iterate over the distinct results for the given projection |
|
|
iterateDistinct(Expression<RT> projection)
iterate over the distinct results for the given projection |
|
List<Object[]> |
list(Expression<?>[] args)
list the results for the given projection An empty list is returned for no results. |
|
List<Object[]> |
list(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
list the results for the given projection An empty list is returned for no results. |
|
|
list(Expression<RT> projection)
list the results for the given projection An empty list is returned for no results. |
|
List<Object[]> |
listDistinct(Expression<?>[] args)
list the distinct results for the given projection An empty list is returned for no results. |
|
List<Object[]> |
listDistinct(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
list the distinct results for the given projection An empty list is returned for no results. |
|
|
listDistinct(Expression<RT> projection)
list the distinct results for the given projection An empty list is returned for no results. |
|
|
listDistinctResults(Expression<RT> expr)
list the distinct results for the given projection |
|
|
listResults(Expression<RT> expr)
list the results for the given projection |
|
|
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()
|
|
Object[] |
singleResult(Expression<?>[] args)
return a single result for the given projection or null if no result is found |
|
Object[] |
singleResult(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
return a single result for the given projection or null if no result is found |
|
|
singleResult(Expression<RT> expr)
return a single result for the given projection or null if no result is found |
|
String |
toString()
|
|
|
transform(ResultTransformer<T> transformer)
Apply the given transformer to this Projectable instance and return the results |
|
Object[] |
uniqueResult(Expression<?>[] args)
return a unique result for the given projection or null if no result is found |
|
Object[] |
uniqueResult(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
return a unique result for the given projection or null if no result is found |
|
|
uniqueResult(Expression<RT> expr)
return a unique result for the given projection or null if no result is found |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectableAdapter(P projectable)
| Method Detail |
|---|
protected P getProjectable()
public long count()
Projectable
count in interface Projectablepublic long countDistinct()
Projectable
countDistinct in interface Projectablepublic boolean exists()
exists in interface Projectablepublic boolean notExists()
notExists in interface Projectable
public com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
Projectable
iterate in interface Projectablepublic com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expression<?>[] args)
Projectable
iterate in interface Projectablepublic <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expression<RT> projection)
Projectable
iterate in interface ProjectableRT - generic type of the Iterator
public com.mysema.commons.lang.CloseableIterator<Object[]> iterateDistinct(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
Projectable
iterateDistinct in interface Projectablepublic com.mysema.commons.lang.CloseableIterator<Object[]> iterateDistinct(Expression<?>[] args)
Projectable
iterateDistinct in interface Projectablepublic <RT> com.mysema.commons.lang.CloseableIterator<RT> iterateDistinct(Expression<RT> projection)
Projectable
iterateDistinct in interface ProjectableRT - generic type of the Iteratpr
public List<Object[]> list(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
Projectable
list in interface Projectablerest - rest
public List<Object[]> list(Expression<?>[] args)
Projectable
list in interface Projectablepublic <RT> List<RT> list(Expression<RT> projection)
Projectable
list in interface ProjectableRT - generic type of the List
public List<Object[]> listDistinct(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
Projectable
listDistinct in interface Projectablerest - rest
public List<Object[]> listDistinct(Expression<?>[] args)
Projectable
listDistinct in interface Projectablepublic <RT> List<RT> listDistinct(Expression<RT> projection)
Projectable
listDistinct in interface ProjectableRT - generic type of the List
public <RT> SearchResults<RT> listDistinctResults(Expression<RT> expr)
Projectable
listDistinctResults in interface Projectablepublic <RT> SearchResults<RT> listResults(Expression<RT> expr)
Projectable
listResults in interface Projectable
public <K,V> Map<K,V> map(Expression<K> key,
Expression<V> value)
Projectable
map in interface Projectablepublic String toString()
toString in class Object
public Object[] singleResult(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
Projectablefor multiple results only the first one is returned
singleResult in interface Projectablepublic Object[] singleResult(Expression<?>[] args)
ProjectableThere 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
singleResult in interface Projectablepublic <RT> RT singleResult(Expression<RT> expr)
ProjectableThere 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
singleResult in interface ProjectableRT - return type
public <T> T transform(ResultTransformer<T> transformer)
Projectable
transform in interface Projectable
public Object[] uniqueResult(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
ProjectableThere is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
uniqueResult in interface Projectablepublic Object[] uniqueResult(Expression<?>[] args)
ProjectableThere is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
uniqueResult in interface Projectablepublic <RT> RT uniqueResult(Expression<RT> expr)
ProjectableThere is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
uniqueResult in interface ProjectableRT - return type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||