com.mysema.query
Interface Detachable

All Known Implementing Classes:
DetachableAdapter, DetachableMixin, DetachableQuery, HQLSubQuery, JDOQLSubQuery, SQLSubQuery

public interface Detachable

Detachable defines methods for the construction of SubQuery instances

Author:
tiwe

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
 

Method Detail

count

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

Returns:

exists

EBoolean exists()
Create an exists(this) expression

Returns:

list

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

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

list

ListSubQuery<Object[]> list(Expr<?>[] args)
Parameters:
args -
Returns:

list

<RT> ListSubQuery<RT> list(Expr<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

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

Returns:

unique

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

Parameters:
first -
second -
rest -
Returns:

unique

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

Parameters:
args -
Returns:

unique

<RT> ObjectSubQuery<RT> unique(Expr<RT> projection)
Create a projection expression for the given projection

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


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