2.17.2: 2011-06-17

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: 2010-04-20 10:02:16 +0200 (Tue, 20 Apr 2010) $

Field Summary
private  DbControl dc
           
private  ReporterScoreQuery query
           
 
Constructor Summary
ReporterScoreQueryWrapper(DbControl dc, ReporterScoreQuery query)
          Create a new query wrapper.
 
Method Summary
 Object getData(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()
          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

dc

private final DbControl dc
Constructor Detail

ReporterScoreQueryWrapper

public ReporterScoreQueryWrapper(DbControl dc,
                                 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()
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(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>
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.17.2: 2011-06-17