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