public class ItemQueryLoader<T extends BasicItem> extends Object implements DataLoader<T>
Modifier and Type | Field and Description |
---|---|
private String |
parameterName |
private ItemQuery<?> |
query |
Constructor and Description |
---|
ItemQueryLoader(ItemQuery<?> query,
String parameterName) |
Modifier and Type | Method and Description |
---|---|
Object |
getData(DbControl dc,
ExportedProperty exportedProperty,
T item)
Get the value for the specified property.
|
private final ItemQuery<?> query
private final String parameterName
public Object getData(DbControl dc, ExportedProperty exportedProperty, T item) throws Exception
DataLoader
getData
in interface DataLoader<T extends BasicItem>
exportedProperty
- The property to get the value foritem
- The item that holds the valueException
- If failing to get the data.