com.mysema.query.sql
Interface SQLCommonQuery<Q extends SQLCommonQuery<Q>>

Type Parameters:
Q - concrete type
All Superinterfaces:
FilteredClause<Q>, Query<Q>, SimpleQuery<Q>
All Known Subinterfaces:
SQLQuery
All Known Implementing Classes:
HibernateSQLQuery, JDOSQLQuery, JPASQLQuery, MySQLQuery, OracleQuery, PostgresQuery, SQLQueryImpl, SQLServerQuery, SQLSubQuery

public interface SQLCommonQuery<Q extends SQLCommonQuery<Q>>
extends Query<Q>

SQLCommonQuery is a common interface for SQLQuery and SQLSubQuery

Author:
tiwe

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 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<?>... o)
          Defines the sources of the query
 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> o, Path<E> alias)
          Adds a full join to the given target
 Q fullJoin(RelationalPath<?> o)
          Adds a full join to the given target
 Q fullJoin(SubQueryExpression<?> o, Path<?> alias)
          Adds a full join to the given target
<E> Q
innerJoin(ForeignKey<E> foreign, RelationalPath<E> entity)
          Adds an inner join to the given target
<E> Q
innerJoin(RelationalFunctionCall<E> o, Path<E> alias)
          Adds a full join to the given target
 Q innerJoin(RelationalPath<?> o)
          Adds an inner join to the given target
 Q innerJoin(SubQueryExpression<?> o, Path<?> alias)
          Adds an inner join to the given target
<E> Q
join(ForeignKey<E> foreign, RelationalPath<E> entity)
          Adds a join to the given target
<E> Q
join(RelationalFunctionCall<E> o, Path<E> alias)
          Adds a full join to the given target
 Q join(RelationalPath<?> o)
          Adds a join to the given target
 Q join(SubQueryExpression<?> o, Path<?> alias)
          Adds a join to the given target
<E> Q
leftJoin(ForeignKey<E> foreign, RelationalPath<E> entity)
          Adds a left join to the given target
<E> Q
leftJoin(RelationalFunctionCall<E> o, Path<E> alias)
          Adds a full join to the given target
 Q leftJoin(RelationalPath<?> o)
          Adds a left join to the given target
 Q leftJoin(SubQueryExpression<?> o, Path<?> alias)
          Adds a left join to the given target
 Q on(Predicate... conditions)
          Defines a filter to the last added join
<E> Q
rightJoin(ForeignKey<E> foreign, RelationalPath<E> entity)
          Adds a right join to the given target
<E> Q
rightJoin(RelationalFunctionCall<E> o, Path<E> alias)
          Adds a full join to the given target
 Q rightJoin(RelationalPath<?> o)
          Adds a right join to the given target
 Q rightJoin(SubQueryExpression<?> o, Path<?> alias)
          Adds a right join to the given target
 
Methods inherited from interface com.mysema.query.Query
groupBy, having
 
Methods inherited from interface com.mysema.query.SimpleQuery
distinct, limit, offset, orderBy, restrict, set
 
Methods inherited from interface com.mysema.query.FilteredClause
where
 

Method Detail

addFlag

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

Parameters:
position -
flag -
Returns:

addFlag

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

Parameters:
position -
flag -
Returns:

addFlag

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:

addJoinFlag

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

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

Q from(Expression<?>... o)
Defines the sources of the query

Parameters:
o -
Returns:

from

Q from(SubQueryExpression<?> subQuery,
       Path<?> alias)
Adds a sub query source

Parameters:
subQuery -
alias -
Returns:

fullJoin

Q fullJoin(RelationalPath<?> o)
Adds a full join to the given target

Parameters:
o -
Returns:

fullJoin

<E> Q fullJoin(RelationalFunctionCall<E> o,
               Path<E> alias)
Adds a full join to the given target

Parameters:
o -
Returns:

fullJoin

<E> Q fullJoin(ForeignKey<E> key,
               RelationalPath<E> entity)
Adds a full join to the given target

Parameters:
o -
Returns:

fullJoin

Q fullJoin(SubQueryExpression<?> o,
           Path<?> alias)
Adds a full join to the given target

Parameters:
o -
Returns:

innerJoin

Q innerJoin(RelationalPath<?> o)
Adds an inner join to the given target

Parameters:
o -
Returns:

innerJoin

<E> Q innerJoin(RelationalFunctionCall<E> o,
                Path<E> alias)
Adds a full join to the given target

Parameters:
o -
Returns:

innerJoin

<E> Q innerJoin(ForeignKey<E> foreign,
                RelationalPath<E> entity)
Adds an inner join to the given target

Parameters:
o -
Returns:

innerJoin

Q innerJoin(SubQueryExpression<?> o,
            Path<?> alias)
Adds an inner join to the given target

Parameters:
o -
Returns:

join

Q join(RelationalPath<?> o)
Adds a join to the given target

Parameters:
o -
Returns:

join

<E> Q join(RelationalFunctionCall<E> o,
           Path<E> alias)
Adds a full join to the given target

Parameters:
o -
Returns:

join

<E> Q join(ForeignKey<E> foreign,
           RelationalPath<E> entity)
Adds a join to the given target

Parameters:
o -
Returns:

join

Q join(SubQueryExpression<?> o,
       Path<?> alias)
Adds a join to the given target

Parameters:
o -
Returns:

leftJoin

Q leftJoin(RelationalPath<?> o)
Adds a left join to the given target

Parameters:
o -
Returns:

leftJoin

<E> Q leftJoin(RelationalFunctionCall<E> o,
               Path<E> alias)
Adds a full join to the given target

Parameters:
o -
Returns:

leftJoin

<E> Q leftJoin(ForeignKey<E> foreign,
               RelationalPath<E> entity)
Adds a left join to the given target

Parameters:
o -
Returns:

leftJoin

Q leftJoin(SubQueryExpression<?> o,
           Path<?> alias)
Adds a left join to the given target

Parameters:
o -
Returns:

on

Q on(Predicate... conditions)
Defines a filter to the last added join

Parameters:
conditions -
Returns:

rightJoin

Q rightJoin(RelationalPath<?> o)
Adds a right join to the given target

Parameters:
o -
Returns:

rightJoin

<E> Q rightJoin(RelationalFunctionCall<E> o,
                Path<E> alias)
Adds a full join to the given target

Parameters:
o -
Returns:

rightJoin

<E> Q rightJoin(ForeignKey<E> foreign,
                RelationalPath<E> entity)
Adds a right join to the given target

Parameters:
o -
Returns:

rightJoin

Q rightJoin(SubQueryExpression<?> o,
            Path<?> alias)
Adds a right join to the given target

Parameters:
o -
Returns:


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