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_RULEFields inherited from interface liquibase.snapshot.SnapshotGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected liquibase.structure.core.ForeignKeyConstraintTypeconvertToForeignKeyConstraintType(Integer jdbcType, liquibase.database.Database database) intgetPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database) Methods inherited from class liquibase.snapshot.jvm.ForeignKeySnapshotGenerator
addTo, snapshotObjectMethods 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:
 getPriorityin interfaceliquibase.snapshot.SnapshotGenerator- Overrides:
 getPriorityin classliquibase.snapshot.jvm.JdbcSnapshotGenerator
 - 
convertToForeignKeyConstraintType
protected liquibase.structure.core.ForeignKeyConstraintType convertToForeignKeyConstraintType(Integer jdbcType, liquibase.database.Database database) throws liquibase.exception.DatabaseException - Overrides:
 convertToForeignKeyConstraintTypein classliquibase.snapshot.jvm.ForeignKeySnapshotGenerator- Throws:
 liquibase.exception.DatabaseException
 
 -