com.mysema.query
Interface Detachable

All Known Implementing Classes:
HQLSubQuery, JDOQLSubQuery, QueryBaseWithDetach, 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 subquery
 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
 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 subquery

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

<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

unique

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

Parameters:
first -
second -
rest -
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-2009 Mysema Ltd. All Rights Reserved.