Module org.seasar.doma.core
Class EntityqlUpdateReturningStatement<ENTITY>
java.lang.Object
org.seasar.doma.jdbc.criteria.statement.AbstractStatement<EntityqlUpdateReturningStatement<ENTITY>,ENTITY>
org.seasar.doma.jdbc.criteria.statement.EntityqlUpdateReturningStatement<ENTITY>
public class EntityqlUpdateReturningStatement<ENTITY>
extends AbstractStatement<EntityqlUpdateReturningStatement<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
ConstructorsConstructorDescriptionEntityqlUpdateReturningStatement(Config config, EntityMetamodel<ENTITY> entityMetamodel, ENTITY entity, UpdateSettings 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
-
EntityqlUpdateReturningStatement
public EntityqlUpdateReturningStatement(Config config, EntityMetamodel<ENTITY> entityMetamodel, ENTITY entity, UpdateSettings settings, ReturningProperties returning)
-
-
Method Details
-
execute
Executes the SQL statement.- Specified by:
executein interfaceStatement<ENTITY>- Overrides:
executein classAbstractStatement<EntityqlUpdateReturningStatement<ENTITY>,ENTITY> - Returns:
- the result
- Throws:
EmptyWhereClauseException- ifUpdateSettings.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 occurs
-
createCommand
- Specified by:
createCommandin classAbstractStatement<EntityqlUpdateReturningStatement<ENTITY>,ENTITY>
-