java.lang.Object
org.seasar.doma.jdbc.command.BatchModifyCommand<BatchDeleteQuery>
org.seasar.doma.jdbc.command.BatchDeleteCommand
- All Implemented Interfaces:
Command<int[]>
A command to execute a batch delete.
This command executes SQL DELETE statements in batch mode.
-
Field Summary
Fields inherited from class org.seasar.doma.jdbc.command.BatchModifyCommand
query -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int[]executeInternal(PreparedStatement preparedStatement, List<PreparedSql> sqls) Executes the batch delete.Methods inherited from class org.seasar.doma.jdbc.command.BatchModifyCommand
bindParameters, execute, executeBatch, executeBatch, getQuery, log, postExecuteBatch, prepareStatement, setupOptions, validateRows
-
Constructor Details
-
BatchDeleteCommand
Creates a new instance.- Parameters:
query- the batch delete query
-
-
Method Details
-
executeInternal
protected int[] executeInternal(PreparedStatement preparedStatement, List<PreparedSql> sqls) throws SQLException Executes the batch delete.- Specified by:
executeInternalin classBatchModifyCommand<BatchDeleteQuery>- Parameters:
preparedStatement- the prepared statementsqls- the SQL statements- Returns:
- the array of deleted rows count
- Throws:
SQLException- if a database access error occurs
-