public class AbstractSQLSubQuery<Q extends AbstractSQLSubQuery<Q>> extends DetachableQuery<Q> implements SQLCommonQuery<Q>
Modifier and Type | Field and Description |
---|---|
protected QueryMixin<Q> |
queryMixin |
Constructor and Description |
---|
AbstractSQLSubQuery() |
AbstractSQLSubQuery(QueryMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
Q |
addFlag(QueryFlag.Position position,
Expression<?> flag)
Add the given Expression as a query flag
|
Q |
addFlag(QueryFlag.Position position,
java.lang.String flag)
Add the given String literal as a query flag
|
Q |
addFlag(QueryFlag.Position position,
java.lang.String prefix,
Expression<?> expr)
Add the given prefix and expression as a general query flag
|
Q |
addJoinFlag(java.lang.String flag)
Add the given String literal as a join flag to the last added join with the
position BEFORE_TARGET
|
Q |
addJoinFlag(java.lang.String flag,
JoinFlag.Position position)
Add the given String literal as a join flag to the last added join
|
Q |
from(Expression<?>... args)
Defines the sources of the query
|
Q |
from(Expression<?> arg) |
Q |
from(SubQueryExpression<?> subQuery,
Path<?> alias)
Adds a sub query source
|
<E> Q |
fullJoin(ForeignKey<E> key,
RelationalPath<E> entity)
Adds a full join to the given target
|
<E> Q |
fullJoin(RelationalFunctionCall<E> target,
Path<E> alias)
Adds a full join to the given target
|
Q |
fullJoin(RelationalPath<?> target)
Adds a full join to the given target
|
Q |
fullJoin(SubQueryExpression<?> target,
Path<?> alias)
Adds a full join to the given target
|
<E> Q |
innerJoin(ForeignKey<E> key,
RelationalPath<E> entity)
Adds an inner join to the given target
|
<E> Q |
innerJoin(RelationalFunctionCall<E> target,
Path<E> alias)
Adds a full join to the given target
|
Q |
innerJoin(RelationalPath<?> target)
Adds an inner join to the given target
|
Q |
innerJoin(SubQueryExpression<?> target,
Path<?> alias)
Adds an inner join to the given target
|
<E> Q |
join(ForeignKey<E> key,
RelationalPath<E> entity)
Adds a join to the given target
|
<E> Q |
join(RelationalFunctionCall<E> target,
Path<E> alias)
Adds a full join to the given target
|
Q |
join(RelationalPath<?> target)
Adds a join to the given target
|
Q |
join(SubQueryExpression<?> target,
Path<?> alias)
Adds a join to the given target
|
<E> Q |
leftJoin(ForeignKey<E> key,
RelationalPath<E> entity)
Adds a left join to the given target
|
<E> Q |
leftJoin(RelationalFunctionCall<E> target,
Path<E> alias)
Adds a full join to the given target
|
Q |
leftJoin(RelationalPath<?> target)
Adds a left join to the given target
|
Q |
leftJoin(SubQueryExpression<?> target,
Path<?> alias)
Adds a left join to the given target
|
Q |
on(Predicate... conditions)
Defines a filter to the last added join
|
Q |
on(Predicate condition) |
<E> Q |
rightJoin(ForeignKey<E> key,
RelationalPath<E> entity)
Adds a right join to the given target
|
<E> Q |
rightJoin(RelationalFunctionCall<E> target,
Path<E> alias)
Adds a full join to the given target
|
Q |
rightJoin(RelationalPath<?> target)
Adds a right join to the given target
|
Q |
rightJoin(SubQueryExpression<?> target,
Path<?> alias)
Adds a right join to the given target
|
java.lang.String |
toString() |
count, exists, list, list, list, list, notExists, unique, unique, unique, unique, unique, unique, unique, unique, unique, unique
distinct, equals, groupBy, groupBy, hashCode, having, having, limit, offset, orderBy, orderBy, restrict, set, where, where
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
distinct, limit, offset, orderBy, restrict, set
where
protected final QueryMixin<Q extends AbstractSQLSubQuery<Q>> queryMixin
public AbstractSQLSubQuery()
public AbstractSQLSubQuery(QueryMetadata metadata)
public Q addFlag(QueryFlag.Position position, java.lang.String prefix, Expression<?> expr)
addFlag
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
position
- position of the flagprefix
- prefix for the flagexpr
- expression of the flagpublic Q addFlag(QueryFlag.Position position, java.lang.String flag)
addFlag
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
position
- flag
- public Q addFlag(QueryFlag.Position position, Expression<?> flag)
addFlag
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
position
- flag
- public Q addJoinFlag(java.lang.String flag)
addJoinFlag
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
flag
- public Q addJoinFlag(java.lang.String flag, JoinFlag.Position position)
addJoinFlag
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
flag
- position
- public Q from(Expression<?> arg)
public Q from(Expression<?>... args)
SQLCommonQuery
from
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public Q from(SubQueryExpression<?> subQuery, Path<?> alias)
SQLCommonQuery
from
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public Q fullJoin(RelationalPath<?> target)
SQLCommonQuery
fullJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public <E> Q fullJoin(RelationalFunctionCall<E> target, Path<E> alias)
SQLCommonQuery
fullJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public <E> Q fullJoin(ForeignKey<E> key, RelationalPath<E> entity)
SQLCommonQuery
fullJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public Q fullJoin(SubQueryExpression<?> target, Path<?> alias)
SQLCommonQuery
fullJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public Q innerJoin(RelationalPath<?> target)
SQLCommonQuery
innerJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public <E> Q innerJoin(RelationalFunctionCall<E> target, Path<E> alias)
SQLCommonQuery
innerJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public <E> Q innerJoin(ForeignKey<E> key, RelationalPath<E> entity)
SQLCommonQuery
innerJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public Q innerJoin(SubQueryExpression<?> target, Path<?> alias)
SQLCommonQuery
innerJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public Q join(RelationalPath<?> target)
SQLCommonQuery
join
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public <E> Q join(RelationalFunctionCall<E> target, Path<E> alias)
SQLCommonQuery
join
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public <E> Q join(ForeignKey<E> key, RelationalPath<E> entity)
SQLCommonQuery
join
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public Q join(SubQueryExpression<?> target, Path<?> alias)
SQLCommonQuery
join
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public Q leftJoin(RelationalPath<?> target)
SQLCommonQuery
leftJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public <E> Q leftJoin(RelationalFunctionCall<E> target, Path<E> alias)
SQLCommonQuery
leftJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public <E> Q leftJoin(ForeignKey<E> key, RelationalPath<E> entity)
SQLCommonQuery
leftJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public Q leftJoin(SubQueryExpression<?> target, Path<?> alias)
SQLCommonQuery
leftJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public Q on(Predicate... conditions)
SQLCommonQuery
on
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public Q rightJoin(RelationalPath<?> target)
SQLCommonQuery
rightJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public <E> Q rightJoin(RelationalFunctionCall<E> target, Path<E> alias)
SQLCommonQuery
rightJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public <E> Q rightJoin(ForeignKey<E> key, RelationalPath<E> entity)
SQLCommonQuery
rightJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public Q rightJoin(SubQueryExpression<?> target, Path<?> alias)
SQLCommonQuery
rightJoin
in interface SQLCommonQuery<Q extends AbstractSQLSubQuery<Q>>
public java.lang.String toString()
toString
in class QueryBase<Q extends AbstractSQLSubQuery<Q>>
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.