ExecutablePreparedStatementBase. JDBC batching collects several
executions of DML statements and waits until a certain number of commands has been collected. Then, it sends all
of them to the RDBMS in a single call. java.sql.Statement#executeBatch() saves many round-trips between
client and database, often speeding up bulk inserts/updates dramatically if the JDBC driver supports it.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final Logger |
| Access | Constructor and Description |
|---|---|
| public | BatchDmlExecutablePreparedStatement(Database database, String catalogName, String schemaName, String tableName, List<LoadDataColumnConfig> columns, ChangeSet changeSet, ResourceAccessor resourceAccessor, List<ExecutablePreparedStatementBase> statements)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | attachParams(List<? extends ColumnConfig>
a list of columns with their designated values ignored, PreparedStatement the PreparedStatement to which the values are to be attached stmt)Overrides liquibase. Sets the list of bind variables for the execution of a DML statement |
| public boolean | |
| protected void | |
| protected String | generateSql(List<ColumnConfig> cols)
Implements abstract liquibase.
|
| public List | Returns: the List of the stored statements (may be empty if none are stored)Returns the individual statements that are currently store in this batch. |
| collectedStatements | back to summary |
|---|---|
| private final List<ExecutablePreparedStatementBase> collectedStatements | |
| LOG | back to summary |
|---|---|
| private final Logger LOG | |
| BatchDmlExecutablePreparedStatement | back to summary |
|---|---|
| public BatchDmlExecutablePreparedStatement(Database database, String catalogName, String schemaName, String tableName, List<LoadDataColumnConfig> columns, ChangeSet changeSet, ResourceAccessor resourceAccessor, List<ExecutablePreparedStatementBase> statements) | |
| attachParams | back to summary |
|---|---|
| protected void attachParams(List<? extends ColumnConfig> ignored, PreparedStatement stmt) throws SQLException, DatabaseException Overrides liquibase. Doc from liquibase. Sets the list of bind variables for the execution of a DML statement
| |
| continueOnError | back to summary |
|---|---|
| public boolean continueOnError() Implements liquibase.
| |
| executePreparedStatement | back to summary |
|---|---|
| protected void executePreparedStatement(PreparedStatement stmt) throws SQLException Overrides liquibase.
| |
| generateSql | back to summary |
|---|---|
| protected String generateSql(List<ColumnConfig> cols) Implements abstract liquibase.
| |
| getIndividualStatements | back to summary |
|---|---|
| public List Returns the individual statements that are currently store in this batch.
| |