public abstract class AbstractExecutor extends Object implements Executor
Modifier and Type | Field and Description |
---|---|
protected Database |
database |
protected ResourceAccessor |
resourceAccessor |
PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
Constructor and Description |
---|
AbstractExecutor() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
applyVisitors(SqlStatement statement,
List<SqlVisitor> sqlVisitors) |
void |
execute(Change change)
Write methods
|
void |
execute(Change change,
List<SqlVisitor> sqlVisitors) |
abstract String |
getName()
Return the name of the Executor
|
abstract int |
getPriority()
Return the Executor priority
|
void |
modifyChangeSet(ChangeSet changeSet)
Allow this Executor to make any needed changes to the changeset.
|
void |
setDatabase(Database database)
Configures the Executor for the Database to run statements/queries against.
|
void |
setResourceAccessor(ResourceAccessor resourceAccessor)
Set a ResourceAccessor on this Executor to be used in file access
|
ValidationErrors |
validate(ChangeSet changeSet)
Validate if the changeset can be executed by this Executor
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comment, execute, execute, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, supports, update, update, updatesDatabase
protected Database database
protected ResourceAccessor resourceAccessor
public abstract String getName()
public abstract int getPriority()
getPriority
in interface Executor
public ValidationErrors validate(ChangeSet changeSet)
public void modifyChangeSet(ChangeSet changeSet)
modifyChangeSet
in interface Executor
changeSet
- The changeset to operate onpublic void setResourceAccessor(ResourceAccessor resourceAccessor)
setResourceAccessor
in interface Executor
resourceAccessor
- public void setDatabase(Database database)
Executor
setDatabase
in interface Executor
database
- The databaseprotected String[] applyVisitors(SqlStatement statement, List<SqlVisitor> sqlVisitors) throws DatabaseException
DatabaseException
public void execute(Change change) throws DatabaseException
Executor
execute
in interface Executor
DatabaseException
public void execute(Change change, List<SqlVisitor> sqlVisitors) throws DatabaseException
execute
in interface Executor
DatabaseException
Copyright © 2023 Liquibase.org. All rights reserved.