public class EntityqlInsertStatement<ENTITY> extends AbstractStatement<EntityqlInsertStatement<ENTITY>,Result<ENTITY>>
config, EXECUTE_METHOD, EXECUTE_METHOD_NAME| Constructor and Description |
|---|
EntityqlInsertStatement(Config config,
EntityMetamodel<ENTITY> entityMetamodel,
ENTITY entity,
InsertSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
protected Command<Result<ENTITY>> |
createCommand() |
Result<ENTITY> |
execute()
Executes the SQL statement.
|
Statement<Result<ENTITY>> |
onDuplicateKeyIgnore()
Create statement that inserts or ignore
|
Statement<Result<ENTITY>> |
onDuplicateKeyUpdate()
Create statement that inserts or updates
|
asSql, createCommenter, peekpublic EntityqlInsertStatement(Config config, EntityMetamodel<ENTITY> entityMetamodel, ENTITY entity, InsertSettings settings)
public Statement<Result<ENTITY>> onDuplicateKeyUpdate()
public Statement<Result<ENTITY>> onDuplicateKeyIgnore()
public Result<ENTITY> execute()
execute in interface Statement<Result<ENTITY>>execute in class AbstractStatement<EntityqlInsertStatement<ENTITY>,Result<ENTITY>>UniqueConstraintException - if an unique constraint is violatedJdbcException - if a JDBC related error occursprotected Command<Result<ENTITY>> createCommand()
createCommand in class AbstractStatement<EntityqlInsertStatement<ENTITY>,Result<ENTITY>>