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) |
protected List<Map<String,?>> |
listColumns(UniqueConstraint example,
Database database) |
protected List<CachedRow> |
listConstraints(Table table,
DatabaseSnapshot snapshot,
Schema schema) |
protected DatabaseObject |
snapshotObject(DatabaseObject example,
DatabaseSnapshot snapshot) |
addStatusListener, addsTo, cleanNameFromDatabase, replaces, shouldAddTo, snapshot, updateListeners
public int getPriority(Class<? extends DatabaseObject> objectType, Database database)
getPriority
in interface SnapshotGenerator
getPriority
in class JdbcSnapshotGenerator
protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException
snapshotObject
in class JdbcSnapshotGenerator
DatabaseException
InvalidExampleException
protected void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException
addTo
in class JdbcSnapshotGenerator
DatabaseException
InvalidExampleException
protected List<CachedRow> listConstraints(Table table, DatabaseSnapshot snapshot, Schema schema) throws DatabaseException, SQLException
DatabaseException
SQLException
protected List<Map<String,?>> listColumns(UniqueConstraint example, Database database) throws DatabaseException
DatabaseException
Copyright © 2016 Liquibase.org. All rights reserved.