public class StatusVisitor extends Object implements ChangeSetVisitor, SkippedChangeSetVisitor
ChangeSetVisitor.Direction
Constructor and Description |
---|
StatusVisitor(Database database) |
Modifier and Type | Method and Description |
---|---|
protected ChangeSetStatus |
addStatus(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database) |
List<ChangeSetStatus> |
getChangeSetsToRun()
Return the change sets that will execute
|
List<ChangeSetStatus> |
getChangeSetsToSkip()
Return the change sets that will NOT execute
|
ChangeSetVisitor.Direction |
getDirection() |
ChangeSetStatus |
getStatus(ChangeSet changeSet)
Convenience method to return the ChangeSetStatus of a given changeSet.
|
List<ChangeSetStatus> |
getStatuses()
Return the status of all changeSets, in the order they exist in the databasechangelog.
|
void |
skipped(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database,
Set<ChangeSetFilterResult> filterResults) |
void |
visit(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database,
Set<ChangeSetFilterResult> filterResults) |
public StatusVisitor(Database database) throws LiquibaseException
LiquibaseException
public ChangeSetVisitor.Direction getDirection()
getDirection
in interface ChangeSetVisitor
public void visit(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database, Set<ChangeSetFilterResult> filterResults) throws LiquibaseException
visit
in interface ChangeSetVisitor
LiquibaseException
public void skipped(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database, Set<ChangeSetFilterResult> filterResults) throws LiquibaseException
skipped
in interface SkippedChangeSetVisitor
LiquibaseException
protected ChangeSetStatus addStatus(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database) throws LiquibaseException
LiquibaseException
public ChangeSetStatus getStatus(ChangeSet changeSet)
public List<ChangeSetStatus> getStatuses()
NotInChangeLogChangeSetFilter
public List<ChangeSetStatus> getChangeSetsToRun()
public List<ChangeSetStatus> getChangeSetsToSkip()
Copyright © 2019 Liquibase.org. All rights reserved.