Package net.sf.basedb.core.log.db
Class DefaultEntityLogger
java.lang.Object
net.sf.basedb.core.log.db.DefaultEntityLogger
- All Implemented Interfaces:
EntityLogger
Default logger for all entities that has been tagged with the
LoggableData
interface.- Version:
- 2.13
- Author:
- Nicklas
- Last modified
- $Date: 2013-11-25 09:20:23 +0100 (må, 25 nov 2013) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final DbLogManagerFactory
private final boolean
-
Constructor Summary
ConstructorDescriptionDefaultEntityLogger
(DbLogManagerFactory factory) Creates a new entity logger. -
Method Summary
Modifier and TypeMethodDescriptionvoid
logChanges
(LogManager logManager, EntityDetails details) Creates a newChangeHistoryDetailData
and saves it toDbLogManager.logChangeDetails(ChangeHistoryDetailData, EntityDetails)
.
-
Field Details
-
factory
-
detailedProperties
private final boolean detailedProperties -
oldPropertyValues
private final boolean oldPropertyValues
-
-
Constructor Details
-
DefaultEntityLogger
Creates a new entity logger.- Parameters:
factory
- The log manager factory
-
-
Method Details
-
logChanges
Creates a newChangeHistoryDetailData
and saves it toDbLogManager.logChangeDetails(ChangeHistoryDetailData, EntityDetails)
.- Specified by:
logChanges
in interfaceEntityLogger
- Parameters:
logManager
- The log manager for the current transactiondetails
- Detailed information about the entity that has changed
-