3.2.1: 2012-12-13

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

All Superinterfaces:
DataLoader<T>
All Known Implementing Classes:
DataQueryWrapper, DynamicQueryWrapper, ItemQueryWrapper, ReporterScoreQueryWrapper

interface QueryWrapper<T>
extends DataLoader<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: 2012-03-27 15:11:38 +0200 (Tue, 27 Mar 2012) $

Method Summary
 int getId(T item)
          Get the ID of the specified item.
 ResultIterator<T> iterate(DbControl dc)
          Get the ResultIterator for the query.
 
Methods inherited from interface net.sf.basedb.clients.web.plugins.DataLoader
getData
 

Method Detail

iterate

ResultIterator<T> iterate(DbControl dc)
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

3.2.1: 2012-12-13