|
3.1.1: 2012-03-29 | ||||||||
| 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 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 LogManagerpublic void afterRollback()
LogManager
afterRollback in interface LogManagerpublic LogControl getLogControl()
LogManager
getLogControl in interface LogManagerpublic void logChangeDetails(ChangeHistoryDetailData details)
ChangeHistoryDetailData.setChangeHistory(ChangeHistoryData)
is automatically populated (and saved if needed) with information
from the current transaction.
private void createHistory()
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||