|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.clients.web.plugins.DataQueryWrapper
public class DataQueryWrapper
A query wrapper for DataQuery
:s.
Field Summary | |
---|---|
private DbControl |
dc
|
private DataQuery<BasicData> |
query
|
Constructor Summary | |
---|---|
DataQueryWrapper(DbControl dc,
DataQuery<BasicData> query)
Create a new query wrapper. |
Method Summary | |
---|---|
Object |
getData(ExportedProperty exportedProperty,
BasicData item)
Uses a Metadata object to get the value of the specified property. |
int |
getId(BasicData item)
Calls BasicData.getId() |
ResultIterator<BasicData> |
iterate()
Calls DataQuery.iterate(DbControl) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final DataQuery<BasicData> query
private final DbControl dc
Constructor Detail |
---|
public DataQueryWrapper(DbControl dc, DataQuery<BasicData> query)
dc
- The DbControl used to execute the queryquery
- The queryMethod Detail |
---|
public ResultIterator<BasicData> iterate()
DataQuery.iterate(DbControl)
iterate
in interface QueryWrapper<BasicData>
public int getId(BasicData item)
BasicData.getId()
getId
in interface QueryWrapper<BasicData>
item
- The itempublic Object getData(ExportedProperty exportedProperty, BasicData item)
Metadata
object to get the value of the specified property.
getData
in interface DataLoader<BasicData>
exportedProperty
- The property to get the value foritem
- The item that holds the value
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |