T - type of entitypublic class SimpleProjectableAdapter<T> extends Object implements SimpleQuery<SimpleProjectableAdapter<T>>, SimpleProjectable<T>
SimpleQuery and 
 SimpleProjectable interfaces| Constructor and Description | 
|---|
| SimpleProjectableAdapter(Q query,
                        Expression<T> projection) | 
| SimpleProjectableAdapter(SimpleQuery<?> query,
                        Projectable projectable,
                        Expression<T> projection) | 
| Modifier and Type | Method and Description | 
|---|---|
| long | count()Get the count of matched elements | 
| SimpleProjectableAdapter<T> | distinct()Set the Query to return distinct results | 
| boolean | exists() | 
| com.mysema.commons.lang.CloseableIterator<T> | iterate()Get the projection as a typed closeable Iterator | 
| SimpleProjectableAdapter<T> | limit(long limit)Set the limit / max results for the query results | 
| List<T> | list()Get the projection as a typed List | 
| SearchResults<T> | listResults()Get the projection in  SearchResultsform | 
| boolean | notExists() | 
| SimpleProjectableAdapter<T> | offset(long offset)Set the offset for the query results | 
| SimpleProjectableAdapter<T> | orderBy(OrderSpecifier<?>... o)Add order expressions | 
| SimpleProjectableAdapter<T> | restrict(QueryModifiers modifiers)Set both limit and offset of the query results | 
| <P> SimpleProjectableAdapter<T> | set(ParamExpression<P> param,
   P value)Set the given parameter to the given value | 
| T | singleResult()Get the projection as a single result or null if no result is found | 
| String | toString() | 
| T | uniqueResult()Get the projection as a unique result or null if no result is found | 
| SimpleProjectableAdapter<T> | where(Predicate... e)Adds the given filter conditions | 
public SimpleProjectableAdapter(Q query,
                                Expression<T> projection)
public SimpleProjectableAdapter(SimpleQuery<?> query, Projectable projectable, Expression<T> projection)
public boolean exists()
exists in interface SimpleProjectable<T>public boolean notExists()
notExists in interface SimpleProjectable<T>public long count()
SimpleProjectablecount in interface SimpleProjectable<T>public SimpleProjectableAdapter<T> distinct()
SimpleQuerydistinct in interface SimpleQuery<SimpleProjectableAdapter<T>>public SimpleProjectableAdapter<T> limit(long limit)
SimpleQuerylimit in interface SimpleQuery<SimpleProjectableAdapter<T>>public com.mysema.commons.lang.CloseableIterator<T> iterate()
SimpleProjectableiterate in interface SimpleProjectable<T>public List<T> list()
SimpleProjectablelist in interface SimpleProjectable<T>public SearchResults<T> listResults()
SimpleProjectableSearchResults formlistResults in interface SimpleProjectable<T>public SimpleProjectableAdapter<T> offset(long offset)
SimpleQueryoffset in interface SimpleQuery<SimpleProjectableAdapter<T>>public SimpleProjectableAdapter<T> orderBy(OrderSpecifier<?>... o)
SimpleQueryorderBy in interface SimpleQuery<SimpleProjectableAdapter<T>>public SimpleProjectableAdapter<T> restrict(QueryModifiers modifiers)
SimpleQueryrestrict in interface SimpleQuery<SimpleProjectableAdapter<T>>public <P> SimpleProjectableAdapter<T> set(ParamExpression<P> param, P value)
SimpleQueryset in interface SimpleQuery<SimpleProjectableAdapter<T>>public T singleResult()
SimpleProjectablefor multiple results only the first one is returned
singleResult in interface SimpleProjectable<T>public T uniqueResult()
SimpleProjectableuniqueResult in interface SimpleProjectable<T>public SimpleProjectableAdapter<T> where(Predicate... e)
FilteredClauseSkips null arguments
where in interface FilteredClause<SimpleProjectableAdapter<T>>e - filter conditions to be addedCopyright © 2007–2015 Querydsl. All rights reserved.