public abstract class DatabaseSnapshot extends java.lang.Object implements LiquibaseSerializable
LiquibaseSerializable.SerializationType
GENERIC_CHANGELOG_EXTENSION_NAMESPACE, GENERIC_SNAPSHOT_EXTENSION_NAMESPACE, STANDARD_CHANGELOG_NAMESPACE, STANDARD_SNAPSHOT_NAMESPACE
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) |
java.util.Set<java.lang.String> |
getSerializableFields() |
LiquibaseSerializable.SerializationType |
getSerializableFieldType(java.lang.String field) |
java.lang.Object |
getSerializableFieldValue(java.lang.String field) |
java.lang.String |
getSerializedObjectName() |
java.lang.String |
getSerializedObjectNamespace() |
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 java.lang.String getSerializedObjectName()
getSerializedObjectName
in interface LiquibaseSerializable
public java.lang.String getSerializedObjectNamespace()
getSerializedObjectNamespace
in interface LiquibaseSerializable
public java.util.Set<java.lang.String> getSerializableFields()
getSerializableFields
in interface LiquibaseSerializable
public java.lang.Object getSerializableFieldValue(java.lang.String field)
getSerializableFieldValue
in interface LiquibaseSerializable
public LiquibaseSerializable.SerializationType getSerializableFieldType(java.lang.String field)
getSerializableFieldType
in interface LiquibaseSerializable
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)