public abstract class DatabaseSnapshot extends 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(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(String key) |
Set<String> |
getSerializableFields() |
LiquibaseSerializable.SerializationType |
getSerializableFieldType(String field) |
Object |
getSerializableFieldValue(String field) |
String |
getSerializedObjectName() |
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 String getSerializedObjectName()
getSerializedObjectName
in interface LiquibaseSerializable
public String getSerializedObjectNamespace()
getSerializedObjectNamespace
in interface LiquibaseSerializable
public Set<String> getSerializableFields()
getSerializableFields
in interface LiquibaseSerializable
public Object getSerializableFieldValue(String field)
getSerializableFieldValue
in interface LiquibaseSerializable
public LiquibaseSerializable.SerializationType getSerializableFieldType(String field)
getSerializableFieldType
in interface LiquibaseSerializable
public Database getDatabase()
public liquibase.snapshot.ResultSetCache getResultSetCache(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> Set<DatabaseObjectType> get(Class<DatabaseObjectType> type)
Copyright © 2017 Liquibase.org. All rights reserved.