| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.support.SimpleQueryAdapter<T>
T - type of entity
@Deprecated public class SimpleQueryAdapter<T>
SimpleQueryAdapter is an apdater implementation for the SimpleQuery and SimpleProjectabl interfaces
| Constructor Summary | |
|---|---|
SimpleQueryAdapter(Q query,
                   Expression<T> projection)
Deprecated.  | 
|
SimpleQueryAdapter(Query<?> query,
                   Projectable projectable,
                   Expression<T> projection)
Deprecated.  | 
|
| Method Summary | ||
|---|---|---|
 long | 
count()
Deprecated. Get the count of matched elements  | 
|
 long | 
countDistinct()
Deprecated. Get the count of distinct matched elements  | 
|
 SimpleQueryAdapter<T> | 
distinct()
Deprecated. Set the Query to return distinct results  | 
|
 boolean | 
exists()
Deprecated.  | 
|
 com.mysema.commons.lang.CloseableIterator<T> | 
iterate()
Deprecated. Get the projection as a typed closeable Iterator  | 
|
 com.mysema.commons.lang.CloseableIterator<T> | 
iterateDistinct()
Deprecated. Get the projection as a typed closeable Iterator with distinct elements  | 
|
 SimpleQueryAdapter<T> | 
limit(long limit)
Deprecated. Defines the limit / max results for the query results  | 
|
 List<T> | 
list()
Deprecated. Get the projection as a typed List  | 
|
 List<T> | 
listDistinct()
Deprecated. Get the projection as a typed List with distinct elements  | 
|
 SearchResults<T> | 
listDistinctResults()
Deprecated. Get the projection in SearchResults form with distinct element | 
|
 SearchResults<T> | 
listResults()
Deprecated. Get the projection in SearchResults form | 
|
 boolean | 
notExists()
Deprecated.  | 
|
 SimpleQueryAdapter<T> | 
offset(long offset)
Deprecated. Defines the offset for the query results  | 
|
 SimpleQueryAdapter<T> | 
orderBy(OrderSpecifier<?>... o)
Deprecated. Defines the order expressions  | 
|
 SimpleQueryAdapter<T> | 
restrict(QueryModifiers modifiers)
Deprecated. Defines both limit and offset of the query results  | 
|
 | 
set(ParamExpression<P> param,
    P value)
Deprecated. Set the given parameter to the given value  | 
|
 T | 
singleResult()
Deprecated. Get the projection as a single result or null if no result is found  | 
|
 String | 
toString()
Deprecated.  | 
|
 T | 
uniqueResult()
Deprecated. Get the projection as a unique result or null if no result is found  | 
|
 SimpleQueryAdapter<T> | 
where(Predicate... e)
Deprecated. Adds the given filter conditions  | 
|
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public SimpleQueryAdapter(Q query,
                          Expression<T> projection)
public SimpleQueryAdapter(Query<?> query,
                          Projectable projectable,
                          Expression<T> projection)
| Method Detail | 
|---|
public boolean exists()
exists in interface SimpleProjectable<T>public boolean notExists()
notExists in interface SimpleProjectable<T>public long count()
SimpleProjectable
count in interface SimpleProjectable<T>public long countDistinct()
SimpleProjectable
countDistinct in interface SimpleProjectable<T>public SimpleQueryAdapter<T> distinct()
SimpleQuery
distinct in interface SimpleQuery<SimpleQueryAdapter<T>>public SimpleQueryAdapter<T> limit(long limit)
SimpleQuery
limit in interface SimpleQuery<SimpleQueryAdapter<T>>public com.mysema.commons.lang.CloseableIterator<T> iterate()
SimpleProjectable
iterate in interface SimpleProjectable<T>public com.mysema.commons.lang.CloseableIterator<T> iterateDistinct()
SimpleProjectable
iterateDistinct in interface SimpleProjectable<T>public List<T> list()
SimpleProjectable
list in interface SimpleProjectable<T>public List<T> listDistinct()
SimpleProjectable
listDistinct in interface SimpleProjectable<T>public SearchResults<T> listDistinctResults()
SimpleProjectableSearchResults form with distinct element
listDistinctResults in interface SimpleProjectable<T>public SearchResults<T> listResults()
SimpleProjectableSearchResults form
listResults in interface SimpleProjectable<T>public SimpleQueryAdapter<T> offset(long offset)
SimpleQuery
offset in interface SimpleQuery<SimpleQueryAdapter<T>>public SimpleQueryAdapter<T> orderBy(OrderSpecifier<?>... o)
SimpleQuery
orderBy in interface SimpleQuery<SimpleQueryAdapter<T>>public SimpleQueryAdapter<T> restrict(QueryModifiers modifiers)
SimpleQuery
restrict in interface SimpleQuery<SimpleQueryAdapter<T>>
public <P> SimpleQueryAdapter<T> set(ParamExpression<P> param,
                                     P value)
SimpleQuery
set in interface SimpleQuery<SimpleQueryAdapter<T>>public String toString()
toString in class Objectpublic T singleResult()
SimpleProjectablefor multiple results only the first one is returned
singleResult in interface SimpleProjectable<T>public T uniqueResult()
SimpleProjectable
uniqueResult in interface SimpleProjectable<T>public SimpleQueryAdapter<T> where(Predicate... e)
FilteredClause
where in interface FilteredClause<SimpleQueryAdapter<T>>e - filter conditions to be added
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||