public class SnapshotGeneratorFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
DatabaseSnapshot |
createSnapshot(CatalogAndSchema[] examples,
Database database,
SnapshotControl snapshotControl) |
DatabaseSnapshot |
createSnapshot(CatalogAndSchema example,
Database database,
SnapshotControl snapshotControl) |
DatabaseSnapshot |
createSnapshot(DatabaseObject[] examples,
Database database,
SnapshotControl snapshotControl) |
<T extends DatabaseObject> |
createSnapshot(T example,
Database database) |
<T extends DatabaseObject> |
createSnapshot(T example,
Database database,
SnapshotControl snapshotControl) |
java.util.Set<java.lang.Class<? extends DatabaseObject>> |
getContainerTypes(java.lang.Class<? extends DatabaseObject> type,
Database database) |
Table |
getDatabaseChangeLogLockTable(Database database) |
Table |
getDatabaseChangeLogTable(SnapshotControl snapshotControl,
Database database) |
protected java.util.SortedSet<SnapshotGenerator> |
getGenerators(java.lang.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(java.lang.Class generatorClass) |
void |
unregister(SnapshotGenerator generator) |
public static SnapshotGeneratorFactory getInstance()
public static void reset()
public void register(SnapshotGenerator generator)
public void unregister(SnapshotGenerator generator)
public void unregister(java.lang.Class generatorClass)
protected java.util.SortedSet<SnapshotGenerator> getGenerators(java.lang.Class<? extends DatabaseObject> generatorClass, Database database)
public boolean has(DatabaseObject example, Database database) throws DatabaseException, InvalidExampleException
public DatabaseSnapshot createSnapshot(CatalogAndSchema example, Database database, SnapshotControl snapshotControl) throws DatabaseException, InvalidExampleException
public DatabaseSnapshot createSnapshot(CatalogAndSchema[] examples, Database database, SnapshotControl snapshotControl) throws DatabaseException, InvalidExampleException
public DatabaseSnapshot createSnapshot(DatabaseObject[] examples, Database database, SnapshotControl snapshotControl) throws DatabaseException, InvalidExampleException
public <T extends DatabaseObject> T createSnapshot(T example, Database database) throws DatabaseException, InvalidExampleException
public <T extends DatabaseObject> T createSnapshot(T example, Database database, SnapshotControl snapshotControl) throws DatabaseException, InvalidExampleException
public Table getDatabaseChangeLogTable(SnapshotControl snapshotControl, Database database) throws DatabaseException
DatabaseException
public Table getDatabaseChangeLogLockTable(Database database) throws DatabaseException
DatabaseException
public boolean hasDatabaseChangeLogTable(Database database) throws DatabaseException
DatabaseException
public boolean hasDatabaseChangeLogLockTable(Database database) throws DatabaseException
DatabaseException
public static void resetAll()
public java.util.Set<java.lang.Class<? extends DatabaseObject>> getContainerTypes(java.lang.Class<? extends DatabaseObject> type, Database database)