com.mysema.query.support
Class DetachableMixin

java.lang.Object
  extended by com.mysema.query.support.DetachableMixin
All Implemented Interfaces:
Detachable

public class DetachableMixin
extends Object
implements Detachable

Mixin style implementation of the Detachable interface

Author:
tiwe

Constructor Summary
DetachableMixin(QueryMixin<?> 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DetachableMixin

public DetachableMixin(QueryMixin<?> 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.