Package liquibase.diff.output.changelog
Class ChangeGeneratorFactory
java.lang.Object
liquibase.diff.output.changelog.ChangeGeneratorFactory
-
Method Summary
Modifier and TypeMethodDescriptionChange[]
fixChanged
(DatabaseObject changedObject, ObjectDifferences differences, DiffOutputControl control, Database referenceDatabase, Database comparisionDatabase) Change[]
fixMissing
(DatabaseObject missingObject, DiffOutputControl control, Database referenceDatabase, Database comparisionDatabase) Change[]
fixUnexpected
(DatabaseObject unexpectedObject, DiffOutputControl control, Database referenceDatabase, Database comparisionDatabase) protected SortedSet<ChangeGenerator>
getGenerators
(Class<? extends ChangeGenerator> generatorType, Class<? extends DatabaseObject> objectType, Database database) static ChangeGeneratorFactory
Return singleton ChangeGeneratorFactoryvoid
register
(ChangeGenerator generator) static void
reset()
Set<Class<? extends DatabaseObject>>
runAfterTypes
(Class<? extends DatabaseObject> objectType, Database database, Class<? extends ChangeGenerator> changeGeneratorType) Set<Class<? extends DatabaseObject>>
runBeforeTypes
(Class<? extends DatabaseObject> objectType, Database database, Class<? extends ChangeGenerator> changeGeneratorType) void
unregister
(Class generatorClass) void
unregister
(ChangeGenerator generator)
-
Method Details
-
getInstance
Return singleton ChangeGeneratorFactory -
reset
public static void reset() -
register
-
unregister
-
unregister
-
getGenerators
protected SortedSet<ChangeGenerator> getGenerators(Class<? extends ChangeGenerator> generatorType, Class<? extends DatabaseObject> objectType, Database database) -
fixMissing
public Change[] fixMissing(DatabaseObject missingObject, DiffOutputControl control, Database referenceDatabase, Database comparisionDatabase) -
fixUnexpected
public Change[] fixUnexpected(DatabaseObject unexpectedObject, DiffOutputControl control, Database referenceDatabase, Database comparisionDatabase) -
fixChanged
public Change[] fixChanged(DatabaseObject changedObject, ObjectDifferences differences, DiffOutputControl control, Database referenceDatabase, Database comparisionDatabase) -
runAfterTypes
public Set<Class<? extends DatabaseObject>> runAfterTypes(Class<? extends DatabaseObject> objectType, Database database, Class<? extends ChangeGenerator> changeGeneratorType) -
runBeforeTypes
public Set<Class<? extends DatabaseObject>> runBeforeTypes(Class<? extends DatabaseObject> objectType, Database database, Class<? extends ChangeGenerator> changeGeneratorType)
-