Class CustomForeignKeySnapshotGenerator
java.lang.Object
liquibase.snapshot.jvm.JdbcSnapshotGenerator
liquibase.snapshot.jvm.ForeignKeySnapshotGenerator
org.keycloak.connections.jpa.updater.liquibase.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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected liquibase.structure.core.ForeignKeyConstraintType
convertToForeignKeyConstraintType
(Integer jdbcType, liquibase.database.Database database) int
getPriority
(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database) Methods inherited from class liquibase.snapshot.jvm.ForeignKeySnapshotGenerator
addTo, snapshotObject
Methods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGenerator
addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, replaces, shouldAddTo, snapshot, updateListeners
-
Constructor Details
-
CustomForeignKeySnapshotGenerator
public CustomForeignKeySnapshotGenerator()
-
-
Method Details
-
getPriority
public int getPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database) - Specified by:
getPriority
in interfaceliquibase.snapshot.SnapshotGenerator
- Overrides:
getPriority
in classliquibase.snapshot.jvm.JdbcSnapshotGenerator
-
convertToForeignKeyConstraintType
protected liquibase.structure.core.ForeignKeyConstraintType convertToForeignKeyConstraintType(Integer jdbcType, liquibase.database.Database database) throws liquibase.exception.DatabaseException - Overrides:
convertToForeignKeyConstraintType
in classliquibase.snapshot.jvm.ForeignKeySnapshotGenerator
- Throws:
liquibase.exception.DatabaseException
-