com.mysema.query.sql
Class AbstractSQLQueryFactory<Q extends SQLCommonQuery<?>>

java.lang.Object
  extended by com.mysema.query.sql.AbstractSQLQueryFactory<Q>
All Implemented Interfaces:
QueryFactory<Q,SQLSubQuery>, SQLQueryFactory<Q,SQLSubQuery,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
Direct Known Subclasses:
MySQLQueryFactory, OracleQueryFactory, PostgresQueryFactory, SQLQueryFactoryImpl, SQLServerQueryFactory

public abstract class AbstractSQLQueryFactory<Q extends SQLCommonQuery<?>>
extends Object
implements SQLQueryFactory<Q,SQLSubQuery,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>

Author:
tiwe

Field Summary
protected  Configuration configuration
           
protected  javax.inject.Provider<Connection> connection
           
 
Constructor Summary
AbstractSQLQueryFactory(Configuration configuration, javax.inject.Provider<Connection> connection)
           
 
Method Summary
 SQLDeleteClause delete(RelationalPath<?> path)
           
 Q from(Expression<?> from)
           
 Configuration getConfiguration()
           
 Connection getConnection()
           
 SQLInsertClause insert(RelationalPath<?> path)
           
 SQLMergeClause merge(RelationalPath<?> path)
           
 SQLSubQuery subQuery()
          Create a new Sub query
 SQLSubQuery subQuery(Expression<?> from)
           
 SQLUpdateClause update(RelationalPath<?> path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.mysema.query.sql.SQLQueryFactory
query
 

Field Detail

configuration

protected final Configuration configuration

connection

protected final javax.inject.Provider<Connection> connection
Constructor Detail

AbstractSQLQueryFactory

public AbstractSQLQueryFactory(Configuration configuration,
                               javax.inject.Provider<Connection> connection)
Method Detail

delete

public final SQLDeleteClause delete(RelationalPath<?> path)
Specified by:
delete in interface SQLQueryFactory<Q extends SQLCommonQuery<?>,SQLSubQuery,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>

from

public final Q from(Expression<?> from)
Specified by:
from in interface SQLQueryFactory<Q extends SQLCommonQuery<?>,SQLSubQuery,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>

insert

public final SQLInsertClause insert(RelationalPath<?> path)
Specified by:
insert in interface SQLQueryFactory<Q extends SQLCommonQuery<?>,SQLSubQuery,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>

merge

public final SQLMergeClause merge(RelationalPath<?> path)
Specified by:
merge in interface SQLQueryFactory<Q extends SQLCommonQuery<?>,SQLSubQuery,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>

update

public final SQLUpdateClause update(RelationalPath<?> path)
Specified by:
update in interface SQLQueryFactory<Q extends SQLCommonQuery<?>,SQLSubQuery,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>

subQuery

public final SQLSubQuery subQuery()
Description copied from interface: QueryFactory
Create a new Sub query

Specified by:
subQuery in interface QueryFactory<Q extends SQLCommonQuery<?>,SQLSubQuery>
Specified by:
subQuery in interface SQLQueryFactory<Q extends SQLCommonQuery<?>,SQLSubQuery,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
Returns:

subQuery

public final SQLSubQuery subQuery(Expression<?> from)
Specified by:
subQuery in interface SQLQueryFactory<Q extends SQLCommonQuery<?>,SQLSubQuery,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>

getConfiguration

public final Configuration getConfiguration()

getConnection

public final Connection getConnection()


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.