|
||||||||||
| 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 |
|
List<Object[]> |
list(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
list the results for the given projection |
|
|
list(Expression<RT> projection)
list the results for the given projection |
|
List<Object[]> |
listDistinct(Expression<?>[] args)
list the distinct results for the given projection |
|
List<Object[]> |
listDistinct(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
list the distinct results for the given projection |
|
|
listDistinct(Expression<RT> projection)
list the distinct results for the given projection |
|
|
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 |
|
boolean |
notExists()
|
|
String |
toString()
|
|
Object[] |
uniqueResult(Expression<?>[] args)
return a unique result for the given projection |
|
Object[] |
uniqueResult(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
return a unique result for the given projection |
|
|
uniqueResult(Expression<RT> expr)
return a unique result for the given projection |
|
| 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[] uniqueResult(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
Projectable
uniqueResult in interface Projectablepublic Object[] uniqueResult(Expression<?>[] args)
Projectable
uniqueResult in interface Projectablepublic <RT> RT uniqueResult(Expression<RT> expr)
Projectable
uniqueResult in interface ProjectableRT - return type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||