2.17.2: 2011-06-17

net.sf.basedb.core.log
Interface LogManager

All Known Implementing Classes:
DbLogManager

public interface LogManager

Manages the logging of changes made in a single transaction. The LogManagerFactory is asked to create a new log manager for each transaction. The same log manager may be re-used but only if it is thread-safe.

Version:
2.13
Author:
Nicklas
Last modified
$Date: 2009-08-07 12:50:01 +0200 (Fri, 07 Aug 2009) $

Method Summary
 void afterCommit()
          Called after a successful commit of changes to the database.
 void afterRollback()
          Called after rollback.
 LogControl getLogControl()
          Get the log controller that is used in this transaction.
 

Method Detail

getLogControl

LogControl getLogControl()
Get the log controller that is used in this transaction.


afterCommit

void afterCommit()
Called after a successful commit of changes to the database. Note that this method is not called until after the changes have been written to the database and the connection has been closed. If the log manager wants to add information to the database, it must be done before this method is called.


afterRollback

void afterRollback()
Called after rollback. Note that this methd is not called until after the connection to the database has been closed, and that any information that the log manager has added to the database have also been rolled back.


2.17.2: 2011-06-17