2.8.2: 2008-09-18

net.sf.basedb.clients.web.plugins
Interface QueryWrapper<T>

All Known Implementing Classes:
DataQueryWrapper, DynamicQueryWrapper, ItemQueryWrapper, ReporterScoreQueryWrapper

interface QueryWrapper<T>

A helper interface for the SimpleExport class to make it easier to interact with different types of queries.

Version:
2.2
Author:
nicklas
Last modified
$Date: 2008-09-05 17:15:54 +0200 (Fri, 05 Sep 2008) $

Method Summary
 Object getData(ExportedProperty exportedProperty, T item)
          Get the value for the specified property.
 int getId(T item)
          Get the ID of the specified item.
 ResultIterator<T> iterate()
          Get the ResultIterator for the query.
 

Method Detail

iterate

ResultIterator<T> iterate()
Get the ResultIterator for the query.


getId

int getId(T item)
Get the ID of the specified item. If the item doesn't have an ID a running number may be used. The important thing is that ID:s must be unique for each export.

Parameters:
item - The item

getData

Object getData(ExportedProperty exportedProperty,
               T item)
               throws Exception
Get the value for the specified property.

Parameters:
exportedProperty - The property to get the value for
item - The item that holds the value
Throws:
Exception - If failing to get the data.

2.8.2: 2008-09-18