com.mysema.query.support
Class QueryBaseWithDetach<SubType extends QueryBaseWithDetach<SubType>>
java.lang.Object
com.mysema.query.QueryBase<SubType>
com.mysema.query.support.QueryBaseWithDetach<SubType>
- Type Parameters:
SubType
-
- All Implemented Interfaces:
- Detachable
- Direct Known Subclasses:
- HQLSubQuery, JDOQLSubQuery, SQLSubQuery
public abstract class QueryBaseWithDetach<SubType extends QueryBaseWithDetach<SubType>>
- extends QueryBase<SubType>
- implements Detachable
- Author:
- tiwe
QueryBaseWithDetach
public QueryBaseWithDetach(QueryMetadata metadata)
count
public ObjectSubQuery<Long> count()
- Description copied from interface:
Detachable
- Return the count of matched rows as a subquery
- Specified by:
count
in interface Detachable
- Returns:
exists
public EBoolean exists()
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 <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()
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 <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-2009 Mysema Ltd. All Rights Reserved.