Note
This class is currently intended for Liquibase-internal use only and may change without notice in the future
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| private class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private String | |
| private void | |
| public void | comment(String message)
Implements liquibase. Adds a comment to the database. |
| public Object | |
| public Object | |
| public void | |
| public void | execute(final SqlStatement sql, final List<SqlVisitor> sqlVisitors)
Implements liquibase.
|
| private void | |
| protected RowMapper | Returns: the RowMapper to useCreate a new RowMapper for reading columns as key-value pairs. |
| pack-priv String | |
| public String | Returns: String The Executor nameImplements abstract liquibase. Implements liquibase. Return the name of the Executor |
| public int | Returns: int The Executor priorityImplements abstract liquibase. Implements liquibase. Return the Executor priority |
| protected RowMapper | Returns: the RowMapper to usethe type that each result object is expected to match requiredType)Create a new RowMapper for reading result objects from a single column. |
| public Object | |
| public Object | |
| public List | |
| public List | |
| public int | queryForInt(SqlStatement
The query to execute sql)Implements liquibase. Executes a query that is expected to return a scalar (1 row, 1 column). |
| public int | queryForInt(SqlStatement
The query to execute sql, List<SqlVisitor> sqlVisitors)Implements liquibase. Applies a number of SqlVisitors to the sql query. |
| public List | queryForList(SqlStatement sql, Class<T> elementType)
Implements liquibase.
|
| public List | queryForList(SqlStatement sql, Class<T> elementType, List<SqlVisitor> sqlVisitors)
Implements liquibase.
|
| public List | queryForList(SqlStatement
the SQL query to execute sql)Implements liquibase. Executes a given SQL statement and returns a List of rows. |
| public List | queryForList(SqlStatement
the SQL query to execute sql, List<SqlVisitor> sqlVisitors)Implements liquibase. Applies a list of SqlVisitors to the SQL query, then executes the (possibly modified) SQL query and lastly, returns the list of rows. |
| public long | queryForLong(SqlStatement
The query to execute sql)Implements liquibase. Executes a query that is expected to return a scalar (1 row, 1 column). |
| public long | queryForLong(SqlStatement
The query to execute sql, List<SqlVisitor> sqlVisitors)Implements liquibase. Applies a number of SqlVisitors to the sql query. |
| public Object | |
| public Object | |
| public <T> T | queryForObject(SqlStatement
The query to execute sql, Class<T> requiredType)Implements liquibase. Execute a query that is expected to return a scalar (1 row, 1 column). |
| public <T> T | queryForObject(SqlStatement
The query to execute sql, Class<T> requiredType, List<SqlVisitor> sqlVisitors)Implements liquibase. Applies a number of SqlVisitors to the sql query. |
| private void | |
| private void | |
| public int | |
| public int | update(final SqlStatement sql, final List<SqlVisitor> sqlVisitors)
Implements liquibase.
|
| public boolean |
| JdbcExecutor | back to summary |
|---|---|
| public JdbcExecutor() | |
| addUpdateCountToScope | back to summary |
|---|---|
| private void addUpdateCountToScope(int updateCount) | |
| applyVisitors | back to summary |
|---|---|
| private String applyVisitors(RawParameterizedSqlStatement sql, List<SqlVisitor> sqlVisitors) | |
| checkCallStatus | back to summary |
|---|---|
| private void checkCallStatus(ResultSet resultSet, String status) throws SQLException, DatabaseException | |
| comment | back to summary |
|---|---|
| public void comment(String message) throws DatabaseException Implements liquibase. Doc from liquibase. Adds a comment to the database. Currently does nothing but is overridden in the output JDBC template
| |
| execute | back to summary |
|---|---|
| public Object execute(StatementCallback action, List<SqlVisitor> sqlVisitors) throws DatabaseException | |
| execute | back to summary |
|---|---|
public Object execute(CallableStatementCallback action, List<SqlVisitor> sqlVisitors) throws DatabaseException
| |
| execute | back to summary |
|---|---|
| public void execute(final SqlStatement sql) throws DatabaseException Implements liquibase.
| |
| execute | back to summary |
|---|---|
| public void execute(final SqlStatement sql, final List<SqlVisitor> sqlVisitors) throws DatabaseException Implements liquibase.
| |
| executeDb2ZosComplexStatement | back to summary |
|---|---|
| private void executeDb2ZosComplexStatement(final SqlStatement sqlStatement, final List<SqlVisitor> sqlVisitors) throws DatabaseException | |
| getColumnMapRowMapper | back to summary |
|---|---|
| protected RowMapper getColumnMapRowMapper() Create a new RowMapper for reading columns as key-value pairs.
| |
| getErrorCode | back to summary |
|---|---|
| pack-priv String getErrorCode(Throwable e) | |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract liquibase. Implements liquibase. Return the name of the Executor | |
| getPriority | back to summary |
|---|---|
| public int getPriority() Implements abstract liquibase. Implements liquibase. Return the Executor priority
| |
| getSingleColumnRowMapper | back to summary |
|---|---|
| protected RowMapper getSingleColumnRowMapper(Class<T> requiredType) Create a new RowMapper for reading result objects from a single column.
| |
| query | back to summary |
|---|---|
| public Object query(final SqlStatement sql, final ResultSetExtractor rse) throws DatabaseException | |
| query | back to summary |
|---|---|
| public Object query(final SqlStatement sql, final ResultSetExtractor rse, final List<SqlVisitor> sqlVisitors) throws DatabaseException | |
| query | back to summary |
|---|---|
| public List | |
| query | back to summary |
|---|---|
| public List | |
| queryForInt | back to summary |
|---|---|
| public int queryForInt(SqlStatement sql) throws DatabaseException Implements liquibase. Doc from liquibase. Executes a query that is expected to return a scalar (1 row, 1 column). It is expected that the scalar can be cast into an int.
| |
| queryForInt | back to summary |
|---|---|
| public int queryForInt(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException Implements liquibase. Doc from liquibase. Applies a number of SqlVisitors to the sql query. Then, executes the (possibly modified) query. The query is expected to return a scalar (1 row, 1 column), and that scalar is expected to be an int.
| |
| queryForList | back to summary |
|---|---|
| public List Implements liquibase.
| |
| queryForList | back to summary |
|---|---|
| public List Implements liquibase.
| |
| queryForList | back to summary |
|---|---|
| public List Implements liquibase. Doc from liquibase. Executes a given SQL statement and returns a List of rows. Each row is represented a a Map the SQL query to execute
a List of [Column name] -> [column value]-mapped rows.
| |
| queryForList | back to summary |
|---|---|
| public List Implements liquibase. Doc from liquibase. Applies a list of SqlVisitors to the SQL query, then executes the (possibly modified) SQL query and lastly,
returns the list of rows. Each row is represented a a Map the SQL query to execute
a List of [Column name] -> [column value]-mapped rows.
| |
| queryForLong | back to summary |
|---|---|
| public long queryForLong(SqlStatement sql) throws DatabaseException Implements liquibase. Doc from liquibase. Executes a query that is expected to return a scalar (1 row, 1 column). It is expected that the scalar can be cast into a long.
| |
| queryForLong | back to summary |
|---|---|
| public long queryForLong(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException Implements liquibase. Doc from liquibase. Applies a number of SqlVisitors to the sql query. Then, executes the (possibly modified) query. The query is expected to return a scalar (1 row, 1 column), and that scalar is expected to be a long value.
| |
| queryForObject | back to summary |
|---|---|
| public Object queryForObject(SqlStatement sql, RowMapper rowMapper) throws DatabaseException | |
| queryForObject | back to summary |
|---|---|
| public Object queryForObject(SqlStatement sql, RowMapper rowMapper, List<SqlVisitor> sqlVisitors) throws DatabaseException | |
| queryForObject | back to summary |
|---|---|
| public <T> T queryForObject(SqlStatement sql, Class<T> requiredType) throws DatabaseException Implements liquibase. Doc from liquibase. Execute a query that is expected to return a scalar (1 row, 1 column). It is expected that the scalar can be cast into an object of type T.
| |
| queryForObject | back to summary |
|---|---|
| public <T> T queryForObject(SqlStatement sql, Class<T> requiredType, List<SqlVisitor> sqlVisitors) throws DatabaseException Implements liquibase. Doc from liquibase. Applies a number of SqlVisitors to the sql query. Then, executes the (possibly modified) query. The query is expected to return a scalar (1 row, 1 column). That scalar is expected to return a single value that can be cast into an object of type T.
| |
| setParameters | back to summary |
|---|---|
| private void setParameters(final PreparedStatement pstmt, final RawParameterizedSqlStatement sql) throws SQLException | |
| showSqlWarnings | back to summary |
|---|---|
| private void showSqlWarnings(Statement stmtToUse) throws SQLException | |
| update | back to summary |
|---|---|
| public int update(final SqlStatement sql) throws DatabaseException Implements liquibase.
| |
| update | back to summary |
|---|---|
| public int update(final SqlStatement sql, final List<SqlVisitor> sqlVisitors) throws DatabaseException Implements liquibase.
| |
| updatesDatabase | back to summary |
|---|---|
| public boolean updatesDatabase() Implements liquibase.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final SqlStatement | |
| private final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | doInStatement(Statement
active JDBC Statement stmt)Implements liquibase. Gets called by |
| public SqlStatement |
| sql | back to summary |
|---|---|
| private final SqlStatement sql | |
| sqlVisitors | back to summary |
|---|---|
| private final List<SqlVisitor> sqlVisitors | |
| ExecuteStatementCallback | back to summary |
|---|---|
| private ExecuteStatementCallback(SqlStatement sql, List<SqlVisitor> sqlVisitors) | |
| doInStatement | back to summary |
|---|---|
| public Object doInStatement(Statement stmt) throws SQLException, DatabaseException Implements liquibase. Doc from liquibase. Gets called by
| |
| getStatement | back to summary |
|---|---|
| public SqlStatement getStatement() Implements liquibase.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ResultSetExtractor | |
| private final SqlStatement |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | doInCallableStatement(CallableStatement
active JDBC CallableStatement cs)Implements liquibase. Gets called by |
| public SqlStatement |
| rse | back to summary |
|---|---|
| private final ResultSetExtractor rse | |
| sql | back to summary |
|---|---|
| private final SqlStatement sql | |
| QueryCallableStatementCallback | back to summary |
|---|---|
| private QueryCallableStatementCallback(SqlStatement sql, ResultSetExtractor rse) | |
| doInCallableStatement | back to summary |
|---|---|
| public Object doInCallableStatement(CallableStatement cs) throws SQLException, DatabaseException Implements liquibase. Doc from liquibase. Gets called by
| |
| getStatement | back to summary |
|---|---|
| public SqlStatement getStatement() Implements liquibase.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ResultSetExtractor | |
| private final SqlStatement | |
| private final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: An object representing all data from the result set.A JDBC Statement that is expected to return a ResultSet (e.g. SELECT) stmt)Implements liquibase. 1. |
| public SqlStatement |
| rse | back to summary |
|---|---|
| private final ResultSetExtractor rse | |
| sql | back to summary |
|---|---|
| private final SqlStatement sql | |
| sqlVisitors | back to summary |
|---|---|
| private final List<SqlVisitor> sqlVisitors | |
| QueryStatementCallback | back to summary |
|---|---|
| private QueryStatementCallback(SqlStatement sql, ResultSetExtractor rse, List<SqlVisitor> sqlVisitors) | |
| doInStatement | back to summary |
|---|---|
| public Object doInStatement(Statement stmt) throws SQLException, DatabaseException Implements liquibase. 1. Applies all SqlVisitor to the stmt 2. Executes the (possibly modified) stmt 3. Reads all data from the java.sql.ResultSet into an Object and returns the Object.
| |
| getStatement | back to summary |
|---|---|
| public SqlStatement getStatement() Implements liquibase.
| |