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
 
Fields inherited from class com.mysema.query.support.QueryBase
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)
           
 Q fullJoin(RelationalPath<?> target)
           
 Q fullJoin(SubQueryExpression<?> target, Path<?> alias)
           
<E> Q
innerJoin(ForeignKey<E> key, RelationalPath<E> entity)
           
 Q innerJoin(RelationalPath<?> target)
           
 Q innerJoin(SubQueryExpression<?> target, Path<?> alias)
           
<E> Q
join(ForeignKey<E> key, RelationalPath<E> entity)
           
 Q join(RelationalPath<?> target)
           
 Q join(SubQueryExpression<?> target, Path<?> alias)
           
<E> Q
leftJoin(ForeignKey<E> key, RelationalPath<E> entity)
           
 Q leftJoin(RelationalPath<?> target)
           
 Q leftJoin(SubQueryExpression<?> target, Path<?> alias)
           
 Q on(Predicate... conditions)
           
<E> Q
rightJoin(ForeignKey<E> key, RelationalPath<E> entity)
           
 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, groupBy, having, limit, offset, orderBy, restrict, set, where
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 <E> Q fullJoin(ForeignKey<E> key,
                      RelationalPath<E> entity)

fullJoin

public Q fullJoin(RelationalPath<?> target)

fullJoin

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

innerJoin

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

innerJoin

public Q innerJoin(RelationalPath<?> target)

innerJoin

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

join

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

join

public Q join(RelationalPath<?> target)

join

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

leftJoin

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

leftJoin

public Q leftJoin(RelationalPath<?> target)

leftJoin

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

on

public Q on(Predicate... conditions)

rightJoin

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

rightJoin

public Q rightJoin(RelationalPath<?> target)

rightJoin

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

toString

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


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