Interface VersionedDBListener


  • public interface VersionedDBListener
    VersionedDBListener provides listeners the ability to be notified when changes occur to a versioned database.
    • Method Detail

      • versionsChanged

        void versionsChanged​(int minVersion,
                             int currentVersion)
        Available database versions have been modified. This method is not invoked when a new version is created.
        Parameters:
        minVersion - minimum available version
        currentVersion - current/latest version
      • versionCreated

        boolean versionCreated​(VersionedDatabase db,
                               int version,
                               long time,
                               java.lang.String comment,
                               long checkinId)
        A new database version has been created.
        Parameters:
        db -
        version -
        time -
        comment -
        checkinId -
        Returns:
        true if version is allowed, if false is returned the version will be removed.
      • versionDeleted

        void versionDeleted​(int version)
        A version has been deleted.
        Parameters:
        version -
      • getCheckoutVersion

        int getCheckoutVersion​(long checkoutId)
                        throws java.io.IOException
        Returns the checkout version associated with the specified checkoutId. A returned version of -1 indicates that the checkoutId is not valid.
        Parameters:
        checkoutId -
        Returns:
        checkout version
        Throws:
        java.io.IOException
      • checkinCompleted

        void checkinCompleted​(long checkoutId)
        Terminate the specified checkout. A new version may or may not have been created.
        Parameters:
        checkoutId -