Package com.querydsl.sql.mysql
Class MySQLQueryFactory
- All Implemented Interfaces:
QueryFactory<MySQLQuery<?>>,SQLCommonQueryFactory<MySQLQuery<?>,SQLDeleteClause, SQLUpdateClause, SQLInsertClause, SQLMergeClause>
MySQL specific implementation of SQLQueryFactory
- Author:
- tiwe
-
Field Summary
Fields inherited from class com.querydsl.sql.AbstractSQLQueryFactory
configuration, connection -
Constructor Summary
ConstructorsConstructorDescriptionMySQLQueryFactory(Configuration configuration, Supplier<Connection> connection) MySQLQueryFactory(SQLTemplates templates, Supplier<Connection> connection) MySQLQueryFactory(Supplier<Connection> connection) -
Method Summary
Modifier and TypeMethodDescriptioninsertIgnore(RelationalPath<?> entity) Create a INSERT IGNORE INTO clauseinsertOnDuplicateKeyUpdate(RelationalPath<?> entity, Expression<?> clause) Create a INSERT ...insertOnDuplicateKeyUpdate(RelationalPath<?> entity, Expression<?>... clauses) Create a INSERT ...insertOnDuplicateKeyUpdate(RelationalPath<?> entity, String clause) Create a INSERT ...MySQLQuery<?>query()replace(RelationalPath<?> entity) 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 projectionselectDistinct(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 sourceCreate a new SQL query with one as the projectionCreate a new SQL query with zero as the projectionMethods inherited from class com.querydsl.sql.AbstractSQLQueryFactory
delete, from, from, from, getConfiguration, getConnection, insert, merge, update
-
Constructor Details
-
MySQLQueryFactory
-
MySQLQueryFactory
-
MySQLQueryFactory
-
-
Method Details
-
insertIgnore
Create a INSERT IGNORE INTO clause- Parameters:
entity- table to insert to- Returns:
- insert clause
-
insertOnDuplicateKeyUpdate
Create a INSERT ... ON DUPLICATE KEY UPDATE clause- Parameters:
entity- table to insert toclause- clause- Returns:
- insert clause
-
insertOnDuplicateKeyUpdate
Create a INSERT ... ON DUPLICATE KEY UPDATE clause- Parameters:
entity- table to insert toclause- clause- Returns:
- insert clause
-
insertOnDuplicateKeyUpdate
public SQLInsertClause insertOnDuplicateKeyUpdate(RelationalPath<?> entity, Expression<?>... clauses) Create a INSERT ... ON DUPLICATE KEY UPDATE clause- Parameters:
entity- table to insert toclauses- clauses- Returns:
- insert clause
-
query
-
replace
-
select
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with the given projection- Specified by:
selectin classAbstractSQLQueryFactory<MySQLQuery<?>>- Type Parameters:
T- type of the projection- Parameters:
expr- projection- Returns:
- select(expr)
-
select
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with the given projection- Specified by:
selectin classAbstractSQLQueryFactory<MySQLQuery<?>>- Parameters:
exprs- projection- Returns:
- select(exprs)
-
selectDistinct
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with the given projection- Specified by:
selectDistinctin classAbstractSQLQueryFactory<MySQLQuery<?>>- Type Parameters:
T- type of the projection- Parameters:
expr- distinct projection- Returns:
- select(distinct expr)
-
selectDistinct
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with the given projection- Specified by:
selectDistinctin classAbstractSQLQueryFactory<MySQLQuery<?>>- Parameters:
exprs- distinct projection- Returns:
- select(distinct exprs)
-
selectZero
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with zero as the projection- Specified by:
selectZeroin classAbstractSQLQueryFactory<MySQLQuery<?>>- Returns:
- select(0)
-
selectOne
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with one as the projection- Specified by:
selectOnein classAbstractSQLQueryFactory<MySQLQuery<?>>- Returns:
- select(1)
-
selectFrom
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with the given projection and source- Specified by:
selectFromin classAbstractSQLQueryFactory<MySQLQuery<?>>- Type Parameters:
T- type of the projection- Parameters:
expr- query source and projection- Returns:
- select(expr).from(expr)
-