com.mysema.query.sql.mysql
Class MySQLQueryFactory

java.lang.Object
  extended by com.mysema.query.sql.mysql.MySQLQueryFactory
All Implemented Interfaces:
QueryFactory<MySQLQuery,SQLSubQuery>, SQLQueryFactory<MySQLQuery,SQLSubQuery,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>

public class MySQLQueryFactory
extends Object
implements SQLQueryFactory<MySQLQuery,SQLSubQuery,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>

MySQL specific implementation of SQLQueryFactory

Author:
tiwe

Constructor Summary
MySQLQueryFactory(Configuration configuration, javax.inject.Provider<Connection> connection)
           
MySQLQueryFactory(javax.inject.Provider<Connection> connection)
           
MySQLQueryFactory(SQLTemplates templates, javax.inject.Provider<Connection> connection)
           
 
Method Summary
 SQLDeleteClause delete(RelationalPath<?> path)
           
 MySQLQuery from(Expression<?> from)
           
 SQLInsertClause insert(RelationalPath<?> path)
           
 SQLInsertClause insertIgnore(RelationalPath<?> entity)
           
 SQLInsertClause insertOnDuplicateKeyUpdate(RelationalPath<?> entity, Expression<?> clause)
           
 SQLInsertClause insertOnDuplicateKeyUpdate(RelationalPath<?> entity, String clause)
           
 SQLMergeClause merge(RelationalPath<?> path)
           
 MySQLQuery query()
          Create a new Query
 MySQLReplaceClause replace(RelationalPath<?> entity)
           
 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
 

Constructor Detail

MySQLQueryFactory

public MySQLQueryFactory(Configuration configuration,
                         javax.inject.Provider<Connection> connection)

MySQLQueryFactory

public MySQLQueryFactory(javax.inject.Provider<Connection> connection)

MySQLQueryFactory

public MySQLQueryFactory(SQLTemplates templates,
                         javax.inject.Provider<Connection> connection)
Method Detail

delete

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

from

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

insert

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

insertIgnore

public SQLInsertClause insertIgnore(RelationalPath<?> entity)

insertOnDuplicateKeyUpdate

public SQLInsertClause insertOnDuplicateKeyUpdate(RelationalPath<?> entity,
                                                  String clause)

insertOnDuplicateKeyUpdate

public SQLInsertClause insertOnDuplicateKeyUpdate(RelationalPath<?> entity,
                                                  Expression<?> clause)

merge

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

query

public MySQLQuery query()
Description copied from interface: QueryFactory
Create a new Query

Specified by:
query in interface QueryFactory<MySQLQuery,SQLSubQuery>
Specified by:
query in interface SQLQueryFactory<MySQLQuery,SQLSubQuery,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
Returns:

replace

public MySQLReplaceClause replace(RelationalPath<?> entity)

subQuery

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

Specified by:
subQuery in interface QueryFactory<MySQLQuery,SQLSubQuery>
Specified by:
subQuery in interface SQLQueryFactory<MySQLQuery,SQLSubQuery,SQLDeleteClause,SQLUpdateClause,SQLInsertClause,SQLMergeClause>
Returns:

subQuery

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

update

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


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