|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.log.db.DbLogManager
public class DbLogManager
Log manager implementation that logs changes to the database.
Field Summary | |
---|---|
private ChangeHistoryData |
history
|
private LogControl |
logControl
|
Constructor Summary | |
---|---|
DbLogManager(LogControl logControl)
|
Method Summary | |
---|---|
void |
afterCommit()
Called after a successful commit of changes to the database. |
void |
afterRollback()
Called after rollback. |
private void |
createHistory()
|
LogControl |
getLogControl()
Get the log controller that is used in this transaction. |
void |
logChangeDetails(ChangeHistoryDetailData details)
Log the given details to the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final LogControl logControl
private ChangeHistoryData history
Constructor Detail |
---|
public DbLogManager(LogControl logControl)
Method Detail |
---|
public void afterCommit()
LogManager
afterCommit
in interface LogManager
public void afterRollback()
LogManager
afterRollback
in interface LogManager
public LogControl getLogControl()
LogManager
getLogControl
in interface LogManager
public void logChangeDetails(ChangeHistoryDetailData details)
ChangeHistoryDetailData.setChangeHistory(ChangeHistoryData)
is automatically populated (and saved if needed) with information
from the current transaction.
private void createHistory()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |