liquibase.snapshot.jvm
Class UniqueConstraintSnapshotGenerator

java.lang.Object
  extended by liquibase.snapshot.jvm.JdbcSnapshotGenerator
      extended by liquibase.snapshot.jvm.UniqueConstraintSnapshotGenerator
All Implemented Interfaces:
SnapshotGenerator

public class UniqueConstraintSnapshotGenerator
extends JdbcSnapshotGenerator


Field Summary
 
Fields inherited from interface liquibase.snapshot.SnapshotGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
 
Constructor Summary
UniqueConstraintSnapshotGenerator()
           
 
Method Summary
protected  void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot)
           
 int getPriority(Class<? extends DatabaseObject> objectType, Database database)
           
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)
           
 
Methods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGenerator
addStatusListener, addsTo, cleanNameFromDatabase, replaces, shouldAddTo, snapshot, updateListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueConstraintSnapshotGenerator

public UniqueConstraintSnapshotGenerator()
Method Detail

getPriority

public int getPriority(Class<? extends DatabaseObject> objectType,
                       Database database)
Specified by:
getPriority in interface SnapshotGenerator
Overrides:
getPriority in class JdbcSnapshotGenerator

snapshotObject

protected DatabaseObject snapshotObject(DatabaseObject example,
                                        DatabaseSnapshot snapshot)
                                 throws DatabaseException,
                                        InvalidExampleException
Specified by:
snapshotObject in class JdbcSnapshotGenerator
Throws:
DatabaseException
InvalidExampleException

addTo

protected void addTo(DatabaseObject foundObject,
                     DatabaseSnapshot snapshot)
              throws DatabaseException,
                     InvalidExampleException
Specified by:
addTo in class JdbcSnapshotGenerator
Throws:
DatabaseException
InvalidExampleException

listConstraints

protected List<CachedRow> listConstraints(Table table,
                                          DatabaseSnapshot snapshot,
                                          Schema schema)
                                   throws DatabaseException,
                                          SQLException
Throws:
DatabaseException
SQLException

listColumns

protected List<Map<String,?>> listColumns(UniqueConstraint example,
                                          Database database,
                                          DatabaseSnapshot snapshot)
                                   throws DatabaseException
Throws:
DatabaseException


Copyright © 2016 Liquibase.org. All rights reserved.