public class EntityqlUpdateStatement<ENTITY> extends AbstractStatement<EntityqlUpdateStatement<ENTITY>,Result<ENTITY>>
config, EXECUTE_METHOD, EXECUTE_METHOD_NAME| Constructor and Description |
|---|
EntityqlUpdateStatement(Config config,
EntityMetamodel<ENTITY> entityMetamodel,
ENTITY entity,
UpdateSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
protected Command<Result<ENTITY>> |
createCommand() |
Result<ENTITY> |
execute()
Executes the SQL statement.
|
asSql, createCommenter, peekpublic EntityqlUpdateStatement(Config config, EntityMetamodel<ENTITY> entityMetamodel, ENTITY entity, UpdateSettings settings)
public Result<ENTITY> execute()
execute in interface Statement<Result<ENTITY>>execute in class AbstractStatement<EntityqlUpdateStatement<ENTITY>,Result<ENTITY>>EmptyWhereClauseException - if UpdateSettings.getAllowEmptyWhere() returns
false and the WHERE clause is emptyOptimisticLockException - if the entity has a version property and an update count is
0UniqueConstraintException - if an unique constraint is violatedJdbcException - if a JDBC related error occursprotected Command<Result<ENTITY>> createCommand()
createCommand in class AbstractStatement<EntityqlUpdateStatement<ENTITY>,Result<ENTITY>>