net.sf.basedb.core.log.db
Class DefaultEntityLogger
java.lang.Object
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) $
Constructor Summary |
DefaultEntityLogger(boolean detailedProperties)
Creates a new entity logger. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
detailedProperties
private final boolean detailedProperties
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
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 transactiondetails
- Detailed information about the entity that has
changed