public class UniqueConstraintSnapshotGenerator extends JdbcSnapshotGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE| Constructor and Description |
|---|
UniqueConstraintSnapshotGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTo(DatabaseObject foundObject,
DatabaseSnapshot snapshot) |
int |
getPriority(Class<? extends DatabaseObject> objectType,
Database database)
Inquire if this SnapshotGenerator is capable of snapshotting objects of type
objectType (e.g.
|
protected List<Map<String,?>> |
listColumns(UniqueConstraint example,
Database database,
DatabaseSnapshot snapshot) |
protected List<CachedRow> |
listConstraints(Table table,
DatabaseSnapshot snapshot,
Schema schema) |
protected DatabaseObject |
snapshotObject(DatabaseObject example,
DatabaseSnapshot snapshot) |
addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, replaces, shouldAddTo, snapshot, updateListenerspublic int getPriority(Class<? extends DatabaseObject> objectType, Database database)
SnapshotGeneratorgetPriority in interface SnapshotGeneratorgetPriority in class JdbcSnapshotGeneratorobjectType - The object type we are asked to snapshotdatabase - The DBMS for which the snapshotting should be doneprotected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException
snapshotObject in class JdbcSnapshotGeneratorDatabaseExceptionInvalidExampleExceptionprotected void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException
addTo in class JdbcSnapshotGeneratorDatabaseExceptionInvalidExampleExceptionprotected List<CachedRow> listConstraints(Table table, DatabaseSnapshot snapshot, Schema schema) throws DatabaseException, SQLException
DatabaseExceptionSQLExceptionprotected List<Map<String,?>> listColumns(UniqueConstraint example, Database database, DatabaseSnapshot snapshot) throws DatabaseException
DatabaseExceptionCopyright © 2019 Liquibase.org. All rights reserved.