Class ForeignKeySnapshotGenerator

  • All Implemented Interfaces:
    liquibase.snapshot.SnapshotGenerator

    public class ForeignKeySnapshotGenerator
    extends liquibase.snapshot.jvm.ForeignKeySnapshotGenerator
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addTo​(liquibase.structure.DatabaseObject foundObject, liquibase.snapshot.DatabaseSnapshot snapshot)  
      int getPriority​(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database)  
      Class<? extends liquibase.snapshot.SnapshotGenerator>[] replaces()  
      protected liquibase.structure.DatabaseObject snapshotObject​(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot)  
      • Methods inherited from class liquibase.snapshot.jvm.ForeignKeySnapshotGenerator

        convertToForeignKeyConstraintType
      • Methods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGenerator

        addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, shouldAddTo, snapshot, updateListeners
    • Constructor Detail

      • ForeignKeySnapshotGenerator

        public ForeignKeySnapshotGenerator()
    • 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
      • addTo

        protected void addTo​(liquibase.structure.DatabaseObject foundObject,
                             liquibase.snapshot.DatabaseSnapshot snapshot)
                      throws liquibase.exception.DatabaseException,
                             liquibase.snapshot.InvalidExampleException
        Overrides:
        addTo in class liquibase.snapshot.jvm.ForeignKeySnapshotGenerator
        Throws:
        liquibase.exception.DatabaseException
        liquibase.snapshot.InvalidExampleException
      • replaces

        public Class<? extends liquibase.snapshot.SnapshotGenerator>[] replaces()
        Specified by:
        replaces in interface liquibase.snapshot.SnapshotGenerator
        Overrides:
        replaces in class liquibase.snapshot.jvm.JdbcSnapshotGenerator
      • snapshotObject

        protected liquibase.structure.DatabaseObject snapshotObject​(liquibase.structure.DatabaseObject example,
                                                                    liquibase.snapshot.DatabaseSnapshot snapshot)
                                                             throws liquibase.exception.DatabaseException,
                                                                    liquibase.snapshot.InvalidExampleException
        Overrides:
        snapshotObject in class liquibase.snapshot.jvm.ForeignKeySnapshotGenerator
        Throws:
        liquibase.exception.DatabaseException
        liquibase.snapshot.InvalidExampleException