org.hibernate.engine.jdbc.batch.spi.Batch implementation which does bathing based on a given size. Once
the batch size is reached for a statement in the batch, the entire batch is implicitly executed.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private int | |
| private int | |
| private final int | |
| private PreparedStatement | |
| private String | |
| private static final CoreMessageLogger | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | BatchingBatch(BatchKey
The batch key key, JdbcCoordinator The JDBC jdbcCoordinator jdbcCoordinator, int The batch size. batchSize)Constructs a BatchingBatch |
| Modifier and Type | Method and Description |
|---|---|
| public void | addToBatch()
Implements org. |
| private void | |
| protected void | doExecuteBatch()
Implements abstract org. |
| public PreparedStatement | getBatchStatement(String
The SQL statement. sql, boolean Is the SQL statement callable? callable)Overrides org. Implements org. |
| private void |
| batchExecuted | back to summary |
|---|---|
| private boolean batchExecuted | |
| batchPosition | back to summary |
|---|---|
| private int batchPosition | |
| batchSize | back to summary |
|---|---|
| private int batchSize | |
| configuredBatchSize | back to summary |
|---|---|
| private final int configuredBatchSize | |
| currentStatement | back to summary |
|---|---|
| private PreparedStatement currentStatement | |
| currentStatementSql | back to summary |
|---|---|
| private String currentStatementSql | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG Hides org. | |
| statementPosition | back to summary |
|---|---|
| private int statementPosition | |
| BatchingBatch | back to summary |
|---|---|
| public BatchingBatch(BatchKey key, JdbcCoordinator jdbcCoordinator, int batchSize) Constructs a BatchingBatch
| |
| addToBatch | back to summary |
|---|---|
| public void addToBatch() Implements org. Doc from org. Indicates completion of the current part of the batch.
| |
| checkRowCounts | back to summary |
|---|---|
| private void checkRowCounts(int[] rowCounts, PreparedStatement ps, String statementSQL) throws SQLException, HibernateException | |
| doExecuteBatch | back to summary |
|---|---|
| protected void doExecuteBatch() Implements abstract org. Doc from org. Perform batch execution..
This is called from the explicit
| |
| getBatchStatement | back to summary |
|---|---|
| public PreparedStatement getBatchStatement(String sql, boolean callable) Overrides org. Implements org. Doc from org. Get a statement which is part of the batch, creating if necessary (and storing for next time).
| |
| performExecution | back to summary |
|---|---|
| private void performExecution() | |