Package com.querydsl.sql
Interface SQLCommonQuery<Q extends SQLCommonQuery<Q>>
- Type Parameters:
Q- concrete type
- All Superinterfaces:
FilteredClause<Q>,Query<Q>,SimpleQuery<Q>
- All Known Implementing Classes:
AbstractMySQLQuery,AbstractOracleQuery,AbstractPostgreSQLQuery,AbstractSQLQuery,AbstractSQLServerQuery,AbstractTeradataQuery,MySQLQuery,OracleQuery,PostgreSQLQuery,ProjectableSQLQuery,SQLQuery,SQLServerQuery,TeradataQuery
SQLCommonQuery is a common interface for SQLQuery and SQLSubQuery- Author:
- tiwe
-
Method Summary
Modifier and TypeMethodDescriptionaddFlag(QueryFlag.Position position, Expression<?> flag) Add the given Expression as a query flagaddFlag(QueryFlag.Position position, String flag) Add the given String literal as query flagaddFlag(QueryFlag.Position position, String prefix, Expression<?> expr) Add the given prefix and expression as a general query flagaddJoinFlag(String flag) Add the given String literal as a join flag to the last added join with the position BEFORE_TARGETaddJoinFlag(String flag, JoinFlag.Position position) Add the given String literal as a join flag to the last added joinfrom(Expression<?>... o) Defines the sources of the queryfrom(SubQueryExpression<?> subQuery, Path<?> alias) Adds a sub query sourcefullJoin(EntityPath<?> o) Adds a full join to the given target<E> QfullJoin(EntityPath<E> o, Path<E> alias) Adds a full join to the given targetfullJoin(SubQueryExpression<?> o, Path<?> alias) Adds a full join to the given target<E> QfullJoin(ForeignKey<E> key, RelationalPath<E> entity) Adds a full join to the given target<E> QfullJoin(RelationalFunctionCall<E> o, Path<E> alias) Adds a full join to the given targetinnerJoin(EntityPath<?> o) Adds an inner join to the given target<E> QinnerJoin(EntityPath<E> o, Path<E> alias) Adds an inner join to the given targetinnerJoin(SubQueryExpression<?> o, Path<?> alias) Adds an inner join to the given target<E> QinnerJoin(ForeignKey<E> foreign, RelationalPath<E> entity) Adds an inner join to the given target<E> QinnerJoin(RelationalFunctionCall<E> o, Path<E> alias) Adds a inner join to the given targetjoin(EntityPath<?> o) Adds a join to the given target<E> Qjoin(EntityPath<E> o, Path<E> alias) Adds a join to the given targetjoin(SubQueryExpression<?> o, Path<?> alias) Adds a join to the given target<E> Qjoin(ForeignKey<E> foreign, RelationalPath<E> entity) Adds a join to the given target<E> Qjoin(RelationalFunctionCall<E> o, Path<E> alias) Adds a join to the given targetleftJoin(EntityPath<?> o) Adds a left join to the given target<E> QleftJoin(EntityPath<E> o, Path<E> alias) Adds a left join to the given targetleftJoin(SubQueryExpression<?> o, Path<?> alias) Adds a left join to the given target<E> QleftJoin(ForeignKey<E> foreign, RelationalPath<E> entity) Adds a left join to the given target<E> QleftJoin(RelationalFunctionCall<E> o, Path<E> alias) Adds a left join to the given targetDefines a filter to the last added joinrightJoin(EntityPath<?> o) Adds a right join to the given target<E> QrightJoin(EntityPath<E> o, Path<E> alias) Adds a right join to the given targetrightJoin(SubQueryExpression<?> o, Path<?> alias) Adds a right join to the given target<E> QrightJoin(ForeignKey<E> foreign, RelationalPath<E> entity) Adds a right join to the given target<E> QrightJoin(RelationalFunctionCall<E> o, Path<E> alias) Adds a full join to the given targetwith(Path<?> alias, Expression<?> query) Adds a common table expressionAdds a common table expressionwith(Path<?> alias, SubQueryExpression<?> o) Adds a common table expressionwithRecursive(Path<?> alias, Expression<?> query) Adds a common table expressionwithRecursive(Path<?> alias, Path<?>... columns) Adds a common table expressionwithRecursive(Path<?> alias, SubQueryExpression<?> o) Adds a common table expressionMethods inherited from interface com.querydsl.core.FilteredClause
where
-
Method Details
-
addFlag
Add the given Expression as a query flag- Parameters:
position- positionflag- query flag- Returns:
- the current object
-
addFlag
Add the given String literal as query flag- Parameters:
position- positionflag- query flag- Returns:
- the current object
-
addFlag
Add the given prefix and expression as a general query flag- Parameters:
position- position of the flagprefix- prefix for the flagexpr- expression of the flag- Returns:
- the current object
-
addJoinFlag
Add the given String literal as a join flag to the last added join with the position BEFORE_TARGET- Parameters:
flag- join flag- Returns:
- the current object
-
addJoinFlag
Add the given String literal as a join flag to the last added join- Parameters:
flag- join flagposition- position- Returns:
- the current object
-
from
Defines the sources of the query- Parameters:
o- from- Returns:
- the current object
-
from
Adds a sub query source- Parameters:
subQuery- sub queryalias- alias- Returns:
- the current object
-
fullJoin
Adds a full join to the given target- Parameters:
o- full join target- Returns:
- the current object
-
fullJoin
Adds a full join to the given target- Type Parameters:
E-- Parameters:
o- full join targetalias- alias- Returns:
- the current object
-
fullJoin
Adds a full join to the given target- Type Parameters:
E-- Parameters:
o- full join targetalias- alias- Returns:
- the current object
-
fullJoin
Adds a full join to the given target- Type Parameters:
E-- Parameters:
key- foreign key for joinentity- join target- Returns:
- the current object
-
fullJoin
Adds a full join to the given target- Parameters:
o- subqueryalias- alias- Returns:
- the current object
-
innerJoin
Adds an inner join to the given target- Parameters:
o-- Returns:
- the current object
-
innerJoin
Adds an inner join to the given target- Type Parameters:
E-- Parameters:
o- inner join targetalias- alias- Returns:
- the current object
-
innerJoin
Adds a inner join to the given target- Type Parameters:
E-- Parameters:
o- relational function callalias- alias- Returns:
- the current object
-
innerJoin
Adds an inner join to the given target- Type Parameters:
E-- Parameters:
foreign- foreign key to use for joinentity- join target- Returns:
- the current object
-
innerJoin
Adds an inner join to the given target- Parameters:
o- subqueryalias- alias- Returns:
- the current object
-
join
Adds a join to the given target- Parameters:
o- join target- Returns:
- the current object
-
join
Adds a join to the given target- Type Parameters:
E-- Parameters:
o- join targetalias- alias- Returns:
- the current object
-
join
Adds a join to the given target- Type Parameters:
E-- Parameters:
o- join targetalias- alias- Returns:
- the current object
-
join
Adds a join to the given target- Type Parameters:
E-- Parameters:
foreign- foreign key to use for joinentity- join target- Returns:
- the current object
-
join
Adds a join to the given target- Parameters:
o- subqueryalias- alias- Returns:
- the current object
-
leftJoin
Adds a left join to the given target- Parameters:
o- join target- Returns:
- the current object
-
leftJoin
Adds a left join to the given target- Type Parameters:
E-- Parameters:
o- left join targetalias- alias- Returns:
- the current object
-
leftJoin
Adds a left join to the given target- Type Parameters:
E-- Parameters:
o- relational function callalias- alias- Returns:
- the current object
-
leftJoin
Adds a left join to the given target- Type Parameters:
E-- Parameters:
foreign- foreign key to use for joinentity- join target- Returns:
- the current object
-
leftJoin
Adds a left join to the given target- Parameters:
o- subqueryalias- alias- Returns:
- the current object
-
on
Defines a filter to the last added join- Parameters:
conditions- join conditions- Returns:
- the current object
-
rightJoin
Adds a right join to the given target- Parameters:
o- join target- Returns:
- the current object
-
rightJoin
Adds a right join to the given target- Type Parameters:
E-- Parameters:
o- right join targetalias- alias- Returns:
- the current object
-
rightJoin
Adds a full join to the given target- Type Parameters:
E-- Parameters:
o- relational function callalias- alias- Returns:
- the current object
-
rightJoin
Adds a right join to the given target- Type Parameters:
E-- Parameters:
foreign- foreign key to use for joinentity- join target- Returns:
- the current object
-
rightJoin
Adds a right join to the given target- Parameters:
o- subqueryalias- alias- Returns:
- the current object
-
with
Adds a common table expressionUsage
query.with(alias, subQuery) .from(...)- Parameters:
alias- alias for queryo- subquery- Returns:
- the current object
-
with
Adds a common table expressionUsage
query.with(alias, subQuery) .from(...)- Parameters:
alias- alias for queryquery- subquery- Returns:
- the current object
-
with
Adds a common table expressionUsage
query.with(alias, columns...).as(subQuery) .from(...)- Parameters:
alias- alias for querycolumns- columns to use- Returns:
- the current object
-
withRecursive
Adds a common table expressionUsage
query.withRecursive(alias, subQuery) .from(...)- Parameters:
alias- alias for queryo- subquery- Returns:
- the current object
-
withRecursive
Adds a common table expressionUsage
query.withRecursive(alias, subQuery) .from(...)- Parameters:
alias- alias for queryquery- subquery- Returns:
- the current object
-
withRecursive
Adds a common table expressionUsage
query.withRecursive(alias, columns...).as(subQuery) .from(...)- Parameters:
alias- alias for querycolumns- columns to use- Returns:
- builder for with part
-