Class ChangeHistoryDetailLoader
java.lang.Object
net.sf.basedb.clients.web.plugins.ChangeHistoryDetailLoader
- All Implemented Interfaces:
DataLoader<ChangeHistory>
public class ChangeHistoryDetailLoader extends Object implements DataLoader<ChangeHistory>
Data loader implementation for old and new values in the
change history which are protected by special permissions.
- Since:
- 3.3
- Author:
- Nicklas
- Last modified
- $Date: 2012-03-27 15:11:38 +0200 (ti, 27 mar 2012) $
-
Field Summary
Fields Modifier and Type Field Description private boolean
oldValue
-
Constructor Summary
Constructors Constructor Description ChangeHistoryDetailLoader(boolean oldValue)
-
Method Summary
Modifier and Type Method Description Object
getData(DbControl dc, ExportedProperty exportedProperty, ChangeHistory item)
Get the value for the specified property.
-
Field Details
-
oldValue
private final boolean oldValue
-
-
Constructor Details
-
ChangeHistoryDetailLoader
public ChangeHistoryDetailLoader(boolean oldValue)- Parameters:
oldValue
- TRUE to export the old value, FALSE to export the new value
-
-
Method Details
-
getData
public Object getData(DbControl dc, ExportedProperty exportedProperty, ChangeHistory item) throws ExceptionDescription copied from interface:DataLoader
Get the value for the specified property.- Specified by:
getData
in interfaceDataLoader<ChangeHistory>
exportedProperty
- The property to get the value foritem
- The item that holds the value- Throws:
Exception
- If failing to get the data.
-