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_RULEFields inherited from interface liquibase.snapshot.SnapshotGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database) Class<? extends liquibase.snapshot.SnapshotGenerator>[]replaces()liquibase.structure.DatabaseObjectsnapshot(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot, liquibase.snapshot.SnapshotGeneratorChain chain) protected liquibase.structure.DatabaseObjectsnapshotObject(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot) Methods inherited from class liquibase.snapshot.jvm.ForeignKeySnapshotGenerator
addTo, convertToForeignKeyConstraintTypeMethods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGenerator
addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, shouldAddTo, updateListeners
-
Constructor Details
-
ForeignKeySnapshotGeneratorSingleStore
public ForeignKeySnapshotGeneratorSingleStore()
-
-
Method Details
-
getPriority
public int getPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database) - Specified by:
getPriorityin interfaceliquibase.snapshot.SnapshotGenerator- Overrides:
getPriorityin classliquibase.snapshot.jvm.JdbcSnapshotGenerator
-
replaces
- Specified by:
replacesin interfaceliquibase.snapshot.SnapshotGenerator- Overrides:
replacesin classliquibase.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:
snapshotin interfaceliquibase.snapshot.SnapshotGenerator- Overrides:
snapshotin classliquibase.snapshot.jvm.JdbcSnapshotGenerator- Throws:
liquibase.exception.DatabaseExceptionliquibase.snapshot.InvalidExampleException
-
snapshotObject
protected liquibase.structure.DatabaseObject snapshotObject(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot) throws liquibase.exception.DatabaseException, liquibase.snapshot.InvalidExampleException - Overrides:
snapshotObjectin classliquibase.snapshot.jvm.ForeignKeySnapshotGenerator- Throws:
liquibase.exception.DatabaseExceptionliquibase.snapshot.InvalidExampleException
-