2.17.2: 2011-06-17

net.sf.basedb.core.log.db
Class DefaultEntityLogger

java.lang.Object
  extended by net.sf.basedb.core.log.db.DefaultEntityLogger
All Implemented Interfaces:
EntityLogger

public class DefaultEntityLogger
extends Object
implements EntityLogger

Default logger for all entities that has been tagged with the LoggableData interface.

Version:
2.13
Author:
Nicklas
Last modified
$Date: 2009-08-18 08:47:26 +0200 (Tue, 18 Aug 2009) $

Field Summary
private  boolean detailedProperties
           
 
Constructor Summary
DefaultEntityLogger(boolean detailedProperties)
          Creates a new entity logger.
 
Method Summary
 void logChanges(LogManager logManager, EntityDetails details)
          Creates a new ChangeHistoryDetailData and saves it to DbLogManager.logChangeDetails(ChangeHistoryDetailData).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

detailedProperties

private final boolean detailedProperties
Constructor Detail

DefaultEntityLogger

public DefaultEntityLogger(boolean detailedProperties)
Creates a new entity logger.

Parameters:
detailedProperties - If TRUE, the log includes a list with the properties that was modified
Method Detail

logChanges

public void logChanges(LogManager logManager,
                       EntityDetails details)
Creates a new ChangeHistoryDetailData and saves it to DbLogManager.logChangeDetails(ChangeHistoryDetailData).

Specified by:
logChanges in interface EntityLogger
Parameters:
logManager - The log manager for the current transaction
details - Detailed information about the entity that has changed

2.17.2: 2011-06-17