Q
- query typepublic abstract class AbstractSQLQueryFactory<Q extends SQLCommonQuery<?>> extends 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 javax.inject.Provider<Connection> |
connection |
Constructor and Description |
---|
AbstractSQLQueryFactory(Configuration configuration,
javax.inject.Provider<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() |
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<Integer,?> |
selectOne()
Create a new SQL query with one as the projection
|
abstract AbstractSQLQuery<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 javax.inject.Provider<Connection> connection
public AbstractSQLQueryFactory(Configuration configuration, javax.inject.Provider<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 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<Integer,?> selectZero()
public abstract AbstractSQLQuery<Integer,?> selectOne()
public abstract <T> AbstractSQLQuery<T,?> selectFrom(RelationalPath<T> expr)
T
- type of the projectionexpr
- query source and projectionCopyright © 2007–2016 Querydsl. All rights reserved.