public class ExampleExecutor extends JdbcExecutor
Executor
implementation which can be specified
in a changelog with the "runWith" attributedatabase, resourceAccessor
PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
Constructor and Description |
---|
ExampleExecutor()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
execute(SqlStatement action,
List<SqlVisitor> sqlVisitors)
Execute the SQL from the
SqlStatement parameter |
String |
getName()
Return the name of the Executor
|
int |
getPriority()
Return the Executor priority
|
ValidationErrors |
validate(ChangeSet changeSet)
Validate whether the changeset can be executed by this Executor
|
comment, execute, execute, execute, getColumnMapRowMapper, getSingleColumnRowMapper, query, query, query, query, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForObject, queryForObject, update, update, updatesDatabase
applyVisitors, execute, execute, modifyChangeSet, setDatabase, setResourceAccessor
public String getName()
getName
in interface Executor
getName
in class JdbcExecutor
public int getPriority()
getPriority
in interface Executor
getPriority
in class JdbcExecutor
public ValidationErrors validate(ChangeSet changeSet)
validate
in interface Executor
validate
in class AbstractExecutor
changeSet
- The changeset to validatepublic void execute(SqlStatement action, List<SqlVisitor> sqlVisitors) throws DatabaseException
SqlStatement
parameterexecute
in interface Executor
execute
in class JdbcExecutor
action
- This is the SqlStatement object which contains
the SQL to executesqlVisitors
- List of SqlVisitor
to apply to the generated SQLDatabaseException
- Exception type thrown if an error occurs during executionCopyright © 2023 Liquibase.org. All rights reserved.