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)
           
protected  List<Map> listColumns(UniqueConstraint example, Database database)
           
protected  List<Map> listConstraints(Table table, Database database, Schema schema)
           
protected  DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot)
           
 
Methods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGenerator
addStatusListener, cleanNameFromDatabase, getPriority, 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

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<Map> listConstraints(Table table,
                                    Database database,
                                    Schema schema)
                             throws DatabaseException
Throws:
DatabaseException

listColumns

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


Copyright © 2013 Liquibase.org. All Rights Reserved.