public abstract class AbstractSQLQueryFactory<Q extends SQLCommonQuery<Q>,SQ extends AbstractSQLSubQuery<SQ>> extends Object implements SQLCommonQueryFactory<Q,SQ,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
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
|
SQ |
subQuery()
Create a new Sub query
|
SQ |
subQuery(Expression<?> from) |
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<Q>,SQ extends AbstractSQLSubQuery<SQ>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
public final Q from(Expression<?> from)
SQLCommonQueryFactory
from
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<Q>,SQ extends AbstractSQLSubQuery<SQ>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
public final Q from(Expression<?>... args)
SQLCommonQueryFactory
from
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<Q>,SQ extends AbstractSQLSubQuery<SQ>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
public final Q from(SubQueryExpression<?> subQuery, Path<?> alias)
SQLCommonQueryFactory
from
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<Q>,SQ extends AbstractSQLSubQuery<SQ>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
public final SQLInsertClause insert(RelationalPath<?> path)
SQLCommonQueryFactory
insert
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<Q>,SQ extends AbstractSQLSubQuery<SQ>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
public final SQLMergeClause merge(RelationalPath<?> path)
SQLCommonQueryFactory
merge
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<Q>,SQ extends AbstractSQLSubQuery<SQ>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
public final SQLUpdateClause update(RelationalPath<?> path)
SQLCommonQueryFactory
update
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<Q>,SQ extends AbstractSQLSubQuery<SQ>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
@WithBridgeMethods(value=SQLSubQuery.class, castRequired=true) public SQ subQuery()
QueryFactory
subQuery
in interface QueryFactory<Q extends SQLCommonQuery<Q>,SQ extends AbstractSQLSubQuery<SQ>>
subQuery
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<Q>,SQ extends AbstractSQLSubQuery<SQ>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
@WithBridgeMethods(value=SQLSubQuery.class, castRequired=true) public final SQ subQuery(Expression<?> from)
subQuery
in interface SQLCommonQueryFactory<Q extends SQLCommonQuery<Q>,SQ extends AbstractSQLSubQuery<SQ>,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
public final Configuration getConfiguration()
public final Connection getConnection()
Copyright © 2007–2015 Mysema Ltd. All rights reserved.