public class MySQLQueryFactory extends AbstractSQLQueryFactory<MySQLQuery<?>>
configuration, connection
Constructor and Description |
---|
MySQLQueryFactory(Configuration configuration,
javax.inject.Provider<Connection> connection) |
MySQLQueryFactory(javax.inject.Provider<Connection> connection) |
MySQLQueryFactory(SQLTemplates templates,
javax.inject.Provider<Connection> connection) |
Modifier and Type | Method and Description |
---|---|
SQLInsertClause |
insertIgnore(RelationalPath<?> entity)
Create a INSERT IGNORE INTO clause
|
SQLInsertClause |
insertOnDuplicateKeyUpdate(RelationalPath<?> entity,
Expression<?>... clauses)
Create a INSERT ...
|
SQLInsertClause |
insertOnDuplicateKeyUpdate(RelationalPath<?> entity,
Expression<?> clause)
Create a INSERT ...
|
SQLInsertClause |
insertOnDuplicateKeyUpdate(RelationalPath<?> entity,
String clause)
Create a INSERT ...
|
MySQLQuery<?> |
query()
Create a new Query
|
MySQLReplaceClause |
replace(RelationalPath<?> entity) |
MySQLQuery<Tuple> |
select(Expression<?>... exprs)
Create a new SQL query with the given projection
|
<T> MySQLQuery<T> |
select(Expression<T> expr)
Create a new SQL query with the given projection
|
MySQLQuery<Tuple> |
selectDistinct(Expression<?>... exprs)
Create a new SQL query with the given projection
|
<T> MySQLQuery<T> |
selectDistinct(Expression<T> expr)
Create a new SQL query with the given projection
|
<T> MySQLQuery<T> |
selectFrom(RelationalPath<T> expr)
Create a new SQL query with the given projection and source
|
MySQLQuery<Integer> |
selectOne()
Create a new SQL query with one as the projection
|
MySQLQuery<Integer> |
selectZero()
Create a new SQL query with zero as the projection
|
delete, from, from, from, getConfiguration, getConnection, insert, merge, update
public MySQLQueryFactory(Configuration configuration, javax.inject.Provider<Connection> connection)
public MySQLQueryFactory(javax.inject.Provider<Connection> connection)
public MySQLQueryFactory(SQLTemplates templates, javax.inject.Provider<Connection> connection)
public SQLInsertClause insertIgnore(RelationalPath<?> entity)
entity
- table to insert topublic SQLInsertClause insertOnDuplicateKeyUpdate(RelationalPath<?> entity, String clause)
entity
- table to insert toclause
- clausepublic SQLInsertClause insertOnDuplicateKeyUpdate(RelationalPath<?> entity, Expression<?> clause)
entity
- table to insert toclause
- clausepublic SQLInsertClause insertOnDuplicateKeyUpdate(RelationalPath<?> entity, Expression<?>... clauses)
entity
- table to insert toclauses
- clausespublic MySQLQuery<?> query()
QueryFactory
public MySQLReplaceClause replace(RelationalPath<?> entity)
public <T> MySQLQuery<T> select(Expression<T> expr)
AbstractSQLQueryFactory
select
in class AbstractSQLQueryFactory<MySQLQuery<?>>
T
- type of the projectionexpr
- projectionpublic MySQLQuery<Tuple> select(Expression<?>... exprs)
AbstractSQLQueryFactory
select
in class AbstractSQLQueryFactory<MySQLQuery<?>>
exprs
- projectionpublic <T> MySQLQuery<T> selectDistinct(Expression<T> expr)
AbstractSQLQueryFactory
selectDistinct
in class AbstractSQLQueryFactory<MySQLQuery<?>>
T
- type of the projectionexpr
- distinct projectionpublic MySQLQuery<Tuple> selectDistinct(Expression<?>... exprs)
AbstractSQLQueryFactory
selectDistinct
in class AbstractSQLQueryFactory<MySQLQuery<?>>
exprs
- distinct projectionpublic MySQLQuery<Integer> selectZero()
AbstractSQLQueryFactory
selectZero
in class AbstractSQLQueryFactory<MySQLQuery<?>>
public MySQLQuery<Integer> selectOne()
AbstractSQLQueryFactory
selectOne
in class AbstractSQLQueryFactory<MySQLQuery<?>>
public <T> MySQLQuery<T> selectFrom(RelationalPath<T> expr)
AbstractSQLQueryFactory
selectFrom
in class AbstractSQLQueryFactory<MySQLQuery<?>>
T
- type of the projectionexpr
- query source and projectionCopyright © 2007–2016 Querydsl. All rights reserved.