Package liquibase.snapshot.jvm
Class ForeignKeySnapshotGenerator
java.lang.Object
liquibase.snapshot.jvm.JdbcSnapshotGenerator
liquibase.snapshot.jvm.ForeignKeySnapshotGenerator
- All Implemented Interfaces:
SnapshotGenerator
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface liquibase.snapshot.SnapshotGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addTo
(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected ForeignKeyConstraintType
convertToForeignKeyConstraintType
(Integer jdbcType, Database database) protected DatabaseObject
snapshotObject
(DatabaseObject example, DatabaseSnapshot snapshot) Methods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGenerator
addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, getPriority, replaces, shouldAddTo, snapshot, updateListeners
-
Field Details
-
METADATA_DEFERRABILITY
- See Also:
-
METADATA_FKTABLE_CAT
- See Also:
-
METADATA_FKTABLE_SCHEM
- See Also:
-
METADATA_FKTABLE_NAME
- See Also:
-
METADATA_FKCOLUMN_NAME
- See Also:
-
METADATA_PKTABLE_CAT
- See Also:
-
METADATA_PKTABLE_SCHEM
- See Also:
-
METADATA_PKTABLE_NAME
- See Also:
-
METADATA_PKCOLUMN_NAME
- See Also:
-
METADATA_UPDATE_RULE
- See Also:
-
METADATA_DELETE_RULE
- See Also:
-
-
Constructor Details
-
ForeignKeySnapshotGenerator
public ForeignKeySnapshotGenerator()
-
-
Method Details
-
addTo
protected void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException - Specified by:
addTo
in classJdbcSnapshotGenerator
- Throws:
DatabaseException
InvalidExampleException
-
snapshotObject
protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException - Specified by:
snapshotObject
in classJdbcSnapshotGenerator
- Throws:
DatabaseException
InvalidExampleException
-
convertToForeignKeyConstraintType
protected ForeignKeyConstraintType convertToForeignKeyConstraintType(Integer jdbcType, Database database) throws DatabaseException - Throws:
DatabaseException
-