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> connection) |
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
|
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> connection)
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()
Copyright © 2007–2015 Mysema Ltd. All rights reserved.