|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mysema.query.support.QueryBase<Q> com.mysema.query.support.ProjectableQuery<Q>
public abstract class ProjectableQuery<Q extends ProjectableQuery<Q>>
ProjectableQuery extends the QueryBase class to provide default implementations of the methods of the Projectable interface
Field Summary |
---|
Fields inherited from class com.mysema.query.support.QueryBase |
---|
queryMixin |
Constructor Summary | |
---|---|
ProjectableQuery(QueryMixin<Q> queryMixin)
|
Method Summary | ||
---|---|---|
long |
countDistinct()
return the amount of distinct matched rows |
|
com.mysema.commons.lang.CloseableIterator<Object[]> |
iterate(Expression<?> first,
Expression<?> second,
Expression<?>... rest)
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> projection)
list the distinct 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()
|
|
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 com.mysema.query.support.QueryBase |
---|
distinct, groupBy, having, limit, offset, orderBy, restrict, set, toString, where |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.mysema.query.Projectable |
---|
count, exists, iterate, iterate, listResults |
Constructor Detail |
---|
public ProjectableQuery(QueryMixin<Q> queryMixin)
Method Detail |
---|
public long countDistinct()
Projectable
countDistinct
in interface Projectable
public boolean notExists()
notExists
in interface Projectable
public final com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expression<?> first, Expression<?> second, Expression<?>... rest)
Projectable
iterate
in interface Projectable
public final com.mysema.commons.lang.CloseableIterator<Object[]> iterateDistinct(Expression<?> first, Expression<?> second, Expression<?>... rest)
Projectable
iterateDistinct
in interface Projectable
public final com.mysema.commons.lang.CloseableIterator<Object[]> iterateDistinct(Expression<?>[] args)
Projectable
iterateDistinct
in interface Projectable
public final <RT> com.mysema.commons.lang.CloseableIterator<RT> iterateDistinct(Expression<RT> projection)
Projectable
iterateDistinct
in interface Projectable
RT
- generic type of the Iteratpr
public final 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 final List<Object[]> listDistinct(Expression<?> first, Expression<?> second, Expression<?>... rest)
Projectable
listDistinct
in interface Projectable
rest
- rest
public final List<Object[]> listDistinct(Expression<?>[] args)
Projectable
listDistinct
in interface Projectable
public final <RT> List<RT> listDistinct(Expression<RT> projection)
Projectable
listDistinct
in interface Projectable
RT
- generic type of the List
public final <RT> SearchResults<RT> listDistinctResults(Expression<RT> projection)
Projectable
listDistinctResults
in interface Projectable
public final <K,V> Map<K,V> map(Expression<K> key, Expression<V> value)
Projectable
map
in interface Projectable
public final 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 |