| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Projectable
Projectable defines default projection methods for Query implementations.
 All Querydsl query implementations should implement either this interface or
 SimpleProjectable.
SimpleProjectable| Method Summary | ||
|---|---|---|
 long | 
count()
return the amount of matched rows  | 
|
 long | 
countDistinct()
return the amount of distinct matched rows  | 
|
 boolean | 
exists()
 | 
|
 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> projection)
list the distinct results for the given projection  | 
|
 | 
listResults(Expression<RT> projection)
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()
 | 
|
 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> projection)
return a unique result for the given projection or null if not result is found  | 
|
| Method Detail | 
|---|
@Nonnegative long count()
@Nonnegative long countDistinct()
boolean exists()
boolean notExists()
com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expression<?> first,
                                                            Expression<?> second,
                                                            Expression<?>... rest)
first - second - rest - 
com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expression<?>[] args)
args - 
<RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expression<RT> projection)
RT - generic type of the Iteratorprojection - 
com.mysema.commons.lang.CloseableIterator<Object[]> iterateDistinct(Expression<?> first,
                                                                    Expression<?> second,
                                                                    Expression<?>... rest)
first - second - rest - 
com.mysema.commons.lang.CloseableIterator<Object[]> iterateDistinct(Expression<?>[] args)
args - 
<RT> com.mysema.commons.lang.CloseableIterator<RT> iterateDistinct(Expression<RT> projection)
RT - generic type of the Iteratprprojection - 
List<Object[]> list(Expression<?> first,
                    Expression<?> second,
                    Expression<?>... rest)
first - second - rest - rest
List<Object[]> list(Expression<?>[] args)
args - 
<RT> List<RT> list(Expression<RT> projection)
RT - generic type of the Listprojection - 
List<Object[]> listDistinct(Expression<?> first,
                            Expression<?> second,
                            Expression<?>... rest)
first - second - rest - rest
List<Object[]> listDistinct(Expression<?>[] args)
args - 
<RT> List<RT> listDistinct(Expression<RT> projection)
RT - generic type of the Listprojection - 
<RT> SearchResults<RT> listResults(Expression<RT> projection)
RT - projection - 
<RT> SearchResults<RT> listDistinctResults(Expression<RT> projection)
RT - projection - 
<K,V> Map<K,V> map(Expression<K> key,
                   Expression<V> value)
K - V - key - value - 
@Nullable
Object[] uniqueResult(Expression<?> first,
                               Expression<?> second,
                               Expression<?>... rest)
first - second - rest - 
@Nullable Object[] uniqueResult(Expression<?>[] args)
args - 
@Nullable <RT> RT uniqueResult(Expression<RT> projection)
RT - return typeprojection - 
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||