|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 or null if not result is found |
|
Object[] |
uniqueResult(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
return a unique result for the given projection or null if not result is found |
|
|
uniqueResult(Expression<RT> expr)
return a unique result for the given projection or null if not 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 Projectable
public long countDistinct()
Projectable
countDistinct
in interface Projectable
public boolean exists()
exists
in interface Projectable
public boolean notExists()
notExists
in interface Projectable
public com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expression<?> first, Expression<?> second, Expression<?>... rest)
Projectable
iterate
in interface Projectable
public com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expression<?>[] args)
Projectable
iterate
in interface Projectable
public <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expression<RT> projection)
Projectable
iterate
in interface Projectable
RT
- generic type of the Iterator
public com.mysema.commons.lang.CloseableIterator<Object[]> iterateDistinct(Expression<?> first, Expression<?> second, Expression<?>... rest)
Projectable
iterateDistinct
in interface Projectable
public com.mysema.commons.lang.CloseableIterator<Object[]> iterateDistinct(Expression<?>[] args)
Projectable
iterateDistinct
in interface Projectable
public <RT> com.mysema.commons.lang.CloseableIterator<RT> iterateDistinct(Expression<RT> projection)
Projectable
iterateDistinct
in interface Projectable
RT
- generic type of the Iteratpr
public List<Object[]> list(Expression<?> first, Expression<?> second, Expression<?>... rest)
Projectable
list
in interface Projectable
rest
- rest
public List<Object[]> list(Expression<?>[] args)
Projectable
list
in interface Projectable
public <RT> List<RT> list(Expression<RT> projection)
Projectable
list
in interface Projectable
RT
- generic type of the List
public List<Object[]> listDistinct(Expression<?> first, Expression<?> second, Expression<?>... rest)
Projectable
listDistinct
in interface Projectable
rest
- rest
public List<Object[]> listDistinct(Expression<?>[] args)
Projectable
listDistinct
in interface Projectable
public <RT> List<RT> listDistinct(Expression<RT> projection)
Projectable
listDistinct
in interface Projectable
RT
- generic type of the List
public <RT> SearchResults<RT> listDistinctResults(Expression<RT> expr)
Projectable
listDistinctResults
in interface Projectable
public <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 Projectable
public String toString()
toString
in class Object
public Object[] uniqueResult(Expression<?> first, Expression<?> second, Expression<?>... rest)
Projectable
uniqueResult
in interface Projectable
public Object[] uniqueResult(Expression<?>[] args)
Projectable
uniqueResult
in interface Projectable
public <RT> RT uniqueResult(Expression<RT> expr)
Projectable
uniqueResult
in interface Projectable
RT
- return type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |