Class ServiceSessionControl.FlushSessionAction

java.lang.Object
net.sf.basedb.core.ServiceSessionControl.FlushSessionAction
All Implemented Interfaces:
TransactionalAction
Enclosing class:
ServiceSessionControl

static class ServiceSessionControl.FlushSessionAction extends Object implements TransactionalAction
Flushes the given session before the transaction is committed.
  • Field Details

    • session

      private final Session session
  • Constructor Details

    • FlushSessionAction

      FlushSessionAction(Session session)
  • Method Details

    • onBeforeCommit

      public void onBeforeCommit()
      Description copied from interface: TransactionalAction
      This method is called before the commit is about to happen. If this method throws an exception the transaction will be rolled back.
      Specified by:
      onBeforeCommit in interface TransactionalAction
    • onRollback

      public void onRollback()
      Description copied from interface: TransactionalAction
      Called after an unsuccessful commit. Implementations should not throw any exceptions from this method. If they do, the message is logged, by no other action is taken.
      Specified by:
      onRollback in interface TransactionalAction
    • onAfterCommit

      public void onAfterCommit()
      Description copied from interface: TransactionalAction
      Called after a successful commit. Implementations should not throw any exceptions from this method. If they do, the message is logged, by no other action is taken.
      Specified by:
      onAfterCommit in interface TransactionalAction