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
ConstructorDescriptionChangeSetStatus
(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.boolean
Returns true if the changeset was run previously.Return the checksum stored from the last execution of the changeset.boolean
Will the changeset run next time.boolean
isFilteredBy
(Class<? extends ChangeSetFilter> filterType) Convenience method to check wither a given ChangeSetFilter type is a reason for running the changeset or not.void
setComments
(String comments) void
setDateLastExecuted
(Date dateLastExecuted) void
setDescription
(String description) void
setFilterResults
(Set<ChangeSetFilterResult> filterResults) void
setPreviouslyRan
(boolean previouslyRan) void
setRanChangeSet
(RanChangeSet ranChangeSet) void
setStoredCheckSum
(CheckSum storedCheckSum) void
setWillRun
(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
-