liquibase.snapshot
Class DatabaseSnapshot
java.lang.Object
liquibase.snapshot.DatabaseSnapshot
- Direct Known Subclasses:
- JdbcDatabaseSnapshot
public abstract class DatabaseSnapshot
- extends Object
Method Summary |
|
get(Class<DatabaseObjectType> type)
Returns all objects of the given type that are already included in this snapshot. |
|
get(DatabaseObjectType example)
Returns the object described by the passed example if it is already included in this snapshot. |
Database |
getDatabase()
|
SnapshotControl |
getSnapshotControl()
|
protected
|
include(T example)
Include the object described by the passed example object in this snapshot. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseSnapshot
public DatabaseSnapshot(Database database)
getSnapshotControl
public SnapshotControl getSnapshotControl()
getDatabase
public Database getDatabase()
include
protected <T extends DatabaseObject> T include(T example)
throws DatabaseException,
InvalidExampleException
- Include the object described by the passed example object in this snapshot. Returns the object snapshot or null if the object does not exist in the database.
If the same object was returned by an earlier include() call, the same object instance will be returned.
- Throws:
DatabaseException
InvalidExampleException
get
public <DatabaseObjectType extends DatabaseObject> DatabaseObjectType get(DatabaseObjectType example)
- Returns the object described by the passed example if it is already included in this snapshot.
get
public <DatabaseObjectType extends DatabaseObject> Set<DatabaseObjectType> get(Class<DatabaseObjectType> type)
- Returns all objects of the given type that are already included in this snapshot.
Copyright © 2013 Liquibase.org. All Rights Reserved.