Module org.seasar.doma.core
Class EntityqlBatchUpdateStatement<ENTITY>
java.lang.Object
org.seasar.doma.jdbc.criteria.statement.AbstractStatement<EntityqlBatchUpdateStatement<ENTITY>,BatchResult<ENTITY>>
org.seasar.doma.jdbc.criteria.statement.EntityqlBatchUpdateStatement<ENTITY>
- All Implemented Interfaces:
Buildable<Statement<BatchResult<ENTITY>>>,Statement<BatchResult<ENTITY>>
public class EntityqlBatchUpdateStatement<ENTITY>
extends AbstractStatement<EntityqlBatchUpdateStatement<ENTITY>,BatchResult<ENTITY>>
-
Field Summary
Fields inherited from class org.seasar.doma.jdbc.criteria.statement.AbstractStatement
config, EXECUTE_METHOD, EXECUTE_METHOD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionEntityqlBatchUpdateStatement(Config config, EntityMetamodel<ENTITY> entityMetamodel, List<ENTITY> entities, UpdateSettings settings) -
Method Summary
Methods inherited from class org.seasar.doma.jdbc.criteria.statement.AbstractStatement
createCommenter, peek
-
Constructor Details
-
EntityqlBatchUpdateStatement
public EntityqlBatchUpdateStatement(Config config, EntityMetamodel<ENTITY> entityMetamodel, List<ENTITY> entities, UpdateSettings settings)
-
-
Method Details
-
execute
Executes the SQL statement.- Specified by:
executein interfaceStatement<ENTITY>- Overrides:
executein classAbstractStatement<EntityqlBatchUpdateStatement<ENTITY>,BatchResult<ENTITY>> - Returns:
- the result
- Throws:
OptimisticLockException- 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<EntityqlBatchUpdateStatement<ENTITY>,BatchResult<ENTITY>>
-
asSql
Description copied from interface:BuildableReturns the built SQL.- Specified by:
asSqlin interfaceBuildable<ENTITY>- Overrides:
asSqlin classAbstractStatement<EntityqlBatchUpdateStatement<ENTITY>,BatchResult<ENTITY>> - Returns:
- the built sql
-