Unlike in JDBC, here we add the ability to batch together multiple statements at a time.
In the underlying JDBC this correlates to multiple PreparedStatement objects,
one for each DML string, all maintained within the batch.
A batch is usually associated with a org..
org.hibernate.engine.jdbc.spi.JdbcCoordinator#getBatch(BatchKey, Integer, Supplier)
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addToBatch(JdbcValueBindings jdbcValueBindings, TableInclusionChecker inclusionChecker)
Apply the value bindings to the batch JDBC statements and indicates completion of the current part of the batch. |
| public void | |
| public BatchKey | Returns: The batch key.Retrieves the object being used to key (uniquely identify) this batch. |
| public PreparedStatementGroup | |
| public void | release()
Used to indicate that the batch instance is no longer needed and that, therefore, it can release its resources. |
| addObserver | back to summary |
|---|---|
| public void addObserver(BatchObserver observer) Adds an observer to this batch.
| |
| addToBatch | back to summary |
|---|---|
| public void addToBatch(JdbcValueBindings jdbcValueBindings, TableInclusionChecker inclusionChecker) Apply the value bindings to the batch JDBC statements and indicates completion of the current part of the batch. | |
| execute | back to summary |
|---|---|
| public void execute() Execute this batch. | |
| getKey | back to summary |
|---|---|
| public BatchKey getKey() Retrieves the object being used to key (uniquely identify) this batch.
| |
| getStatementGroup | back to summary |
|---|---|
| public PreparedStatementGroup getStatementGroup() | |
| release | back to summary |
|---|---|
| public void release() Used to indicate that the batch instance is no longer needed and that, therefore, it can release its resources. | |