| Modifier and Type | Field and Description |
|---|---|
| private final JdbcCoordinator | |
| private final BatchKey | |
| private static final CoreMessageLogger | |
| private LinkedHashSet | |
| private final SqlExceptionHelper | |
| private final SqlStatementLogger | |
| private LinkedHashMap |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | addObserver(BatchObserver
The batch observer. observer)Implements org. |
| private PreparedStatement | |
| protected void | |
| protected abstract void | |
| public final void | |
| public PreparedStatement | getBatchStatement(String
The SQL statement. sql, boolean Is the SQL statement callable? callable)Implements org. |
| protected JdbcCoordinator | |
| public final BatchKey | getKey()
Implements org. |
| protected LinkedHashMap | Returns: This batch's statements.Access to the batch's map of statements (keyed by SQL statement string). |
| 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. |
| public void | release()
Implements org. |
| protected void | |
| protected SqlExceptionHelper | Returns: The underlying SQLException helper.Convenience access to the SQLException helper. |
| protected SqlStatementLogger | Returns: The underlying JDBC services.Convenience access to the SQL statement logger. |
| jdbcCoordinator | back to summary |
|---|---|
| private final JdbcCoordinator jdbcCoordinator | |
| key | back to summary |
|---|---|
| private final BatchKey key | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| observers | back to summary |
|---|---|
| private LinkedHashSet<BatchObserver> observers | |
| sqlExceptionHelper | back to summary |
|---|---|
| private final SqlExceptionHelper sqlExceptionHelper | |
| sqlStatementLogger | back to summary |
|---|---|
| private final SqlStatementLogger sqlStatementLogger | |
| statements | back to summary |
|---|---|
| private LinkedHashMap<String, PreparedStatement> statements | |
| AbstractBatchImpl | back to summary |
|---|---|
| protected AbstractBatchImpl(BatchKey key, 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.
| |
| buildBatchStatement | back to summary |
|---|---|
| private PreparedStatement buildBatchStatement(String sql, boolean callable) | |
| clearBatch | back to summary |
|---|---|
| protected void clearBatch(PreparedStatement statement) | |
| doExecuteBatch | back to summary |
|---|---|
| protected abstract void doExecuteBatch() Perform batch execution..
This is called from the explicit | |
| execute | back to summary |
|---|---|
| public final void execute() Implements org. Doc from org. Execute this batch.
| |
| getBatchStatement | back to summary |
|---|---|
| public PreparedStatement getBatchStatement(String sql, boolean callable) Implements org. Doc from org. Get a statement which is part of the batch, creating if necessary (and storing for next time).
| |
| getJdbcCoordinator | back to summary |
|---|---|
| protected JdbcCoordinator getJdbcCoordinator() | |
| getKey | back to summary |
|---|---|
| public final BatchKey getKey() Implements org. Doc from org. Retrieves the object being used to key (uniquely identify) this batch. | |
| getStatements | back to summary |
|---|---|
| protected LinkedHashMap Access to the batch's map of statements (keyed by SQL statement string).
| |
| 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. | |
| 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() | |
| sqlExceptionHelper | back to summary |
|---|---|
| protected SqlExceptionHelper sqlExceptionHelper() Convenience access to the SQLException helper.
| |
| sqlStatementLogger | back to summary |
|---|---|
| protected SqlStatementLogger sqlStatementLogger() Convenience access to the SQL statement logger.
| |