public abstract class DatabaseSnapshot
extends java.lang.Object
Constructor and Description |
---|
DatabaseSnapshot(DatabaseObject[] examples,
Database database) |
Modifier and Type | Method and Description |
---|---|
<DatabaseObjectType extends DatabaseObject> |
get(java.lang.Class<DatabaseObjectType> type)
Returns all objects of the given type that are already included in this snapshot.
|
<DatabaseObjectType extends DatabaseObject> |
get(DatabaseObjectType example)
Returns the object described by the passed example if it is already included in this snapshot.
|
Database |
getDatabase() |
liquibase.snapshot.ResultSetCache |
getResultSetCache(java.lang.String key) |
SnapshotControl |
getSnapshotControl() |
protected <T extends DatabaseObject> |
include(T example)
Include the object described by the passed example object in this snapshot.
|
public DatabaseSnapshot(DatabaseObject[] examples, Database database) throws DatabaseException, InvalidExampleException
public SnapshotControl getSnapshotControl()
public Database getDatabase()
public liquibase.snapshot.ResultSetCache getResultSetCache(java.lang.String key)
protected <T extends DatabaseObject> T include(T example) throws DatabaseException, InvalidExampleException
public <DatabaseObjectType extends DatabaseObject> DatabaseObjectType get(DatabaseObjectType example)
public <DatabaseObjectType extends DatabaseObject> java.util.Set<DatabaseObjectType> get(java.lang.Class<DatabaseObjectType> type)