Skip to content

Commit 8067e7b

Browse files
committed
Format and add comments
1 parent 1d05c43 commit 8067e7b

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

doma-core/src/main/java/org/seasar/doma/jdbc/command/BatchInsertCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected int executeUpdate(PreparedStatement preparedStatement, PreparedSql sql
4848
}
4949

5050
@Override
51-
protected void postExecuteBatch(PreparedStatement preparedStatement, int position, int length) {
52-
query.generateIds(preparedStatement, position, length);
51+
protected void postExecuteBatch(PreparedStatement preparedStatement, int position, int size) {
52+
query.generateIds(preparedStatement, position, size);
5353
}
5454
}

doma-core/src/main/java/org/seasar/doma/jdbc/command/BatchModifyCommand.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,14 @@ protected int[] executeBatch(PreparedStatement preparedStatement, PreparedSql sq
119119
}
120120
}
121121

122-
protected void postExecuteBatch(
123-
PreparedStatement preparedStatement, int position, int length) {}
122+
/**
123+
* Invoked after the batch execution.
124+
*
125+
* @param preparedStatement the prepared statement
126+
* @param position the position of the first element in the batch
127+
* @param size the size of the executed batch
128+
*/
129+
protected void postExecuteBatch(PreparedStatement preparedStatement, int position, int size) {}
124130

125131
protected void log(PreparedSql sql) {
126132
JdbcLogger logger = query.getConfig().getJdbcLogger();

doma-core/src/main/java/org/seasar/doma/jdbc/query/BatchInsertQuery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public interface BatchInsertQuery extends BatchModifyQuery {
1010

1111
/**
1212
* Generates IDs for the batch.
13-
*
13+
*
1414
* @param statement the statement
1515
* @param position the position of the first element in the batch
1616
* @param size the size of the executed batch

0 commit comments

Comments
 (0)