com.mysema.query.types.query
Interface Detachable

All Known Implementing Classes:
AbstractJDOQLSubQuery, AbstractJPQLSubQuery, AbstractSQLSubQuery, DetachableAdapter, DetachableMixin, DetachableQuery, HibernateSubQuery, JDOQLSubQuery, JPASubQuery, JPQLSubQuery, SQLSubQuery

public interface Detachable

Detachable defines methods for the construction of SubQuery instances

Author:
tiwe

Method Summary
 NumberSubQuery<Long> count()
          Return the count of matched rows as a sub query
 BooleanExpression exists()
          Create an exists(this) expression
 ListSubQuery<Object[]> list(Expression<?>[] args)
          Create a projection expression for the given projection
 ListSubQuery<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
 ListSubQuery<Object[]> list(Object... args)
          Create a projection expression for the given projection Non expression arguments are converted into constant expressions
 BooleanExpression notExists()
          Create an not exists(this) expression
<RT extends Comparable<?>>
ComparableSubQuery<RT>
unique(ComparableExpression<RT> projection)
          Create a subquery expression for the given projection
<RT extends Comparable<?>>
DateSubQuery<RT>
unique(DateExpression<RT> projection)
          Create a subquery expression for the given projection
<RT extends Comparable<?>>
DateTimeSubQuery<RT>
unique(DateTimeExpression<RT> projection)
          Create a subquery expression for the given projection
 SimpleSubQuery<Object[]> unique(Expression<?>[] args)
          Create a projection expression for the given projection
 SimpleSubQuery<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 Number & Comparable<?>>
NumberSubQuery<RT>
unique(NumberExpression<RT> projection)
          Create a subquery expression for the given projection
 SimpleSubQuery<Object[]> unique(Object... args)
          Create a projection expression for the given projection Non expression arguments are converted into constant expressions
 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 Comparable<?>>
TimeSubQuery<RT>
unique(TimeExpression<RT> projection)
          Create a subquery expression for the given projection
 

Method Detail

count

NumberSubQuery<Long> count()
Return the count of matched rows as a sub query

Returns:

exists

BooleanExpression exists()
Create an exists(this) expression

Returns:

list

ListSubQuery<Object[]> list(Expression<?> first,
                            Expression<?> second,
                            Expression<?>... rest)
Create a projection expression for the given projection

Parameters:
first -
second -
rest - rest
Returns:
a List over the projection

list

ListSubQuery<Object[]> list(Expression<?>[] args)
Create a projection expression for the given projection

Parameters:
args -
Returns:

list

ListSubQuery<Object[]> list(Object... args)
Create a projection expression for the given projection Non expression arguments are converted into constant expressions

Parameters:
args -
Returns:

list

<RT> ListSubQuery<RT> list(Expression<RT> projection)
Create a projection expression for the given projection

Type Parameters:
RT - generic type of the List
Parameters:
projection -
Returns:
a List over the projection

notExists

BooleanExpression notExists()
Create an not exists(this) expression

Returns:

unique

SimpleSubQuery<Object[]> unique(Expression<?> first,
                                Expression<?> second,
                                Expression<?>... rest)
Create a projection expression for the given projection

Parameters:
first -
second -
rest -
Returns:

unique

SimpleSubQuery<Object[]> unique(Expression<?>[] args)
Create a projection expression for the given projection

Parameters:
args -
Returns:

unique

SimpleSubQuery<Object[]> unique(Object... args)
Create a projection expression for the given projection Non expression arguments are converted into constant expressions

Parameters:
args -
Returns:

unique

<RT> SimpleSubQuery<RT> unique(Expression<RT> projection)
Create a subquery expression for the given projection

Type Parameters:
RT - return type
Parameters:
projection -
Returns:
the result or null for an empty result

unique

BooleanSubQuery unique(Predicate projection)
Create a subquery expression for the given projection

Parameters:
projection -
Returns:

unique

StringSubQuery unique(StringExpression projection)
Create a subquery expression for the given projection

Parameters:
projection -
Returns:

unique

<RT extends Comparable<?>> ComparableSubQuery<RT> unique(ComparableExpression<RT> projection)
Create a subquery expression for the given projection

Type Parameters:
RT -
Parameters:
projection -
Returns:

unique

<RT extends Comparable<?>> DateSubQuery<RT> unique(DateExpression<RT> projection)
Create a subquery expression for the given projection

Type Parameters:
RT -
Parameters:
projection -
Returns:

unique

<RT extends Comparable<?>> DateTimeSubQuery<RT> unique(DateTimeExpression<RT> projection)
Create a subquery expression for the given projection

Type Parameters:
RT -
Parameters:
projection -
Returns:

unique

<RT extends Comparable<?>> TimeSubQuery<RT> unique(TimeExpression<RT> projection)
Create a subquery expression for the given projection

Type Parameters:
RT -
Parameters:
projection -
Returns:

unique

<RT extends Number & Comparable<?>> NumberSubQuery<RT> unique(NumberExpression<RT> projection)
Create a subquery expression for the given projection

Type Parameters:
RT -
Parameters:
projection -
Returns:


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