public class MySQLQueryFactory extends AbstractSQLQueryFactory<MySQLQuery<?>>
configuration, connection| Constructor and Description |
|---|
MySQLQueryFactory(Configuration configuration,
java.util.function.Supplier<java.sql.Connection> connection) |
MySQLQueryFactory(SQLTemplates templates,
java.util.function.Supplier<java.sql.Connection> connection) |
MySQLQueryFactory(java.util.function.Supplier<java.sql.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,
java.lang.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<java.lang.Integer> |
selectOne()
Create a new SQL query with one as the projection
|
MySQLQuery<java.lang.Integer> |
selectZero()
Create a new SQL query with zero as the projection
|
delete, from, from, from, getConfiguration, getConnection, insert, merge, updatepublic MySQLQueryFactory(Configuration configuration, java.util.function.Supplier<java.sql.Connection> connection)
public MySQLQueryFactory(java.util.function.Supplier<java.sql.Connection> connection)
public MySQLQueryFactory(SQLTemplates templates, java.util.function.Supplier<java.sql.Connection> connection)
public SQLInsertClause insertIgnore(RelationalPath<?> entity)
entity - table to insert topublic SQLInsertClause insertOnDuplicateKeyUpdate(RelationalPath<?> entity, java.lang.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()
QueryFactorypublic MySQLReplaceClause replace(RelationalPath<?> entity)
public <T> MySQLQuery<T> select(Expression<T> expr)
AbstractSQLQueryFactoryselect in class AbstractSQLQueryFactory<MySQLQuery<?>>T - type of the projectionexpr - projectionpublic MySQLQuery<Tuple> select(Expression<?>... exprs)
AbstractSQLQueryFactoryselect in class AbstractSQLQueryFactory<MySQLQuery<?>>exprs - projectionpublic <T> MySQLQuery<T> selectDistinct(Expression<T> expr)
AbstractSQLQueryFactoryselectDistinct in class AbstractSQLQueryFactory<MySQLQuery<?>>T - type of the projectionexpr - distinct projectionpublic MySQLQuery<Tuple> selectDistinct(Expression<?>... exprs)
AbstractSQLQueryFactoryselectDistinct in class AbstractSQLQueryFactory<MySQLQuery<?>>exprs - distinct projectionpublic MySQLQuery<java.lang.Integer> selectZero()
AbstractSQLQueryFactoryselectZero in class AbstractSQLQueryFactory<MySQLQuery<?>>public MySQLQuery<java.lang.Integer> selectOne()
AbstractSQLQueryFactoryselectOne in class AbstractSQLQueryFactory<MySQLQuery<?>>public <T> MySQLQuery<T> selectFrom(RelationalPath<T> expr)
AbstractSQLQueryFactoryselectFrom in class AbstractSQLQueryFactory<MySQLQuery<?>>T - type of the projectionexpr - query source and projectionCopyright © 2007–2021 Querydsl. All rights reserved.