liquibase.snapshot
Class SnapshotGeneratorFactory
java.lang.Object
liquibase.snapshot.SnapshotGeneratorFactory
public class SnapshotGeneratorFactory
- extends Object
Method Summary |
DatabaseSnapshot |
createSnapshot(CatalogAndSchema[] examples,
Database database,
SnapshotControl snapshotControl)
|
DatabaseSnapshot |
createSnapshot(CatalogAndSchema example,
Database database,
SnapshotControl snapshotControl)
|
DatabaseSnapshot |
createSnapshot(DatabaseObject[] examples,
Database database,
SnapshotControl snapshotControl)
|
|
createSnapshot(T example,
Database database)
|
|
createSnapshot(T example,
Database database,
SnapshotControl snapshotControl)
|
Set<Class<? extends DatabaseObject>> |
getContainerTypes(Class<? extends DatabaseObject> type,
Database database)
|
Table |
getDatabaseChangeLogLockTable(Database database)
|
Table |
getDatabaseChangeLogTable(SnapshotControl snapshotControl,
Database database)
|
protected SortedSet<SnapshotGenerator> |
getGenerators(Class<? extends DatabaseObject> generatorClass,
Database database)
|
static SnapshotGeneratorFactory |
getInstance()
Return singleton SnapshotGeneratorFactory |
boolean |
has(DatabaseObject example,
Database database)
|
boolean |
hasDatabaseChangeLogLockTable(Database database)
|
boolean |
hasDatabaseChangeLogTable(Database database)
|
void |
register(SnapshotGenerator generator)
|
static void |
reset()
|
static void |
resetAll()
|
void |
unregister(Class generatorClass)
|
void |
unregister(SnapshotGenerator generator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnapshotGeneratorFactory
protected SnapshotGeneratorFactory()
getInstance
public static SnapshotGeneratorFactory getInstance()
- Return singleton SnapshotGeneratorFactory
reset
public static void reset()
register
public void register(SnapshotGenerator generator)
unregister
public void unregister(SnapshotGenerator generator)
unregister
public void unregister(Class generatorClass)
getGenerators
protected SortedSet<SnapshotGenerator> getGenerators(Class<? extends DatabaseObject> generatorClass,
Database database)
has
public boolean has(DatabaseObject example,
Database database)
throws DatabaseException,
InvalidExampleException
- Throws:
DatabaseException
InvalidExampleException
createSnapshot
public DatabaseSnapshot createSnapshot(CatalogAndSchema example,
Database database,
SnapshotControl snapshotControl)
throws DatabaseException,
InvalidExampleException
- Throws:
DatabaseException
InvalidExampleException
createSnapshot
public DatabaseSnapshot createSnapshot(CatalogAndSchema[] examples,
Database database,
SnapshotControl snapshotControl)
throws DatabaseException,
InvalidExampleException
- Throws:
DatabaseException
InvalidExampleException
createSnapshot
public DatabaseSnapshot createSnapshot(DatabaseObject[] examples,
Database database,
SnapshotControl snapshotControl)
throws DatabaseException,
InvalidExampleException
- Throws:
DatabaseException
InvalidExampleException
createSnapshot
public <T extends DatabaseObject> T createSnapshot(T example,
Database database)
throws DatabaseException,
InvalidExampleException
- Throws:
DatabaseException
InvalidExampleException
createSnapshot
public <T extends DatabaseObject> T createSnapshot(T example,
Database database,
SnapshotControl snapshotControl)
throws DatabaseException,
InvalidExampleException
- Throws:
DatabaseException
InvalidExampleException
getDatabaseChangeLogTable
public Table getDatabaseChangeLogTable(SnapshotControl snapshotControl,
Database database)
throws DatabaseException
- Throws:
DatabaseException
getDatabaseChangeLogLockTable
public Table getDatabaseChangeLogLockTable(Database database)
throws DatabaseException
- Throws:
DatabaseException
hasDatabaseChangeLogTable
public boolean hasDatabaseChangeLogTable(Database database)
throws DatabaseException
- Throws:
DatabaseException
hasDatabaseChangeLogLockTable
public boolean hasDatabaseChangeLogLockTable(Database database)
throws DatabaseException
- Throws:
DatabaseException
resetAll
public static void resetAll()
getContainerTypes
public Set<Class<? extends DatabaseObject>> getContainerTypes(Class<? extends DatabaseObject> type,
Database database)
Copyright © 2016 Liquibase.org. All rights reserved.