Class ItemQueryLoader<T extends BasicItem>
- java.lang.Object
-
- net.sf.basedb.clients.web.plugins.ItemQueryLoader<T>
-
- All Implemented Interfaces:
DataLoader<T>
- Direct Known Subclasses:
ParentBioMaterialLoader
public class ItemQueryLoader<T extends BasicItem> extends Object implements DataLoader<T>
A class that uses a given query to load data. The query is filtered on a given parameter.- Version:
- 2.12
- Author:
- martin
- Last modified
- $Date: 2012-03-27 15:11:38 +0200 (ti, 27 mar 2012) $
-
-
Field Summary
Fields Modifier and Type Field Description private String
parameterName
private ItemQuery<?>
query
-
Constructor Summary
Constructors Constructor Description ItemQueryLoader(ItemQuery<?> query, String parameterName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getData(DbControl dc, ExportedProperty exportedProperty, T item)
Get the value for the specified property.
-
-
-
Method Detail
-
getData
public Object getData(DbControl dc, ExportedProperty exportedProperty, T item) throws Exception
Description copied from interface:DataLoader
Get the value for the specified property.- Specified by:
getData
in interfaceDataLoader<T extends BasicItem>
exportedProperty
- The property to get the value foritem
- The item that holds the value- Throws:
Exception
- If failing to get the data.
-
-