Interface SnapshotListener


public interface SnapshotListener
Listener interface to be called during the snapshot process. Attach instances to SnapshotControl
  • Method Details

    • willSnapshot

      void willSnapshot(DatabaseObject example, Database database)
      Called before a snapshot is done.
      Parameters:
      example - Example of object to be created
      database - Database to be read from
    • finishedSnapshot

      void finishedSnapshot(DatabaseObject example, DatabaseObject snapshot, Database database)
      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 snapshot
      snapshot - Final snapshot object
      database - Database read from