|
3.2.1: 2012-12-13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.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 changeDetails,
EntityDetails entityDetails)
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 changeDetails, EntityDetails entityDetails)
ChangeHistoryDetailData.setChangeHistory(ChangeHistoryData)
is automatically populated (and saved if needed) with information
from the current transaction.
private void createHistory()
|
3.2.1: 2012-12-13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |