Top Description Fields Constructors Methods
liquibase.executor

public abstract Class AbstractExecutor

extends Object
implements Executor
Class Inheritance
All Implemented Interfaces
liquibase.executor.Executor, liquibase.plugin.Plugin
Known Direct Subclasses
liquibase.executor.LoggingExecutor, liquibase.executor.jvm.JdbcExecutor
Imports
liquibase.Scope, liquibase.change.AbstractSQLChange, .Change, liquibase.changelog.ChangeSet, liquibase.database.Database, liquibase.exception.DatabaseException, .ValidationErrors, liquibase.resource.ResourceAccessor, liquibase.sql.Sql, liquibase.sql.visitor.SqlVisitor, liquibase.sqlgenerator.SqlGeneratorFactory, liquibase.statement.SqlStatement, java.util.ArrayList, .List

Code common to all Executor services / blueprint for Executor service classes.

Field Summary

Modifier and TypeField and Description
protected Database
protected ResourceAccessor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String[]
applyVisitors(SqlStatement statement, List<SqlVisitor> sqlVisitors)

public void
execute(Change change)

Implements liquibase.executor.Executor.execute.

Write methods

public void
public abstract String

Returns:

String The Executor name
getName
()

Redeclares liquibase.executor.Executor.getName.

Return the name of the Executor

public abstract int

Returns:

int The Executor priority
getPriority
()

Redeclares liquibase.executor.Executor.getPriority.

Return the Executor priority

private void
public void
modifyChangeSet(ChangeSet
The changeset to operate on
changeSet
)

Implements liquibase.executor.Executor.modifyChangeSet.

Allow this Executor to make any needed changes to the changeset.

public void
setDatabase(Database
The database
database
)

Implements liquibase.executor.Executor.setDatabase.

Configures the Executor for the Database to run statements/queries against.

public void
setResourceAccessor(ResourceAccessor
the ResourceAccessor object to set
resourceAccessor
)

Implements liquibase.executor.Executor.setResourceAccessor.

Sets a ResourceAccessor object on this Executor to be used for file access.

public ValidationErrors

Returns:

boolean Always true for abstract class
validate
(ChangeSet
The changeset to validate
changeSet
)

Implements liquibase.executor.Executor.validate.

Validate if the changeset can be executed by this Executor

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databaseback to summary
protected Database database
resourceAccessorback to summary
protected ResourceAccessor resourceAccessor

Constructor Detail

AbstractExecutorback to summary
public AbstractExecutor()

Method Detail

applyVisitorsback to summary
protected String[] applyVisitors(SqlStatement statement, List<SqlVisitor> sqlVisitors) throws DatabaseException
executeback to summary
public void execute(Change change) throws DatabaseException

Implements liquibase.executor.Executor.execute.

Doc from liquibase.executor.Executor.execute.

Write methods

Annotations
@Override
executeback to summary
public void execute(Change change, List<SqlVisitor> sqlVisitors) throws DatabaseException

Implements liquibase.executor.Executor.execute.

Annotations
@Override
getNameback to summary
public abstract String getName()

Redeclares liquibase.executor.Executor.getName.

Return the name of the Executor

Returns:String

String The Executor name

Annotations
@Override
getPriorityback to summary
public abstract int getPriority()

Redeclares liquibase.executor.Executor.getPriority.

Return the Executor priority

Returns:int

int The Executor priority

Annotations
@Override
modifyChangesback to summary
private void modifyChanges(List<Change> changes)
modifyChangeSetback to summary
public void modifyChangeSet(ChangeSet changeSet)

Implements liquibase.executor.Executor.modifyChangeSet.

Allow this Executor to make any needed changes to the changeset. The base class sets splitStatements to 'true' if it is not set

Parameters
changeSet:ChangeSet

The changeset to operate on

Annotations
@Override
setDatabaseback to summary
public void setDatabase(Database database)

Implements liquibase.executor.Executor.setDatabase.

Doc from liquibase.executor.Executor.setDatabase.

Configures the Executor for the Database to run statements/queries against.

Parameters
database:Database

The database

Annotations
@Override
setResourceAccessorback to summary
public void setResourceAccessor(ResourceAccessor resourceAccessor)

Implements liquibase.executor.Executor.setResourceAccessor.

Sets a ResourceAccessor object on this Executor to be used for file access.

Parameters
resourceAccessor:ResourceAccessor

the ResourceAccessor object to set

Annotations
@Override
validateback to summary
public ValidationErrors validate(ChangeSet changeSet)

Implements liquibase.executor.Executor.validate.

Validate if the changeset can be executed by this Executor

Parameters
changeSet:ChangeSet

The changeset to validate

Returns:ValidationErrors

boolean Always true for abstract class

Annotations
@Override