Class ForeignKeySnapshotGeneratorSingleStore

java.lang.Object
liquibase.snapshot.jvm.JdbcSnapshotGenerator
liquibase.snapshot.jvm.ForeignKeySnapshotGenerator
liquibase.ext.singlestore.snapshot.ForeignKeySnapshotGeneratorSingleStore
All Implemented Interfaces:
liquibase.snapshot.SnapshotGenerator

public class ForeignKeySnapshotGeneratorSingleStore extends liquibase.snapshot.jvm.ForeignKeySnapshotGenerator
SingleStore does not support foreign keys, so this class removes snapshotting of foreign keys.
  • 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
    int
    getPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database)
     
    Class<? extends liquibase.snapshot.SnapshotGenerator>[]
     
    liquibase.structure.DatabaseObject
    snapshot(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot, liquibase.snapshot.SnapshotGeneratorChain chain)
     
    protected liquibase.structure.DatabaseObject
    snapshotObject(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot)
     

    Methods inherited from class liquibase.snapshot.jvm.ForeignKeySnapshotGenerator

    addTo, convertToForeignKeyConstraintType

    Methods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGenerator

    addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, shouldAddTo, updateListeners

    Methods inherited from class java.lang.Object

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

    • ForeignKeySnapshotGeneratorSingleStore

      public ForeignKeySnapshotGeneratorSingleStore()
  • 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
    • replaces

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

      public liquibase.structure.DatabaseObject snapshot(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot, liquibase.snapshot.SnapshotGeneratorChain chain) throws liquibase.exception.DatabaseException, liquibase.snapshot.InvalidExampleException
      Specified by:
      snapshot in interface liquibase.snapshot.SnapshotGenerator
      Overrides:
      snapshot in class liquibase.snapshot.jvm.JdbcSnapshotGenerator
      Throws:
      liquibase.exception.DatabaseException
      liquibase.snapshot.InvalidExampleException
    • 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