com.mysema.query.support
Class SimpleQueryAdapter<T>

java.lang.Object
  extended by com.mysema.query.support.SimpleQueryAdapter<T>
Type Parameters:
T - type of entity
All Implemented Interfaces:
FilteredClause<SimpleQueryAdapter<T>>, SimpleProjectable<T>, SimpleQuery<SimpleQueryAdapter<T>>

Deprecated.

@Deprecated
public class SimpleQueryAdapter<T>
extends Object
implements SimpleQuery<SimpleQueryAdapter<T>>, SimpleProjectable<T>

SimpleQueryAdapter is an apdater implementation for the SimpleQuery and SimpleProjectabl interfaces

Author:
tiwe

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
<P> SimpleQueryAdapter<T>
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

SimpleQueryAdapter

public SimpleQueryAdapter(Q query,
                          Expression<T> projection)
Deprecated. 

SimpleQueryAdapter

public SimpleQueryAdapter(Query<?> query,
                          Projectable projectable,
                          Expression<T> projection)
Deprecated. 
Method Detail

exists

public boolean exists()
Deprecated. 
Specified by:
exists in interface SimpleProjectable<T>
Returns:
true, if rows matching the given criteria exist, otherwise false

notExists

public boolean notExists()
Deprecated. 
Specified by:
notExists in interface SimpleProjectable<T>
Returns:
true, if no rows matching the given criteria exist, otherwise false

count

public long count()
Deprecated. 
Description copied from interface: SimpleProjectable
Get the count of matched elements

Specified by:
count in interface SimpleProjectable<T>
Returns:

countDistinct

public long countDistinct()
Deprecated. 
Description copied from interface: SimpleProjectable
Get the count of distinct matched elements

Specified by:
countDistinct in interface SimpleProjectable<T>
Returns:

distinct

public SimpleQueryAdapter<T> distinct()
Deprecated. 
Description copied from interface: SimpleQuery
Set the Query to return distinct results

Specified by:
distinct in interface SimpleQuery<SimpleQueryAdapter<T>>
Returns:

limit

public SimpleQueryAdapter<T> limit(long limit)
Deprecated. 
Description copied from interface: SimpleQuery
Defines the limit / max results for the query results

Specified by:
limit in interface SimpleQuery<SimpleQueryAdapter<T>>
Returns:

iterate

public com.mysema.commons.lang.CloseableIterator<T> iterate()
Deprecated. 
Description copied from interface: SimpleProjectable
Get the projection as a typed closeable Iterator

Specified by:
iterate in interface SimpleProjectable<T>
Returns:

iterateDistinct

public com.mysema.commons.lang.CloseableIterator<T> iterateDistinct()
Deprecated. 
Description copied from interface: SimpleProjectable
Get the projection as a typed closeable Iterator with distinct elements

Specified by:
iterateDistinct in interface SimpleProjectable<T>
Returns:

list

public List<T> list()
Deprecated. 
Description copied from interface: SimpleProjectable
Get the projection as a typed List

Specified by:
list in interface SimpleProjectable<T>
Returns:

listDistinct

public List<T> listDistinct()
Deprecated. 
Description copied from interface: SimpleProjectable
Get the projection as a typed List with distinct elements

Specified by:
listDistinct in interface SimpleProjectable<T>
Returns:

listDistinctResults

public SearchResults<T> listDistinctResults()
Deprecated. 
Description copied from interface: SimpleProjectable
Get the projection in SearchResults form with distinct element

Specified by:
listDistinctResults in interface SimpleProjectable<T>
Returns:

listResults

public SearchResults<T> listResults()
Deprecated. 
Description copied from interface: SimpleProjectable
Get the projection in SearchResults form

Specified by:
listResults in interface SimpleProjectable<T>
Returns:

offset

public SimpleQueryAdapter<T> offset(long offset)
Deprecated. 
Description copied from interface: SimpleQuery
Defines the offset for the query results

Specified by:
offset in interface SimpleQuery<SimpleQueryAdapter<T>>
Returns:

orderBy

public SimpleQueryAdapter<T> orderBy(OrderSpecifier<?>... o)
Deprecated. 
Description copied from interface: SimpleQuery
Defines the order expressions

Specified by:
orderBy in interface SimpleQuery<SimpleQueryAdapter<T>>
Returns:

restrict

public SimpleQueryAdapter<T> restrict(QueryModifiers modifiers)
Deprecated. 
Description copied from interface: SimpleQuery
Defines both limit and offset of the query results

Specified by:
restrict in interface SimpleQuery<SimpleQueryAdapter<T>>
Returns:

set

public <P> SimpleQueryAdapter<T> set(ParamExpression<P> param,
                                     P value)
Deprecated. 
Description copied from interface: SimpleQuery
Set the given parameter to the given value

Specified by:
set in interface SimpleQuery<SimpleQueryAdapter<T>>
Returns:

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

singleResult

public T singleResult()
Deprecated. 
Description copied from interface: SimpleProjectable
Get the projection as a single result or null if no result is found

for multiple results only the first one is returned

Specified by:
singleResult in interface SimpleProjectable<T>
Returns:

uniqueResult

public T uniqueResult()
Deprecated. 
Description copied from interface: SimpleProjectable
Get the projection as a unique result or null if no result is found

Specified by:
uniqueResult in interface SimpleProjectable<T>
Returns:

where

public SimpleQueryAdapter<T> where(Predicate... e)
Deprecated. 
Description copied from interface: FilteredClause
Adds the given filter conditions

Specified by:
where in interface FilteredClause<SimpleQueryAdapter<T>>
Parameters:
e - filter conditions to be added
Returns:


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.