com.mysema.query.support
Class DetachableMixin

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

public class DetachableMixin
extends java.lang.Object
implements Detachable

Mixin style implementation of the Detachable interface

Author:
tiwe

Constructor Summary
DetachableMixin(QueryMixin<?> queryMixin)
           
 
Method Summary
 SimpleSubQuery<java.lang.Long> count()
          Return the count of matched rows as a sub query
 BooleanExpression exists()
          Create an exists(this) expression
 ListSubQuery<java.lang.Object[]> list(Expression<?>[] args)
          Create a projection expression for the given projection
 ListSubQuery<java.lang.Object[]> list(Expression<?> first, Expression<?> second, Expression<?>... rest)
          Create a projection expression for the given projection
<RT> ListSubQuery<RT>
list(Expression<RT> projection)
          Create a projection expression for the given projection
 BooleanExpression notExists()
          Create an not exists(this) expression
<RT extends java.lang.Comparable<?>>
ComparableSubQuery<RT>
unique(ComparableExpression<RT> projection)
          Create a subquery expression for the given projection
<RT extends java.lang.Comparable<?>>
DateSubQuery<RT>
unique(DateExpression<RT> projection)
          Create a subquery expression for the given projection
<RT extends java.lang.Comparable<?>>
DateTimeSubQuery<RT>
unique(DateTimeExpression<RT> projection)
          Create a subquery expression for the given projection
 SimpleSubQuery<java.lang.Object[]> unique(Expression<?>[] args)
          Create a projection expression for the given projection
 SimpleSubQuery<java.lang.Object[]> unique(Expression<?> first, Expression<?> second, Expression<?>... rest)
          Create a projection expression for the given projection
<RT> SimpleSubQuery<RT>
unique(Expression<RT> projection)
          Create a subquery expression for the given projection
<RT extends java.lang.Number & java.lang.Comparable<?>>
NumberSubQuery<RT>
unique(NumberExpression<RT> projection)
          Create a subquery expression for the given projection
 BooleanSubQuery unique(Predicate projection)
          Create a subquery expression for the given projection
 StringSubQuery unique(StringExpression projection)
          Create a subquery expression for the given projection
<RT extends java.lang.Comparable<?>>
TimeSubQuery<RT>
unique(TimeExpression<RT> projection)
          Create a subquery 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 SimpleSubQuery<java.lang.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 BooleanExpression exists()
Description copied from interface: Detachable
Create an exists(this) expression

Specified by:
exists in interface Detachable
Returns:

list

public ListSubQuery<java.lang.Object[]> list(Expression<?> first,
                                             Expression<?> second,
                                             Expression<?>... 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<java.lang.Object[]> list(Expression<?>[] args)
Description copied from interface: Detachable
Create a projection expression for the given projection

Specified by:
list in interface Detachable
Returns:

list

public <RT> ListSubQuery<RT> list(Expression<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 BooleanExpression notExists()
Description copied from interface: Detachable
Create an not exists(this) expression

Specified by:
notExists in interface Detachable
Returns:

unique

public BooleanSubQuery unique(Predicate projection)
Description copied from interface: Detachable
Create a subquery expression for the given projection

Specified by:
unique in interface Detachable
Returns:

unique

public <RT extends java.lang.Comparable<?>> ComparableSubQuery<RT> unique(ComparableExpression<RT> projection)
Description copied from interface: Detachable
Create a subquery expression for the given projection

Specified by:
unique in interface Detachable
Returns:

unique

public <RT extends java.lang.Comparable<?>> DateSubQuery<RT> unique(DateExpression<RT> projection)
Description copied from interface: Detachable
Create a subquery expression for the given projection

Specified by:
unique in interface Detachable
Returns:

unique

public <RT extends java.lang.Comparable<?>> DateTimeSubQuery<RT> unique(DateTimeExpression<RT> projection)
Description copied from interface: Detachable
Create a subquery expression for the given projection

Specified by:
unique in interface Detachable
Returns:

unique

public <RT extends java.lang.Number & java.lang.Comparable<?>> NumberSubQuery<RT> unique(NumberExpression<RT> projection)
Description copied from interface: Detachable
Create a subquery expression for the given projection

Specified by:
unique in interface Detachable
Returns:

unique

public StringSubQuery unique(StringExpression projection)
Description copied from interface: Detachable
Create a subquery expression for the given projection

Specified by:
unique in interface Detachable
Returns:

unique

public <RT extends java.lang.Comparable<?>> TimeSubQuery<RT> unique(TimeExpression<RT> projection)
Description copied from interface: Detachable
Create a subquery expression for the given projection

Specified by:
unique in interface Detachable
Returns:

unique

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

Specified by:
unique in interface Detachable
Returns:

unique

public SimpleSubQuery<java.lang.Object[]> unique(Expression<?>[] args)
Description copied from interface: Detachable
Create a projection expression for the given projection

Specified by:
unique in interface Detachable
Returns:

unique

public <RT> SimpleSubQuery<RT> unique(Expression<RT> projection)
Description copied from interface: Detachable
Create a subquery 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.