Package com.querydsl.sql.mysql
Class MySQLReplaceClause
java.lang.Object
com.querydsl.sql.dml.AbstractSQLClause<C>
com.querydsl.sql.dml.AbstractSQLInsertClause<SQLInsertClause>
com.querydsl.sql.dml.SQLInsertClause
com.querydsl.sql.mysql.MySQLReplaceClause
- All Implemented Interfaces:
DMLClause<SQLInsertClause>,InsertClause<SQLInsertClause>,StoreClause<SQLInsertClause>
MySQLReplaceClause is a REPLACE INTO clause
REPLACE works exactly like INSERT, except that if an old row in the table has the same value as a new row for a PRIMARY KEY or a UNIQUE index, the old row is deleted before the new row is inserted.
- Author:
- tiwe
-
Field Summary
FieldsFields inherited from class com.querydsl.sql.dml.AbstractSQLInsertClause
batches, batchToBulk, columns, constants, entity, logger, metadata, queryString, subQuery, subQueryBuilder, valuesFields inherited from class com.querydsl.sql.dml.AbstractSQLClause
configuration, context, listeners, useLiterals -
Constructor Summary
ConstructorsConstructorDescriptionMySQLReplaceClause(Connection connection, Configuration configuration, RelationalPath<?> entity) MySQLReplaceClause(Connection connection, SQLTemplates templates, RelationalPath<?> entity) -
Method Summary
Methods inherited from class com.querydsl.sql.dml.AbstractSQLInsertClause
addBatch, addFlag, addFlag, clear, columns, createStatement, createStatements, execute, executeWithKey, executeWithKey, executeWithKey, executeWithKeys, executeWithKeys, executeWithKeys, executeWithKeys, getBatchCount, getSQL, isEmpty, populate, populate, prepareStatementAndSetParameters, select, set, set, setBatchToBulk, setNull, toString, valuesMethods inherited from class com.querydsl.sql.dml.AbstractSQLClause
addListener, close, close, close, connection, createBindings, createSerializer, endContext, executeBatch, logQuery, onException, reset, setParameters, setUseLiterals, startContext
-
Field Details
-
REPLACE_INTO
- See Also:
-
-
Constructor Details
-
MySQLReplaceClause
-
MySQLReplaceClause
public MySQLReplaceClause(Connection connection, Configuration configuration, RelationalPath<?> entity)
-