Package liquibase.snapshot
Interface SnapshotListener
public interface SnapshotListener
Listener interface to be called during the snapshot process. Attach instances to
SnapshotControl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finishedSnapshot
(DatabaseObject example, DatabaseObject snapshot, Database database) Called after an object is fully loaded from the database.void
willSnapshot
(DatabaseObject example, Database database) Called before a snapshot is done.
-
Method Details
-
willSnapshot
Called before a snapshot is done.- Parameters:
example
- Example of object to be createddatabase
- Database to be read from
-
finishedSnapshot
Called after an object is fully loaded from the database. Dependent objects may have their willSnapshot and finishSnapshot methods called before this method is called for a given example.- Parameters:
example
- Original example object used for the snapshotsnapshot
- Final snapshot objectdatabase
- Database read from
-