public class MySQLReplaceClause extends 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.
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
REPLACE_INTO |
batches, batchToBulk, columns, constants, entity, logger, metadata, queryString, subQuery, subQueryBuilder, values
configuration, context, listeners, useLiterals
Constructor and Description |
---|
MySQLReplaceClause(java.sql.Connection connection,
Configuration configuration,
RelationalPath<?> entity) |
MySQLReplaceClause(java.sql.Connection connection,
SQLTemplates templates,
RelationalPath<?> entity) |
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, values
addListener, close, close, close, connection, createBindings, createSerializer, endContext, executeBatch, logQuery, onException, reset, setParameters, setUseLiterals, startContext
protected static final java.lang.String REPLACE_INTO
public MySQLReplaceClause(java.sql.Connection connection, SQLTemplates templates, RelationalPath<?> entity)
public MySQLReplaceClause(java.sql.Connection connection, Configuration configuration, RelationalPath<?> entity)
Copyright © 2007–2021 Querydsl. All rights reserved.