Class CustomForeignKeySnapshotGenerator

  • All Implemented Interfaces:
    liquibase.snapshot.SnapshotGenerator

    public class CustomForeignKeySnapshotGenerator
    extends liquibase.snapshot.jvm.ForeignKeySnapshotGenerator
    This class overrides original ForeignKeySnapshotGenerator from liquibase 3.5.5. It contains fix https://liquibase.jira.com/browse/CORE-3141
    • Field Summary

      • Fields inherited from class liquibase.snapshot.jvm.ForeignKeySnapshotGenerator

        METADATA_DEFERRABILITY, METADATA_DELETE_RULE, METADATA_FKCOLUMN_NAME, METADATA_FKTABLE_CAT, METADATA_FKTABLE_NAME, METADATA_FKTABLE_SCHEM, METADATA_PKCOLUMN_NAME, METADATA_PKTABLE_CAT, METADATA_PKTABLE_NAME, METADATA_PKTABLE_SCHEM, METADATA_UPDATE_RULE
      • Fields inherited from interface liquibase.snapshot.SnapshotGenerator

        PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
    • Constructor Detail

      • CustomForeignKeySnapshotGenerator

        public CustomForeignKeySnapshotGenerator()
    • Method Detail

      • getPriority

        public int getPriority​(Class<? extends liquibase.structure.DatabaseObject> objectType,
                               liquibase.database.Database database)
        Specified by:
        getPriority in interface liquibase.snapshot.SnapshotGenerator
        Overrides:
        getPriority in class liquibase.snapshot.jvm.JdbcSnapshotGenerator
      • convertToForeignKeyConstraintType

        protected liquibase.structure.core.ForeignKeyConstraintType convertToForeignKeyConstraintType​(Integer jdbcType,
                                                                                                      liquibase.database.Database database)
                                                                                               throws liquibase.exception.DatabaseException
        Overrides:
        convertToForeignKeyConstraintType in class liquibase.snapshot.jvm.ForeignKeySnapshotGenerator
        Throws:
        liquibase.exception.DatabaseException