Package liquibase.changelog
Class ChangeLogIterator
java.lang.Object
liquibase.changelog.ChangeLogIterator
- Direct Known Subclasses:
StatusChangeLogIterator
The ChangeLogIterator class is responsible for iterating through a list of ChangeSets in a DatabaseChangeLog
and executing a visitor for each ChangeSet that passes the specified filters.
It provides methods for running the visitor and validating the Executor for each ChangeSet.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<ChangeSetFilter>
protected final DatabaseChangeLog
-
Constructor Summary
ConstructorDescriptionChangeLogIterator
(List<RanChangeSet> changeSetList, DatabaseChangeLog changeLog, List<ChangeSetFilter> changeSetFilters) ChangeLogIterator
(List<RanChangeSet> changeSetList, DatabaseChangeLog changeLog, ChangeSetFilter... changeSetFilters) ChangeLogIterator
(DatabaseChangeLog databaseChangeLog, List<ChangeSetFilter> changeSetFilters) ChangeLogIterator
(DatabaseChangeLog databaseChangeLog, ChangeSetFilter... changeSetFilters) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Creates a unique key to identify this changesetprotected void
void
run
(ChangeSetVisitor visitor, RuntimeEnvironment env) protected void
validateChangeSetExecutor
(ChangeSet changeSet, RuntimeEnvironment env) Make sure that any changeset which has a runWith=setting has a valid Executor, and that the changes in the changeset are eligible for execution by this Executor
-
Field Details
-
databaseChangeLog
-
changeSetFilters
-
-
Constructor Details
-
ChangeLogIterator
-
ChangeLogIterator
public ChangeLogIterator(DatabaseChangeLog databaseChangeLog, List<ChangeSetFilter> changeSetFilters) -
ChangeLogIterator
public ChangeLogIterator(List<RanChangeSet> changeSetList, DatabaseChangeLog changeLog, ChangeSetFilter... changeSetFilters) -
ChangeLogIterator
public ChangeLogIterator(List<RanChangeSet> changeSetList, DatabaseChangeLog changeLog, List<ChangeSetFilter> changeSetFilters)
-
-
Method Details
-
run
- Throws:
LiquibaseException
-
validateChangeSetExecutor
protected void validateChangeSetExecutor(ChangeSet changeSet, RuntimeEnvironment env) throws LiquibaseException Make sure that any changeset which has a runWith=setting has a valid Executor, and that the changes in the changeset are eligible for execution by this Executor - Parameters:
changeSet
- The change set to validateenv
- A RuntimeEnvironment instance- Throws:
LiquibaseException
-
markSeen
-
createKey
Creates a unique key to identify this changeset -
getChangeSetFilters
-