com.mysema.query.sql
Class AbstractSQLSubQuery<Q extends AbstractSQLSubQuery<Q>>

java.lang.Object
  extended by com.mysema.query.support.QueryBase<Q>
      extended by com.mysema.query.support.DetachableQuery<Q>
          extended by com.mysema.query.sql.AbstractSQLSubQuery<Q>
All Implemented Interfaces:
Detachable
Direct Known Subclasses:
SQLSubQuery

public class AbstractSQLSubQuery<Q extends AbstractSQLSubQuery<Q>>
extends DetachableQuery<Q>

Abstract superclass for SubQuery implementations

Author:
tiwe

Field Summary
protected  SQLQueryMixin<Q> queryMixin
           
 
Constructor Summary
AbstractSQLSubQuery()
           
AbstractSQLSubQuery(QueryMetadata metadata)
           
 
Method Summary
 Q addFlag(QueryFlag.Position position, Expression<?> flag)
          Add the given Expression as a query flag
 Q addFlag(QueryFlag.Position position, String flag)
          Add the given String literal as a query flag
 Q addFlag(QueryFlag.Position position, String prefix, 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, JoinFlag.Position position)
          Add the given String literal as a join flag to the last added join
 Q from(Expression<?>... args)
           
 Q from(SubQueryExpression<?> subQuery, Path<?> alias)
           
<E> Q
fullJoin(ForeignKey<E> key, RelationalPath<E> entity)
           
<E> Q
fullJoin(RelationalFunctionCall<E> target, Path<E> alias)
           
 Q fullJoin(RelationalPath<?> target)
           
 Q fullJoin(SubQueryExpression<?> target, Path<?> alias)
           
<E> Q
innerJoin(ForeignKey<E> key, RelationalPath<E> entity)
           
<E> Q
innerJoin(RelationalFunctionCall<E> target, Path<E> alias)
           
 Q innerJoin(RelationalPath<?> target)
           
 Q innerJoin(SubQueryExpression<?> target, Path<?> alias)
           
<E> Q
join(ForeignKey<E> key, RelationalPath<E> entity)
           
<E> Q
join(RelationalFunctionCall<E> target, Path<E> alias)
           
 Q join(RelationalPath<?> target)
           
 Q join(SubQueryExpression<?> target, Path<?> alias)
           
<E> Q
leftJoin(ForeignKey<E> key, RelationalPath<E> entity)
           
<E> Q
leftJoin(RelationalFunctionCall<E> target, Path<E> alias)
           
 Q leftJoin(RelationalPath<?> target)
           
 Q leftJoin(SubQueryExpression<?> target, Path<?> alias)
           
 Q on(Predicate... conditions)
           
<E> Q
rightJoin(ForeignKey<E> key, RelationalPath<E> entity)
           
<E> Q
rightJoin(RelationalFunctionCall<E> target, Path<E> alias)
           
 Q rightJoin(RelationalPath<?> target)
           
 Q rightJoin(SubQueryExpression<?> target, Path<?> alias)
           
 String toString()
           
 
Methods inherited from class com.mysema.query.support.DetachableQuery
count, exists, list, list, list, list, notExists, unique, unique, unique, unique, unique, unique, unique, unique, unique, unique, unique
 
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

queryMixin

protected final SQLQueryMixin<Q extends AbstractSQLSubQuery<Q>> queryMixin
Constructor Detail

AbstractSQLSubQuery

public AbstractSQLSubQuery()

AbstractSQLSubQuery

public AbstractSQLSubQuery(QueryMetadata metadata)
Method Detail

addFlag

public Q addFlag(QueryFlag.Position position,
                 String prefix,
                 Expression<?> expr)
Add the given prefix and expression as a general query flag

Parameters:
position - position of the flag
prefix - prefix for the flag
expr - expression of the flag
Returns:

addFlag

public Q addFlag(QueryFlag.Position position,
                 String flag)
Add the given String literal as a query flag

Parameters:
position -
flag -
Returns:

addFlag

public Q addFlag(QueryFlag.Position position,
                 Expression<?> flag)
Add the given Expression as a query flag

Parameters:
position -
flag -
Returns:

addJoinFlag

public Q addJoinFlag(String flag)
Add the given String literal as a join flag to the last added join with the position BEFORE_TARGET

Parameters:
flag -
Returns:

addJoinFlag

public Q addJoinFlag(String flag,
                     JoinFlag.Position position)
Add the given String literal as a join flag to the last added join

Parameters:
flag -
position -
Returns:

from

public Q from(Expression<?>... args)

from

public Q from(SubQueryExpression<?> subQuery,
              Path<?> alias)

fullJoin

public Q fullJoin(RelationalPath<?> target)

fullJoin

public <E> Q fullJoin(RelationalFunctionCall<E> target,
                      Path<E> alias)

fullJoin

public <E> Q fullJoin(ForeignKey<E> key,
                      RelationalPath<E> entity)

fullJoin

public Q fullJoin(SubQueryExpression<?> target,
                  Path<?> alias)

innerJoin

public Q innerJoin(RelationalPath<?> target)

innerJoin

public <E> Q innerJoin(RelationalFunctionCall<E> target,
                       Path<E> alias)

innerJoin

public <E> Q innerJoin(ForeignKey<E> key,
                       RelationalPath<E> entity)

innerJoin

public Q innerJoin(SubQueryExpression<?> target,
                   Path<?> alias)

join

public Q join(RelationalPath<?> target)

join

public <E> Q join(RelationalFunctionCall<E> target,
                  Path<E> alias)

join

public <E> Q join(ForeignKey<E> key,
                  RelationalPath<E> entity)

join

public Q join(SubQueryExpression<?> target,
              Path<?> alias)

leftJoin

public Q leftJoin(RelationalPath<?> target)

leftJoin

public <E> Q leftJoin(RelationalFunctionCall<E> target,
                      Path<E> alias)

leftJoin

public <E> Q leftJoin(ForeignKey<E> key,
                      RelationalPath<E> entity)

leftJoin

public Q leftJoin(SubQueryExpression<?> target,
                  Path<?> alias)

on

public Q on(Predicate... conditions)

rightJoin

public Q rightJoin(RelationalPath<?> target)

rightJoin

public <E> Q rightJoin(RelationalFunctionCall<E> target,
                       Path<E> alias)

rightJoin

public <E> Q rightJoin(ForeignKey<E> key,
                       RelationalPath<E> entity)

rightJoin

public Q rightJoin(SubQueryExpression<?> target,
                   Path<?> alias)

toString

public String toString()
Overrides:
toString in class QueryBase<Q extends AbstractSQLSubQuery<Q>>


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.