public abstract class AbstractBatchImpl extends java.lang.Object implements Batch
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBatchImpl(BatchKey key,
JdbcCoordinator jdbcCoordinator) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
abortBatch() |
void |
addObserver(BatchObserver observer)
Adds an observer to this batch.
|
protected void |
clearBatch(java.sql.PreparedStatement statement) |
protected abstract void |
doExecuteBatch()
Perform batch execution..
|
void |
execute()
Execute this batch.
|
java.sql.PreparedStatement |
getBatchStatement(java.lang.String sql,
boolean callable)
Get a statement which is part of the batch, creating if necessary (and storing for next time).
|
protected JdbcCoordinator |
getJdbcCoordinator() |
BatchKey |
getKey()
Retrieves the object being used to key (uniquely identify) this batch.
|
protected java.util.LinkedHashMap<java.lang.String,java.sql.PreparedStatement> |
getStatements()
Access to the batch's map of statements (keyed by SQL statement string).
|
protected void |
notifyObserversExplicitExecution()
Convenience method to notify registered observers of an explicit execution of this batch.
|
protected void |
notifyObserversImplicitExecution()
Convenience method to notify registered observers of an implicit execution of this batch.
|
void |
release()
Used to indicate that the batch instance is no longer needed and that, therefore, it can release its
resources.
|
protected void |
releaseStatements() |
protected SqlExceptionHelper |
sqlExceptionHelper()
Convenience access to the SQLException helper.
|
protected SqlStatementLogger |
sqlStatementLogger()
Convenience access to the SQL statement logger.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddToBatchprotected AbstractBatchImpl(BatchKey key, JdbcCoordinator jdbcCoordinator)
protected JdbcCoordinator getJdbcCoordinator()
protected abstract void doExecuteBatch()
execution, but may also be called from elsewhere
depending on the exact implementation.protected SqlExceptionHelper sqlExceptionHelper()
protected SqlStatementLogger sqlStatementLogger()
protected void abortBatch()
protected java.util.LinkedHashMap<java.lang.String,java.sql.PreparedStatement> getStatements()
public final BatchKey getKey()
Batchpublic void addObserver(BatchObserver observer)
BatchaddObserver in interface Batchobserver - The batch observer.public java.sql.PreparedStatement getBatchStatement(java.lang.String sql,
boolean callable)
BatchgetBatchStatement in interface Batchsql - The SQL statement.callable - Is the SQL statement callable?public final void execute()
Batchprotected void releaseStatements()
protected void clearBatch(java.sql.PreparedStatement statement)
protected final void notifyObserversExplicitExecution()
protected final void notifyObserversImplicitExecution()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.