Module org.seasar.doma.core
Class EntityqlDeleteStatement<ENTITY>
java.lang.Object
org.seasar.doma.jdbc.criteria.statement.AbstractStatement<EntityqlDeleteStatement<ENTITY>,Result<ENTITY>>
org.seasar.doma.jdbc.criteria.statement.EntityqlDeleteStatement<ENTITY>
public class EntityqlDeleteStatement<ENTITY>
extends AbstractStatement<EntityqlDeleteStatement<ENTITY>,Result<ENTITY>>
-
Field Summary
Fields inherited from class org.seasar.doma.jdbc.criteria.statement.AbstractStatement
config, EXECUTE_METHOD, EXECUTE_METHOD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionEntityqlDeleteStatement(Config config, EntityMetamodel<ENTITY> entityMetamodel, ENTITY entity, DeleteSettings settings) -
Method Summary
Methods inherited from class org.seasar.doma.jdbc.criteria.statement.AbstractStatement
asSql, createCommenter, peek
-
Constructor Details
-
EntityqlDeleteStatement
public EntityqlDeleteStatement(Config config, EntityMetamodel<ENTITY> entityMetamodel, ENTITY entity, DeleteSettings settings)
-
-
Method Details
-
returning
-
execute
Executes the SQL statement.- Specified by:
executein interfaceStatement<ENTITY>- Overrides:
executein classAbstractStatement<EntityqlDeleteStatement<ENTITY>,Result<ENTITY>> - Returns:
- the result
- Throws:
EmptyWhereClauseException- ifDeleteSettings.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 occurs
-
createCommand
- Specified by:
createCommandin classAbstractStatement<EntityqlDeleteStatement<ENTITY>,Result<ENTITY>>
-