Package liquibase.snapshot.jvm
Class UniqueConstraintSnapshotGeneratorSnowflake
java.lang.Object
liquibase.snapshot.jvm.JdbcSnapshotGenerator
liquibase.snapshot.jvm.UniqueConstraintSnapshotGenerator
liquibase.snapshot.jvm.UniqueConstraintSnapshotGeneratorSnowflake
- All Implemented Interfaces:
SnapshotGenerator
-
Field Summary
Fields inherited from interface liquibase.snapshot.SnapshotGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetPriority(Class<? extends DatabaseObject> objectType, Database database) Inquire if this SnapshotGenerator is capable of snapshotting objects of type objectType (e.g.listColumns(UniqueConstraint example, Database database, DatabaseSnapshot snapshot) listConstraints(Table table, DatabaseSnapshot snapshot, Schema schema) Class<? extends SnapshotGenerator>[]replaces()Returns classes (and superclasses) that this SnapshotGenerator replaces.Methods inherited from class liquibase.snapshot.jvm.UniqueConstraintSnapshotGenerator
addTo, getCacheKey, getCacheKey, includeTableNameInCacheKey, snapshotObject, supportsBulkQueryMethods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGenerator
addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, shouldAddTo, snapshot, updateListeners
-
Constructor Details
-
UniqueConstraintSnapshotGeneratorSnowflake
public UniqueConstraintSnapshotGeneratorSnowflake()
-
-
Method Details
-
getPriority
Description copied from interface:SnapshotGeneratorInquire if this SnapshotGenerator is capable of snapshotting objects of type objectType (e.g. Table, Index, View etc.) in the DBMS database (e.g. Oracle, Postgres, HyperSQL etc.) A return priority of > 0 will be interpreted as capable. The highest priority for an objectType-database combination wins.- Specified by:
getPriorityin interfaceSnapshotGenerator- Overrides:
getPriorityin classUniqueConstraintSnapshotGenerator- Parameters:
objectType- The object type we are asked to snapshotdatabase- The DBMS for which the snapshotting should be done- Returns:
- An integer of PRIORITY_... constants indicating our capability and willingness to snapshot
-
replaces
Description copied from interface:SnapshotGeneratorReturns classes (and superclasses) that this SnapshotGenerator replaces. Return null or empty array to not affect the SnapshotGeneratorChain.- Specified by:
replacesin interfaceSnapshotGenerator- Overrides:
replacesin classJdbcSnapshotGenerator
-
listConstraints
protected List<CachedRow> listConstraints(Table table, DatabaseSnapshot snapshot, Schema schema) throws DatabaseException, SQLException - Overrides:
listConstraintsin classUniqueConstraintSnapshotGenerator- Throws:
DatabaseExceptionSQLException
-
listColumns
protected List<Map<String,?>> listColumns(UniqueConstraint example, Database database, DatabaseSnapshot snapshot) throws DatabaseException - Overrides:
listColumnsin classUniqueConstraintSnapshotGenerator- Throws:
DatabaseException
-