Top Description Fields Constructors Methods
liquibase.changelog.visitor

public Class StatusVisitor

extends Object
implements ChangeSetVisitor, SkippedChangeSetVisitor
Class Inheritance
All Implemented Interfaces
liquibase.changelog.visitor.SkippedChangeSetVisitor, liquibase.changelog.visitor.ChangeSetVisitor
Imports
liquibase.Scope, liquibase.changelog.*, liquibase.changelog.filter.ChangeSetFilterResult, .NotInChangeLogChangeSetFilter, liquibase.database.Database, liquibase.exception.LiquibaseException, java.util.*

ChangeSetVisitor that will collect the execution status of changeSets without executing them. Also includes changeSets previously executed against the database but no longer in the change log.

Field Summary

Modifier and TypeField and Description
private final LinkedHashMap<ChangeSet, ChangeSetStatus>
private final List<RanChangeSet>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected ChangeSetStatus
addStatus(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database)

public List<ChangeSetStatus>
getChangeSetsToRun()

Return the changesets that will execute

public List<ChangeSetStatus>
getChangeSetsToSkip()

Return the changesets that will NOT execute

public ChangeSetVisitor.Direction
public ChangeSetStatus
getStatus(ChangeSet changeSet)

Convenience method to return the ChangeSetStatus of a given changeSet.

public List<ChangeSetStatus>
getStatuses()

Return the status of all changeSets, in the order they exist in the databasechangelog.

public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

changeSetStatusesback to summary
private final LinkedHashMap<ChangeSet, ChangeSetStatus> changeSetStatuses
ranChangeSetsback to summary
private final List<RanChangeSet> ranChangeSets

Constructor Detail

StatusVisitorback to summary
public StatusVisitor(Database database) throws LiquibaseException

Method Detail

addStatusback to summary
protected ChangeSetStatus addStatus(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database) throws LiquibaseException
getChangeSetsToRunback to summary
public List<ChangeSetStatus> getChangeSetsToRun()

Return the changesets that will execute

getChangeSetsToSkipback to summary
public List<ChangeSetStatus> getChangeSetsToSkip()

Return the changesets that will NOT execute

getDirectionback to summary
public ChangeSetVisitor.Direction getDirection()

Implements liquibase.changelog.visitor.ChangeSetVisitor.getDirection.

Annotations
@Override
getStatusback to summary
public ChangeSetStatus getStatus(ChangeSet changeSet)

Convenience method to return the ChangeSetStatus of a given changeSet. Returns null if the changeSet is not know.

getStatusesback to summary
public List<ChangeSetStatus> getStatuses()

Return the status of all changeSets, in the order they exist in the databasechangelog. Any changesets not in the current change log but previously ran against the database will be at the front of the List with a not run reason type of liquibase.changelog.filter.NotInChangeLogChangeSetFilter

skippedback to summary
public void skipped(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database, Set<ChangeSetFilterResult> filterResults) throws LiquibaseException

Implements liquibase.changelog.visitor.SkippedChangeSetVisitor.skipped.

Annotations
@Override
visitback to summary
public void visit(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database, Set<ChangeSetFilterResult> filterResults) throws LiquibaseException

Implements liquibase.changelog.visitor.ChangeSetVisitor.visit.

Annotations
@Override