public class EntityqlBatchInsertStatement<ENTITY> extends AbstractStatement<EntityqlBatchInsertStatement<ENTITY>,BatchResult<ENTITY>>
config, EXECUTE_METHOD, EXECUTE_METHOD_NAME| Constructor and Description |
|---|
EntityqlBatchInsertStatement(Config config,
EntityMetamodel<ENTITY> entityMetamodel,
java.util.List<ENTITY> entities,
InsertSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
Sql<?> |
asSql()
Returns the built SQL.
|
protected Command<BatchResult<ENTITY>> |
createCommand() |
BatchResult<ENTITY> |
execute()
Executes the SQL statement.
|
Statement<BatchResult<ENTITY>> |
onDuplicateKeyIgnore() |
Statement<BatchResult<ENTITY>> |
onDuplicateKeyUpdate() |
createCommenter, peekpublic EntityqlBatchInsertStatement(Config config, EntityMetamodel<ENTITY> entityMetamodel, java.util.List<ENTITY> entities, InsertSettings settings)
public Statement<BatchResult<ENTITY>> onDuplicateKeyUpdate()
public Statement<BatchResult<ENTITY>> onDuplicateKeyIgnore()
public BatchResult<ENTITY> execute()
execute in interface Statement<BatchResult<ENTITY>>execute in class AbstractStatement<EntityqlBatchInsertStatement<ENTITY>,BatchResult<ENTITY>>UniqueConstraintException - if an unique constraint is violatedJdbcException - if a JDBC related error occursprotected Command<BatchResult<ENTITY>> createCommand()
createCommand in class AbstractStatement<EntityqlBatchInsertStatement<ENTITY>,BatchResult<ENTITY>>public Sql<?> asSql()
BuildableasSql in interface Buildable<Statement<BatchResult<ENTITY>>>asSql in class AbstractStatement<EntityqlBatchInsertStatement<ENTITY>,BatchResult<ENTITY>>