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 change set.
|
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 change set can be executed by this Executor
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomment, execute, execute, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, supports, update, update, updatesDatabaseprotected Database database
protected ResourceAccessor resourceAccessor
public abstract String getName()
public abstract int getPriority()
getPriority in interface Executorpublic ValidationErrors validate(ChangeSet changeSet)
public void modifyChangeSet(ChangeSet changeSet)
modifyChangeSet in interface ExecutorchangeSet - The change set to operate onpublic void setResourceAccessor(ResourceAccessor resourceAccessor)
setResourceAccessor in interface ExecutorresourceAccessor - public void setDatabase(Database database)
ExecutorsetDatabase in interface Executordatabase - The databaseprotected String[] applyVisitors(SqlStatement statement, List<SqlVisitor> sqlVisitors) throws DatabaseException
DatabaseExceptionpublic void execute(Change change) throws DatabaseException
Executorexecute in interface ExecutorDatabaseExceptionpublic void execute(Change change, List<SqlVisitor> sqlVisitors) throws DatabaseException
execute in interface ExecutorDatabaseExceptionCopyright © 2022 Liquibase.org. All rights reserved.