Module org.seasar.doma.core
Class EntityqlDeleteReturningStatement<ENTITY>
java.lang.Object
org.seasar.doma.jdbc.criteria.statement.AbstractStatement<EntityqlDeleteReturningStatement<ENTITY>,ENTITY>
org.seasar.doma.jdbc.criteria.statement.EntityqlDeleteReturningStatement<ENTITY>
public class EntityqlDeleteReturningStatement<ENTITY>
extends AbstractStatement<EntityqlDeleteReturningStatement<ENTITY>,ENTITY>
implements Singular<ENTITY>
-
Field Summary
Fields inherited from class org.seasar.doma.jdbc.criteria.statement.AbstractStatement
config, EXECUTE_METHOD, EXECUTE_METHOD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionEntityqlDeleteReturningStatement(Config config, EntityMetamodel<ENTITY> entityMetamodel, ENTITY entity, DeleteSettings settings, ReturningProperties returning) -
Method Summary
Methods inherited from class org.seasar.doma.jdbc.criteria.statement.AbstractStatement
asSql, createCommenter, peekMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.seasar.doma.jdbc.criteria.statement.Singular
fetchOne, fetchOptional, peek
-
Constructor Details
-
EntityqlDeleteReturningStatement
public EntityqlDeleteReturningStatement(Config config, EntityMetamodel<ENTITY> entityMetamodel, ENTITY entity, DeleteSettings settings, ReturningProperties returning)
-
-
Method Details
-
execute
Executes the SQL statement.- Specified by:
executein interfaceStatement<ENTITY>- Overrides:
executein classAbstractStatement<EntityqlDeleteReturningStatement<ENTITY>,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<EntityqlDeleteReturningStatement<ENTITY>,ENTITY>
-