public class ChangelogJdbcMdcListener extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ChangelogJdbcMdcListener.ExecuteJdbc |
static interface |
ChangelogJdbcMdcListener.QueryJdbc<T> |
| Constructor and Description |
|---|
ChangelogJdbcMdcListener() |
| Modifier and Type | Method and Description |
|---|---|
static void |
execute(SqlStatement statement,
Database database,
ChangelogJdbcMdcListener.ExecuteJdbc jdbcQuery)
Execute the given statement via the jdbc executor.
|
static <T> T |
query(SqlStatement statement,
Database database,
ChangelogJdbcMdcListener.QueryJdbc<T> jdbcQuery)
Execute the given statement via the jdbc executor.
|
public static void execute(SqlStatement statement, Database database, ChangelogJdbcMdcListener.ExecuteJdbc jdbcQuery) throws DatabaseException
statement - the statement to executedatabase - the database to execute againstjdbcQuery - the executor function to applyDatabaseException - if there was a problem running the sql statementpublic static <T> T query(SqlStatement statement, Database database, ChangelogJdbcMdcListener.QueryJdbc<T> jdbcQuery) throws DatabaseException
statement - the statement to executedatabase - the database to execute againstjdbcQuery - the executor function to applyDatabaseException - if there was a problem running the sql statementCopyright © 2023 Liquibase.org. All rights reserved.