| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private int | |
| private final int | |
| private final JdbcCoordinator | |
| private final BatchKey | |
| private final LinkedHashSet | |
| private final SqlExceptionHelper | |
| private final SqlStatementLogger | |
| private final PreparedStatementGroup |
| Access | Constructor and Description |
|---|---|
| public | BatchImpl(BatchKey key, PreparedStatementGroup statementGroup, int batchSizeToUse, JdbcCoordinator jdbcCoordinator)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | addObserver(BatchObserver
The batch observer. observer)Implements org. |
| public void | addToBatch(JdbcValueBindings jdbcValueBindings, TableInclusionChecker inclusionChecker)
Implements org. |
| private void | |
| protected void | |
| public void | |
| public final BatchKey | getKey()
Implements org. |
| public PreparedStatementGroup | |
| protected final void | notifyObserversExplicitExecution()
Convenience method to notify registered observers of an explicit execution of this batch. |
| protected final void | notifyObserversImplicitExecution()
Convenience method to notify registered observers of an implicit execution of this batch. |
| protected void | |
| public void | release()
Implements org. |
| protected void | |
| public String |
| batchExecuted | back to summary |
|---|---|
| private boolean batchExecuted | |
| batchPosition | back to summary |
|---|---|
| private int batchPosition | |
| batchSizeToUse | back to summary |
|---|---|
| private final int batchSizeToUse | |
| jdbcCoordinator | back to summary |
|---|---|
| private final JdbcCoordinator jdbcCoordinator | |
| key | back to summary |
|---|---|
| private final BatchKey key | |
| observers | back to summary |
|---|---|
| private final LinkedHashSet<BatchObserver> observers | |
| sqlExceptionHelper | back to summary |
|---|---|
| private final SqlExceptionHelper sqlExceptionHelper | |
| sqlStatementLogger | back to summary |
|---|---|
| private final SqlStatementLogger sqlStatementLogger | |
| statementGroup | back to summary |
|---|---|
| private final PreparedStatementGroup statementGroup | |
| BatchImpl | back to summary |
|---|---|
| public BatchImpl(BatchKey key, PreparedStatementGroup statementGroup, int batchSizeToUse, JdbcCoordinator jdbcCoordinator) | |
| abortBatch | back to summary |
|---|---|
| protected void abortBatch(Exception cause) | |
| addObserver | back to summary |
|---|---|
| public void addObserver(BatchObserver observer) Implements org. Doc from org. Adds an observer to this batch.
| |
| addToBatch | back to summary |
|---|---|
| public void addToBatch(JdbcValueBindings jdbcValueBindings, TableInclusionChecker inclusionChecker) Implements org. Doc from org. Apply the value bindings to the batch JDBC statements and indicates completion of the current part of the batch.
| |
| checkRowCounts | back to summary |
|---|---|
| private void checkRowCounts(int[] rowCounts, PreparedStatementDetails statementDetails) throws SQLException, HibernateException | |
| clearBatch | back to summary |
|---|---|
| protected void clearBatch(PreparedStatementDetails statementDetails) | |
| execute | back to summary |
|---|---|
| public void execute() Implements org. Doc from org. Execute this batch.
| |
| getKey | back to summary |
|---|---|
| public final BatchKey getKey() Implements org. Doc from org. Retrieves the object being used to key (uniquely identify) this batch. | |
| getStatementGroup | back to summary |
|---|---|
| public PreparedStatementGroup getStatementGroup() Implements org.
| |
| notifyObserversExplicitExecution | back to summary |
|---|---|
| protected final void notifyObserversExplicitExecution() Convenience method to notify registered observers of an explicit execution of this batch. | |
| notifyObserversImplicitExecution | back to summary |
|---|---|
| protected final void notifyObserversImplicitExecution() Convenience method to notify registered observers of an implicit execution of this batch. | |
| performExecution | back to summary |
|---|---|
| protected void performExecution() | |
| release | back to summary |
|---|---|
| public void release() Implements org. Doc from org. Used to indicate that the batch instance is no longer needed and that, therefore, it can release its resources.
| |
| releaseStatements | back to summary |
|---|---|
| protected void releaseStatements() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |