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