Package net.sf.basedb.core.log.db
Class AnyToAnyLogger
- java.lang.Object
-
- net.sf.basedb.core.log.db.AnyToAnyLogger
-
- All Implemented Interfaces:
EntityLogger
public class AnyToAnyLogger extends Object implements EntityLogger
Logger for any-to-any links that logs changes as updates to the 'from' item.- Since:
- 3.3
- Author:
- Nicklas
- Last modified
- $Date$
-
-
Field Summary
Fields Modifier and Type Field Description private DbLogManagerFactory
factory
-
Constructor Summary
Constructors Constructor Description AnyToAnyLogger(DbLogManagerFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private String
createLoggableString(LogControl logControl, Item itemType, int itemId)
void
logChanges(LogManager logManager, EntityDetails details)
Called when changes has been detected to an entity.
-
-
-
Field Detail
-
factory
private final DbLogManagerFactory factory
-
-
Constructor Detail
-
AnyToAnyLogger
public AnyToAnyLogger(DbLogManagerFactory factory)
-
-
Method Detail
-
logChanges
public void logChanges(LogManager logManager, EntityDetails details)
Description copied from interface:EntityLogger
Called when changes has been detected to an entity.- Specified by:
logChanges
in interfaceEntityLogger
- Parameters:
logManager
- The log manager for the current transactiondetails
- Detailed information about the entity that has changed
-
createLoggableString
private String createLoggableString(LogControl logControl, Item itemType, int itemId)
-
-