Class ChangedForeignKeyChangeGenerator

  • All Implemented Interfaces:
    liquibase.diff.output.changelog.ChangedObjectChangeGenerator, liquibase.diff.output.changelog.ChangeGenerator

    public class ChangedForeignKeyChangeGenerator
    extends liquibase.diff.output.changelog.core.ChangedForeignKeyChangeGenerator
    Hibernate doesn't know about all the variations that occur with foreign keys but just whether the FK exists or not. To prevent changing customized foreign keys, we suppress all foreign key changes from hibernate.
    • Field Summary

      • Fields inherited from interface liquibase.diff.output.changelog.ChangeGenerator

        PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
    • 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)  
      int getPriority​(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database)  
      • Methods inherited from class liquibase.diff.output.changelog.core.ChangedForeignKeyChangeGenerator

        runAfterTypes, runBeforeTypes
      • Methods inherited from class liquibase.diff.output.changelog.AbstractChangeGenerator

        fixOutputAsSchema, fixSchema, setRespectSchemaAndCatalogCase
      • Methods inherited from interface liquibase.diff.output.changelog.ChangeGenerator

        fixOutputAsSchema, fixSchema
    • Constructor Detail

      • ChangedForeignKeyChangeGenerator

        public ChangedForeignKeyChangeGenerator()
    • Method Detail

      • getPriority

        public int getPriority​(Class<? extends liquibase.structure.DatabaseObject> objectType,
                               liquibase.database.Database database)
        Specified by:
        getPriority in interface liquibase.diff.output.changelog.ChangeGenerator
        Overrides:
        getPriority in class liquibase.diff.output.changelog.core.ChangedForeignKeyChangeGenerator
      • 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:
        fixChanged in interface liquibase.diff.output.changelog.ChangedObjectChangeGenerator
        Overrides:
        fixChanged in class liquibase.diff.output.changelog.core.ChangedForeignKeyChangeGenerator