Interface SavepointListener


  • public interface SavepointListener
    Interface for a listener to be notified of the start and pre-commit, commit, or abort of savepoints. To receive such notifications, implement this interface, with the methods that will be called in the cases of interest, and pass an instance to Session.addSavepointListener(org.postgresql.pljava.SavepointListener). The default implementations of these methods do nothing.

    It is possible for a listener method to be called with savepoint null, or parent null, or both; that can happen if the application code has not kept a strong reference to the Savepoint object in question.

    SavepointListener exposes a PostgreSQL-specific function that is more internal than the documented SPI.

    Author:
    Thomas Hallgren