|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysema.query.support.QueryBase<Q>
com.mysema.query.support.ProjectableQuery<Q>
com.mysema.query.sql.AbstractSQLQuery<Q>
public abstract class AbstractSQLQuery<Q extends AbstractSQLQuery<Q> & com.mysema.query.Query>
AbstractSQLQuery is the base type for SQL query implementations
Field Summary | |
---|---|
protected SQLQueryMixin<Q> |
queryMixin
|
protected com.mysema.query.types.SubQueryExpression<?>[] |
union
|
protected boolean |
unionAll
|
Constructor Summary | |
---|---|
AbstractSQLQuery(Connection conn,
Configuration configuration)
|
|
AbstractSQLQuery(Connection conn,
Configuration configuration,
com.mysema.query.QueryMetadata metadata)
|
Method Summary | ||
---|---|---|
Q |
addFlag(com.mysema.query.QueryFlag.Position position,
com.mysema.query.types.Expression<?> flag)
Add the given Expression as a query flag |
|
Q |
addFlag(com.mysema.query.QueryFlag.Position position,
String flag)
Add the given String literal as query flag |
|
Q |
addFlag(com.mysema.query.QueryFlag.Position position,
String prefix,
com.mysema.query.types.Expression<?> expr)
Add the given prefix and expression as a general query flag |
|
Q |
addJoinFlag(String flag)
Add the given String literal as a join flag to the last added join with the position BEFORE_TARGET |
|
Q |
addJoinFlag(String flag,
com.mysema.query.JoinFlag.Position position)
Add the given String literal as a join flag to the last added join |
|
protected String |
buildQueryString(boolean forCountRow)
|
|
long |
count()
|
|
protected SQLSerializer |
createSerializer()
|
|
boolean |
exists()
|
|
Q |
forUpdate()
|
|
Q |
from(com.mysema.query.types.Expression<?>... args)
|
|
Q |
from(com.mysema.query.types.SubQueryExpression<?> subQuery,
com.mysema.query.types.Path<?> alias)
|
|
|
fullJoin(ForeignKey<E> key,
RelationalPath<E> entity)
|
|
|
fullJoin(RelationalFunctionCall<E> target,
com.mysema.query.types.Path<E> alias)
|
|
Q |
fullJoin(RelationalPath<?> target)
|
|
Q |
fullJoin(com.mysema.query.types.SubQueryExpression<?> target,
com.mysema.query.types.Path<?> alias)
|
|
protected Configuration |
getConfiguration()
|
|
com.mysema.query.QueryMetadata |
getMetadata()
|
|
ResultSet |
getResults(com.mysema.query.types.Expression<?>... exprs)
|
|
|
innerJoin(ForeignKey<E> key,
RelationalPath<E> entity)
|
|
|
innerJoin(RelationalFunctionCall<E> target,
com.mysema.query.types.Path<E> alias)
|
|
Q |
innerJoin(RelationalPath<?> target)
|
|
Q |
innerJoin(com.mysema.query.types.SubQueryExpression<?> target,
com.mysema.query.types.Path<?> alias)
|
|
com.mysema.commons.lang.CloseableIterator<Object[]> |
iterate(com.mysema.query.types.Expression<?>[] args)
|
|
|
iterate(com.mysema.query.types.Expression<RT> expr)
|
|
|
join(ForeignKey<E> key,
RelationalPath<E> entity)
|
|
|
join(RelationalFunctionCall<E> target,
com.mysema.query.types.Path<E> alias)
|
|
Q |
join(RelationalPath<?> target)
|
|
Q |
join(com.mysema.query.types.SubQueryExpression<?> target,
com.mysema.query.types.Path<?> alias)
|
|
|
leftJoin(ForeignKey<E> key,
RelationalPath<E> entity)
|
|
|
leftJoin(RelationalFunctionCall<E> target,
com.mysema.query.types.Path<E> alias)
|
|
Q |
leftJoin(RelationalPath<?> target)
|
|
Q |
leftJoin(com.mysema.query.types.SubQueryExpression<?> target,
com.mysema.query.types.Path<?> alias)
|
|
List<Object[]> |
list(com.mysema.query.types.Expression<?>[] args)
|
|
|
list(com.mysema.query.types.Expression<RT> expr)
|
|
|
listResults(com.mysema.query.types.Expression<RT> expr)
|
|
Q |
on(com.mysema.query.types.Predicate... conditions)
|
|
|
rightJoin(ForeignKey<E> key,
RelationalPath<E> entity)
|
|
|
rightJoin(RelationalFunctionCall<E> target,
com.mysema.query.types.Path<E> alias)
|
|
Q |
rightJoin(RelationalPath<?> target)
|
|
Q |
rightJoin(com.mysema.query.types.SubQueryExpression<?> target,
com.mysema.query.types.Path<?> alias)
|
|
protected void |
setParameters(PreparedStatement stmt,
List<?> objects,
List<com.mysema.query.types.Path<?>> constantPaths,
Map<com.mysema.query.types.ParamExpression<?>,?> params)
|
|
String |
toString()
|
|
|
union(com.mysema.query.types.query.ListSubQuery<RT>... sq)
|
|
|
union(com.mysema.query.types.Path<?> alias,
com.mysema.query.types.query.ListSubQuery<RT>... sq)
|
|
|
union(com.mysema.query.types.Path<?> alias,
com.mysema.query.types.SubQueryExpression<RT>... sq)
|
|
|
union(com.mysema.query.types.SubQueryExpression<RT>... sq)
|
|
|
unionAll(com.mysema.query.types.query.ListSubQuery<RT>... sq)
|
|
|
unionAll(com.mysema.query.types.Path<?> alias,
com.mysema.query.types.query.ListSubQuery<RT>... sq)
|
|
|
unionAll(com.mysema.query.types.Path<?> alias,
com.mysema.query.types.SubQueryExpression<RT>... sq)
|
|
|
unionAll(com.mysema.query.types.SubQueryExpression<RT>... sq)
|
|
Object[] |
uniqueResult(com.mysema.query.types.Expression<?>[] expr)
|
|
|
uniqueResult(com.mysema.query.types.Expression<RT> expr)
|
Methods inherited from class com.mysema.query.support.ProjectableQuery |
---|
countDistinct, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, notExists, singleResult, singleResult, singleResult, transform, uniqueResult, uniqueResult |
Methods inherited from class com.mysema.query.support.QueryBase |
---|
distinct, equals, groupBy, hashCode, having, limit, offset, orderBy, restrict, set, where |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@Nullable protected com.mysema.query.types.SubQueryExpression<?>[] union
protected final SQLQueryMixin<Q extends AbstractSQLQuery<Q> & com.mysema.query.Query> queryMixin
protected boolean unionAll
Constructor Detail |
---|
public AbstractSQLQuery(@Nullable Connection conn, Configuration configuration)
public AbstractSQLQuery(@Nullable Connection conn, Configuration configuration, com.mysema.query.QueryMetadata metadata)
Method Detail |
---|
public Q addJoinFlag(String flag)
flag
-
public Q addJoinFlag(String flag, com.mysema.query.JoinFlag.Position position)
flag
- position
-
public Q addFlag(com.mysema.query.QueryFlag.Position position, String prefix, com.mysema.query.types.Expression<?> expr)
position
- position of the flagprefix
- prefix for the flagexpr
- expression of the flag
public Q addFlag(com.mysema.query.QueryFlag.Position position, String flag)
position
- flag
-
public Q addFlag(com.mysema.query.QueryFlag.Position position, com.mysema.query.types.Expression<?> flag)
position
- flag
-
protected String buildQueryString(boolean forCountRow)
public long count()
public boolean exists()
public Q forUpdate()
protected SQLSerializer createSerializer()
public Q from(com.mysema.query.types.Expression<?>... args)
public Q from(com.mysema.query.types.SubQueryExpression<?> subQuery, com.mysema.query.types.Path<?> alias)
public Q fullJoin(RelationalPath<?> target)
public <E> Q fullJoin(RelationalFunctionCall<E> target, com.mysema.query.types.Path<E> alias)
public Q fullJoin(com.mysema.query.types.SubQueryExpression<?> target, com.mysema.query.types.Path<?> alias)
public <E> Q fullJoin(ForeignKey<E> key, RelationalPath<E> entity)
public Q innerJoin(RelationalPath<?> target)
public <E> Q innerJoin(RelationalFunctionCall<E> target, com.mysema.query.types.Path<E> alias)
public Q innerJoin(com.mysema.query.types.SubQueryExpression<?> target, com.mysema.query.types.Path<?> alias)
public <E> Q innerJoin(ForeignKey<E> key, RelationalPath<E> entity)
public Q join(RelationalPath<?> target)
public <E> Q join(RelationalFunctionCall<E> target, com.mysema.query.types.Path<E> alias)
public Q join(com.mysema.query.types.SubQueryExpression<?> target, com.mysema.query.types.Path<?> alias)
public <E> Q join(ForeignKey<E> key, RelationalPath<E> entity)
public Q leftJoin(RelationalPath<?> target)
public <E> Q leftJoin(RelationalFunctionCall<E> target, com.mysema.query.types.Path<E> alias)
public Q leftJoin(com.mysema.query.types.SubQueryExpression<?> target, com.mysema.query.types.Path<?> alias)
public <E> Q leftJoin(ForeignKey<E> key, RelationalPath<E> entity)
public Q rightJoin(RelationalPath<?> target)
public <E> Q rightJoin(RelationalFunctionCall<E> target, com.mysema.query.types.Path<E> alias)
public Q rightJoin(com.mysema.query.types.SubQueryExpression<?> target, com.mysema.query.types.Path<?> alias)
public <E> Q rightJoin(ForeignKey<E> key, RelationalPath<E> entity)
public com.mysema.query.QueryMetadata getMetadata()
public ResultSet getResults(com.mysema.query.types.Expression<?>... exprs)
protected Configuration getConfiguration()
public com.mysema.commons.lang.CloseableIterator<Object[]> iterate(com.mysema.query.types.Expression<?>[] args)
public <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(com.mysema.query.types.Expression<RT> expr)
public List<Object[]> list(com.mysema.query.types.Expression<?>[] args)
list
in interface com.mysema.query.Projectable
list
in class com.mysema.query.support.ProjectableQuery<Q extends AbstractSQLQuery<Q> & com.mysema.query.Query>
public <RT> List<RT> list(com.mysema.query.types.Expression<RT> expr)
list
in interface com.mysema.query.Projectable
list
in class com.mysema.query.support.ProjectableQuery<Q extends AbstractSQLQuery<Q> & com.mysema.query.Query>
public <RT> com.mysema.query.SearchResults<RT> listResults(com.mysema.query.types.Expression<RT> expr)
public Q on(com.mysema.query.types.Predicate... conditions)
protected void setParameters(PreparedStatement stmt, List<?> objects, List<com.mysema.query.types.Path<?>> constantPaths, Map<com.mysema.query.types.ParamExpression<?>,?> params)
public String toString()
toString
in class com.mysema.query.support.QueryBase<Q extends AbstractSQLQuery<Q> & com.mysema.query.Query>
public <RT> Union<RT> union(com.mysema.query.types.query.ListSubQuery<RT>... sq)
public <RT> Q union(com.mysema.query.types.Path<?> alias, com.mysema.query.types.query.ListSubQuery<RT>... sq)
public <RT> Union<RT> union(com.mysema.query.types.SubQueryExpression<RT>... sq)
public <RT> Q union(com.mysema.query.types.Path<?> alias, com.mysema.query.types.SubQueryExpression<RT>... sq)
public <RT> Union<RT> unionAll(com.mysema.query.types.query.ListSubQuery<RT>... sq)
public <RT> Q unionAll(com.mysema.query.types.Path<?> alias, com.mysema.query.types.query.ListSubQuery<RT>... sq)
public <RT> Union<RT> unionAll(com.mysema.query.types.SubQueryExpression<RT>... sq)
public <RT> Q unionAll(com.mysema.query.types.Path<?> alias, com.mysema.query.types.SubQueryExpression<RT>... sq)
public <RT> RT uniqueResult(com.mysema.query.types.Expression<RT> expr)
public Object[] uniqueResult(com.mysema.query.types.Expression<?>[] expr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |