Package liquibase.diff.output
Class StandardObjectChangeFilter
java.lang.Object
liquibase.diff.output.StandardObjectChangeFilter
- All Implemented Interfaces:
ObjectChangeFilter
This class is used by other classes to filter the set of database objects used
in diff-type operations including the diff command and the generateChangeLog
command.
There are two basic types of filter - FilterType.INCLUDE and FilterType.EXCLUDE. In Each filter type, a filter string can be supplied. That string is a comma-separated list of subfilters. Each subfilter can either be a regular expression, or a Database object type followed by a colon and then a regular expression.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
The Filter class is used internally to do the actual work.static enum
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
include
(DatabaseObject object) boolean
includeChanged
(DatabaseObject object, ObjectDifferences differences, Database referenceDatabase, Database comparisionDatabase) boolean
includeMissing
(DatabaseObject object, Database referenceDatabase, Database comparisionDatabase) boolean
includeUnexpected
(DatabaseObject object, Database referenceDatabase, Database comparisionDatabase) protected void
parseFilter
(String filter)
-
Constructor Details
-
StandardObjectChangeFilter
-
-
Method Details
-
parseFilter
-
includeMissing
public boolean includeMissing(DatabaseObject object, Database referenceDatabase, Database comparisionDatabase) - Specified by:
includeMissing
in interfaceObjectChangeFilter
-
includeUnexpected
public boolean includeUnexpected(DatabaseObject object, Database referenceDatabase, Database comparisionDatabase) - Specified by:
includeUnexpected
in interfaceObjectChangeFilter
-
includeChanged
public boolean includeChanged(DatabaseObject object, ObjectDifferences differences, Database referenceDatabase, Database comparisionDatabase) - Specified by:
includeChanged
in interfaceObjectChangeFilter
-
include
- Specified by:
include
in interfaceObjectChangeFilter
-