liquibase.snapshot
Class DatabaseSnapshotGeneratorFactory

java.lang.Object
  extended by liquibase.snapshot.DatabaseSnapshotGeneratorFactory

public class DatabaseSnapshotGeneratorFactory
extends Object


Method Summary
 DatabaseSnapshot createSnapshot(Database database, String schema, Set<DiffStatusListener> listeners)
          Get generator for database with highest priority.
 DatabaseSnapshotGenerator getGenerator(Database database)
           
 SortedSet<DatabaseSnapshotGenerator> getGenerators(Database database)
          Get generators supporting database, sorted from highest priority to lowest.
static DatabaseSnapshotGeneratorFactory getInstance()
           
 List<DatabaseSnapshotGenerator> getRegistry()
          Returns instances of all implemented database types.
 void register(DatabaseSnapshotGenerator snapshotGenerator)
           
static void resetAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DatabaseSnapshotGeneratorFactory getInstance()

getGenerator

public DatabaseSnapshotGenerator getGenerator(Database database)

getGenerators

public SortedSet<DatabaseSnapshotGenerator> getGenerators(Database database)
Get generators supporting database, sorted from highest priority to lowest.

Parameters:
database -
Returns:

createSnapshot

public DatabaseSnapshot createSnapshot(Database database,
                                       String schema,
                                       Set<DiffStatusListener> listeners)
                                throws DatabaseException
Get generator for database with highest priority.

Throws:
DatabaseException

getRegistry

public List<DatabaseSnapshotGenerator> getRegistry()
Returns instances of all implemented database types.


register

public void register(DatabaseSnapshotGenerator snapshotGenerator)

resetAll

public static void resetAll()


Copyright © 2012 Liquibase.org. All Rights Reserved.