Q
- query typepublic abstract class AbstractSQLQueryFactory<Q extends SQLCommonQuery<?>> extends java.lang.Object implements SQLCommonQueryFactory<Q,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
AbstractSQLQueryFactory
is the base class for SQLCommonQueryFactory
implementationsModifier and Type | Field and Description |
---|---|
protected Configuration |
configuration |
protected java.util.function.Supplier<java.sql.Connection> |
connection |
Constructor and Description |
---|
AbstractSQLQueryFactory(Configuration configuration,
java.util.function.Supplier<java.sql.Connection> connProvider) |
Modifier and Type | Method and Description |
---|---|
SQLDeleteClause |
delete(RelationalPath<?> path)
Create a new DELETE clause
|
Q |
from(Expression<?>... args)
Create a new SELECT query
|
Q |
from(Expression<?> from)
Create a new SELECT query
|
Q |
from(SubQueryExpression<?> subQuery,
Path<?> alias)
Create a new SELECT query
|
Configuration |
getConfiguration() |
java.sql.Connection |
getConnection() |
SQLInsertClause |
insert(RelationalPath<?> path)
Create a new INSERT INTO clause
|
SQLMergeClause |
merge(RelationalPath<?> path)
Create a new MERGE clause
|
abstract AbstractSQLQuery<Tuple,?> |
select(Expression<?>... exprs)
Create a new SQL query with the given projection
|
abstract <T> AbstractSQLQuery<T,?> |
select(Expression<T> expr)
Create a new SQL query with the given projection
|
abstract AbstractSQLQuery<Tuple,?> |
selectDistinct(Expression<?>... exprs)
Create a new SQL query with the given projection
|
abstract <T> AbstractSQLQuery<T,?> |
selectDistinct(Expression<T> expr)
Create a new SQL query with the given projection
|
abstract <T> AbstractSQLQuery<T,?> |
selectFrom(RelationalPath<T> expr)
Create a new SQL query with the given projection and source
|
abstract AbstractSQLQuery<java.lang.Integer,?> |
selectOne()
Create a new SQL query with one as the projection
|
abstract AbstractSQLQuery<java.lang.Integer,?> |
selectZero()
Create a new SQL query with zero as the projection
|
SQLUpdateClause |
update(RelationalPath<?> path)
Create a new UPDATE clause
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
query
protected final Configuration configuration
protected final java.util.function.Supplier<java.sql.Connection> connection
public AbstractSQLQueryFactory(Configuration configuration, java.util.function.Supplier<java.sql.Connection> connProvider)
public final SQLDeleteClause delete(RelationalPath<?> path)
SQLCommonQueryFactory
delete
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<?>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
path
- table to delete frompublic final Q from(Expression<?> from)
SQLCommonQueryFactory
from
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<?>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
from
- query sourcepublic final Q from(Expression<?>... args)
SQLCommonQueryFactory
from
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<?>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
args
- query sourcespublic final Q from(SubQueryExpression<?> subQuery, Path<?> alias)
SQLCommonQueryFactory
from
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<?>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
subQuery
- query sourcealias
- aliaspublic final SQLInsertClause insert(RelationalPath<?> path)
SQLCommonQueryFactory
insert
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<?>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
path
- table to insert topublic final SQLMergeClause merge(RelationalPath<?> path)
SQLCommonQueryFactory
merge
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<?>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
path
- table to merge intopublic final SQLUpdateClause update(RelationalPath<?> path)
SQLCommonQueryFactory
update
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<?>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
path
- table to updatepublic final Configuration getConfiguration()
public final java.sql.Connection getConnection()
public abstract <T> AbstractSQLQuery<T,?> select(Expression<T> expr)
T
- type of the projectionexpr
- projectionpublic abstract AbstractSQLQuery<Tuple,?> select(Expression<?>... exprs)
exprs
- projectionpublic abstract <T> AbstractSQLQuery<T,?> selectDistinct(Expression<T> expr)
T
- type of the projectionexpr
- distinct projectionpublic abstract AbstractSQLQuery<Tuple,?> selectDistinct(Expression<?>... exprs)
exprs
- distinct projectionpublic abstract AbstractSQLQuery<java.lang.Integer,?> selectZero()
public abstract AbstractSQLQuery<java.lang.Integer,?> selectOne()
public abstract <T> AbstractSQLQuery<T,?> selectFrom(RelationalPath<T> expr)
T
- type of the projectionexpr
- query source and projectionCopyright © 2007–2021 Querydsl. All rights reserved.