Package liquibase.ext.hibernate.diff
Class ChangedSequenceChangeGenerator
- java.lang.Object
-
- liquibase.diff.output.changelog.AbstractChangeGenerator
-
- liquibase.diff.output.changelog.core.ChangedSequenceChangeGenerator
-
- liquibase.ext.hibernate.diff.ChangedSequenceChangeGenerator
-
- All Implemented Interfaces:
liquibase.diff.output.changelog.ChangedObjectChangeGenerator,liquibase.diff.output.changelog.ChangeGenerator
public class ChangedSequenceChangeGenerator extends liquibase.diff.output.changelog.core.ChangedSequenceChangeGeneratorHibernate manages sequences only by the name, startValue and incrementBy fields. However, non-hibernate databases might return default values for other fields triggering false positives.
-
-
Constructor Summary
Constructors Constructor Description ChangedSequenceChangeGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description liquibase.change.Change[]fixChanged(liquibase.structure.DatabaseObject changedObject, liquibase.diff.ObjectDifferences differences, liquibase.diff.output.DiffOutputControl control, liquibase.database.Database referenceDatabase, liquibase.database.Database comparisonDatabase, liquibase.diff.output.changelog.ChangeGeneratorChain chain)intgetPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database)-
Methods inherited from class liquibase.diff.output.changelog.core.ChangedSequenceChangeGenerator
createAlterSequenceChange, runAfterTypes, runBeforeTypes
-
Methods inherited from class liquibase.diff.output.changelog.AbstractChangeGenerator
fixOutputAsSchema, fixSchema, setRespectSchemaAndCatalogCase
-
-
-
-
Method Detail
-
getPriority
public int getPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database)
- Specified by:
getPriorityin interfaceliquibase.diff.output.changelog.ChangeGenerator- Overrides:
getPriorityin classliquibase.diff.output.changelog.core.ChangedSequenceChangeGenerator
-
fixChanged
public liquibase.change.Change[] fixChanged(liquibase.structure.DatabaseObject changedObject, liquibase.diff.ObjectDifferences differences, liquibase.diff.output.DiffOutputControl control, liquibase.database.Database referenceDatabase, liquibase.database.Database comparisonDatabase, liquibase.diff.output.changelog.ChangeGeneratorChain chain)- Specified by:
fixChangedin interfaceliquibase.diff.output.changelog.ChangedObjectChangeGenerator- Overrides:
fixChangedin classliquibase.diff.output.changelog.core.ChangedSequenceChangeGenerator
-
-