3.2.1: 2012-12-13

net.sf.basedb.clients.web.plugins
Class ReporterScoreQueryWrapper

java.lang.Object
  extended by net.sf.basedb.clients.web.plugins.ReporterScoreQueryWrapper
All Implemented Interfaces:
DataLoader<ReporterScore>, QueryWrapper<ReporterScore>

public class ReporterScoreQueryWrapper
extends Object
implements QueryWrapper<ReporterScore>

A query wrapper for ReporterScoreQuery:s.

Version:
2.2
Author:
nicklas
Last modified
$Date: 2012-03-27 15:11:38 +0200 (Tue, 27 Mar 2012) $

Field Summary
private  ReporterScoreQuery query
           
 
Constructor Summary
ReporterScoreQueryWrapper(ReporterScoreQuery query)
          Create a new query wrapper.
 
Method Summary
 Object getData(DbControl dc, ExportedProperty exportedProperty, ReporterScore item)
          Uses a Metadata object to get the value of the specified property.
 int getId(ReporterScore item)
          Calls BasicData.getId().
 ResultIterator<ReporterScore> iterate(DbControl dc)
          Calls ReporterScoreQuery.iterate(DbControl)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

query

private final ReporterScoreQuery query
Constructor Detail

ReporterScoreQueryWrapper

public ReporterScoreQueryWrapper(ReporterScoreQuery query)
Create a new query wrapper.

Parameters:
dc - The DbControl used to execute the query
query - The query
Method Detail

iterate

public ResultIterator<ReporterScore> iterate(DbControl dc)
Calls ReporterScoreQuery.iterate(DbControl)

Specified by:
iterate in interface QueryWrapper<ReporterScore>

getId

public int getId(ReporterScore item)
Calls BasicData.getId().

Specified by:
getId in interface QueryWrapper<ReporterScore>
Parameters:
item - The item

getData

public Object getData(DbControl dc,
                      ExportedProperty exportedProperty,
                      ReporterScore item)
               throws Exception
Uses a Metadata object to get the value of the specified property.

Specified by:
getData in interface DataLoader<ReporterScore>
exportedProperty - The property to get the value for
item - The item that holds the value
Throws:
Exception - If failing to get the data.

3.2.1: 2012-12-13