Class ForeignKeySnapshotGenerator

java.lang.Object
liquibase.snapshot.jvm.JdbcSnapshotGenerator
liquibase.snapshot.jvm.ForeignKeySnapshotGenerator
liquibase.ext.redshift.snapshot.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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>[]
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ForeignKeySnapshotGenerator

      public ForeignKeySnapshotGenerator()
  • Method Details

    • 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