Package javax.jdo
Interface JDOQLTypedSubquery<T>
- Type Parameters:
T
- (Candidate) type being represented
- All Superinterfaces:
Serializable
Interface for a type-safe subquery, using a fluent API.
Users should call methods on the subquery instance and end with a select of what the subquery returns; this
returns the expression that they use to link it with the owning query.
-
Method Summary
Modifier and TypeMethodDescriptionMethod to return an expression for the candidate of the subquery.filter
(BooleanExpression expr) Method to set the filter of the query.groupBy
(Expression<?>... exprs) Method to set the grouping(s) for the query.having
(Expression<?> expr) Method to set the having clause of the query.CollectionExpression
<?, ?> select
(CollectionExpression<?, ?> expr) Accessor for the subquery (collection) expression from the subquery.Accessor for the subquery (character) expression from the subquery when the subquery returns a single value.selectUnique
(DateExpression expr) Accessor for the subquery (date) expression from the subquery when the subquery returns a single value.Accessor for the subquery (datetime) expression from the subquery when the subquery returns a single value.<S> NumericExpression
<S> selectUnique
(NumericExpression<S> expr) Accessor for the subquery (numeric) expression from the subquery when the subquery returns a single value.selectUnique
(StringExpression expr) Accessor for the subquery (string) expression from the subquery when the subquery returns a single value.selectUnique
(TimeExpression expr) Accessor for the subquery (time) expression from the subquery when the subquery returns a single value.
-
Method Details
-
candidate
PersistableExpression<T> candidate()Method to return an expression for the candidate of the subquery. Cast the returned expression to the candidate "Q" type to be able to call methods on it.- Returns:
- Expression for the candidate
-
filter
Method to set the filter of the query.- Parameters:
expr
- Filter expression- Returns:
- The query
-
groupBy
Method to set the grouping(s) for the query.- Parameters:
exprs
- Grouping expression(s)- Returns:
- The query
-
having
Method to set the having clause of the query.- Parameters:
expr
- Having expression- Returns:
- The query
-
selectUnique
Accessor for the subquery (numeric) expression from the subquery when the subquery returns a single value.- Type Parameters:
S
- numeric type- Parameters:
expr
- The expression- Returns:
- Expression for the typesafe query
-
selectUnique
Accessor for the subquery (string) expression from the subquery when the subquery returns a single value.- Parameters:
expr
- The expression- Returns:
- Expression for the typesafe query
-
selectUnique
Accessor for the subquery (date) expression from the subquery when the subquery returns a single value.- Parameters:
expr
- The expression- Returns:
- Expression for the typesafe query
-
selectUnique
Accessor for the subquery (datetime) expression from the subquery when the subquery returns a single value.- Parameters:
expr
- The expression- Returns:
- Expression for the typesafe query
-
selectUnique
Accessor for the subquery (time) expression from the subquery when the subquery returns a single value.- Parameters:
expr
- The expression- Returns:
- Expression for the typesafe query
-
selectUnique
Accessor for the subquery (character) expression from the subquery when the subquery returns a single value.- Parameters:
expr
- The expression- Returns:
- Expression for the typesafe query
-
select
Accessor for the subquery (collection) expression from the subquery.- Parameters:
expr
- The expression- Returns:
- Expression for the typesafe query
-