com.mysema.query.support
Class DetachableQuery<SubType extends DetachableQuery<SubType>>

java.lang.Object
  extended by com.mysema.query.QueryBase<SubType>
      extended by com.mysema.query.support.DetachableQuery<SubType>
Type Parameters:
SubType -
All Implemented Interfaces:
Detachable
Direct Known Subclasses:
HQLSubQuery, JDOQLSubQuery, SQLSubQuery

public class DetachableQuery<SubType extends DetachableQuery<SubType>>
extends QueryBase<SubType>
implements Detachable

Author:
tiwe

Field Summary
 
Fields inherited from class com.mysema.query.QueryBase
queryMixin
 
Constructor Summary
DetachableQuery(QueryMixin<SubType> queryMixin)
           
 
Method Summary
 ObjectSubQuery<Long> count()
          Return the count of matched rows as a sub query
 EBoolean exists()
          Create an exists(this) expression
 ListSubQuery<Object[]> list(Expr<?>[] args)
           
 ListSubQuery<Object[]> list(Expr<?> first, Expr<?> second, Expr<?>... rest)
          Create a projection expression for the given projection
<RT> ListSubQuery<RT>
list(Expr<RT> projection)
          Create a projection expression for the given projection
 EBoolean notExists()
          Create an not exists(this) expression
 ObjectSubQuery<Object[]> unique(Expr<?>[] args)
          Create a projection expression for the given projection
 ObjectSubQuery<Object[]> unique(Expr<?> first, Expr<?> second, Expr<?>... rest)
          Create a projection expression for the given projection
<RT> ObjectSubQuery<RT>
unique(Expr<RT> projection)
          Create a projection expression for the given projection
 
Methods inherited from class com.mysema.query.QueryBase
groupBy, having, limit, offset, orderBy, restrict, toString, where
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DetachableQuery

public DetachableQuery(QueryMixin<SubType> queryMixin)
Method Detail

count

public ObjectSubQuery<Long> count()
Description copied from interface: Detachable
Return the count of matched rows as a sub query

Specified by:
count in interface Detachable
Returns:

exists

public EBoolean exists()
Description copied from interface: Detachable
Create an exists(this) expression

Specified by:
exists in interface Detachable
Returns:

list

public ListSubQuery<Object[]> list(Expr<?> first,
                                   Expr<?> second,
                                   Expr<?>... rest)
Description copied from interface: Detachable
Create a projection expression for the given projection

Specified by:
list in interface Detachable
rest - rest
Returns:
a List over the projection

list

public ListSubQuery<Object[]> list(Expr<?>[] args)
Specified by:
list in interface Detachable
Returns:

list

public <RT> ListSubQuery<RT> list(Expr<RT> projection)
Description copied from interface: Detachable
Create a projection expression for the given projection

Specified by:
list in interface Detachable
Type Parameters:
RT - generic type of the List
Returns:
a List over the projection

notExists

public EBoolean notExists()
Description copied from interface: Detachable
Create an not exists(this) expression

Specified by:
notExists in interface Detachable
Returns:

unique

public ObjectSubQuery<Object[]> unique(Expr<?> first,
                                       Expr<?> second,
                                       Expr<?>... rest)
Description copied from interface: Detachable
Create a projection expression for the given projection

Specified by:
unique in interface Detachable
Returns:

unique

public ObjectSubQuery<Object[]> unique(Expr<?>[] args)
Description copied from interface: Detachable
Create a projection expression for the given projection

Specified by:
unique in interface Detachable
Returns:

unique

public <RT> ObjectSubQuery<RT> unique(Expr<RT> projection)
Description copied from interface: Detachable
Create a projection expression for the given projection

Specified by:
unique in interface Detachable
Type Parameters:
RT - return type
Returns:
the result or null for an empty result


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