3.2.4: 2013-12-06

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: 2012-08-07 13:28:40 +0200 (Tue, 07 Aug 2012) $

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

3.2.4: 2013-12-06