Unlike directly in JDBC, here we add the ability to batch together multiple statements at a time. In the underlying
JDBC this correlates to multiple java. objects (one for each DML string) maintained within the
batch.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public PreparedStatement | Returns: The prepared statement instance, representing the SQL statement.The SQL statement. sql, boolean Is the SQL statement callable? callable)Get a statement which is part of the batch, creating if necessary (and storing for next time). |
| public BatchKey | Returns: The batch key.Retrieves the object being used to key (uniquely identify) this batch. |
| 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() Indicates completion of the current part of the batch. | |
| execute | back to summary |
|---|---|
| public void execute() Execute this batch. | |
| getBatchStatement | back to summary |
|---|---|
| public PreparedStatement getBatchStatement(String sql, boolean callable) Get a statement which is part of the batch, creating if necessary (and storing for next time).
| |
| getKey | back to summary |
|---|---|
| public BatchKey getKey() Retrieves the object being used to key (uniquely identify) this batch.
| |
| 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. | |