Package liquibase.changelog
Class ChangeSetStatus
java.lang.Object
liquibase.changelog.ChangeSetStatus
Contains the current status of a ChangeSet. Normally returned by
StatusVisitor.
Contains information on whether the changeSet has run before and will run next time.-
Constructor Summary
ConstructorsConstructorDescriptionChangeSetStatus(ChangeSet changeSet) ChangeSetStatus(ChangeSet changeSet, boolean skipChangeSetStatusGeneration) -
Method Summary
Modifier and TypeMethodDescriptionChangeSet commentsReturn the date the changeset was last executed.ChangeSet descriptionReasons the changeset will or will not run next time.booleanReturns true if the changeset was run previously.Return the checksum stored from the last execution of the changeset.booleanWill the changeset run next time.booleanisFilteredBy(Class<? extends ChangeSetFilter> filterType) Convenience method to check wither a given ChangeSetFilter type is a reason for running the changeset or not.voidsetComments(String comments) voidsetDateLastExecuted(Date dateLastExecuted) voidsetDescription(String description) voidsetFilterResults(Set<ChangeSetFilterResult> filterResults) voidsetPreviouslyRan(boolean previouslyRan) voidsetRanChangeSet(RanChangeSet ranChangeSet) voidsetStoredCheckSum(CheckSum storedCheckSum) voidsetWillRun(boolean willRun)
-
Constructor Details
-
ChangeSetStatus
-
ChangeSetStatus
public ChangeSetStatus(ChangeSet changeSet, boolean skipChangeSetStatusGeneration) throws LiquibaseException - Throws:
LiquibaseException
-
-
Method Details
-
getChangeSet
-
getCurrentCheckSum
-
getDescription
ChangeSet description -
setDescription
-
getComments
ChangeSet comments -
setComments
-
getWillRun
public boolean getWillRun()Will the changeset run next time. -
setWillRun
public void setWillRun(boolean willRun) -
getFilterResults
Reasons the changeset will or will not run next time. Returns empty set if no reasons were given -
setFilterResults
-
isFilteredBy
Convenience method to check wither a given ChangeSetFilter type is a reason for running the changeset or not. -
getStoredCheckSum
Return the checksum stored from the last execution of the changeset. Returns null if it has not run before -
setStoredCheckSum
-
getDateLastExecuted
Return the date the changeset was last executed. Returns null if it has not run before -
setDateLastExecuted
-
getPreviouslyRan
public boolean getPreviouslyRan()Returns true if the changeset was run previously. -
setPreviouslyRan
public void setPreviouslyRan(boolean previouslyRan) -
getRanChangeSet
-
setRanChangeSet
-