public interface Batch
PreparedStatement
objects (one for each DML string) maintained within the
batch.Modifier and Type | Method and Description |
---|---|
void |
addObserver(BatchObserver observer)
Adds an observer to this batch.
|
void |
addToBatch()
Indicates completion of the current part of the batch.
|
void |
execute()
Execute this batch.
|
PreparedStatement |
getBatchStatement(String sql,
boolean callable)
Get a statement which is part of the batch, creating if necessary (and storing for next time).
|
BatchKey |
getKey()
Retrieves the object being used to key (uniquely identify) this batch.
|
void |
release()
Used to indicate that the batch instance is no longer needed and that, therefore, it can release its
resources.
|
BatchKey getKey()
void addObserver(BatchObserver observer)
observer
- The batch observer.PreparedStatement getBatchStatement(String sql, boolean callable)
sql
- The SQL statement.callable
- Is the SQL statement callable?void addToBatch()
void execute()
void release()
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.