|
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.ItemQueryWrapper
public class ItemQueryWrapper
A query wrapper for ItemQuery
:s.
Field Summary | |
---|---|
private DbControl |
dc
|
private ItemQuery<BasicItem> |
query
|
Constructor Summary | |
---|---|
ItemQueryWrapper(DbControl dc,
ItemQuery<BasicItem> query)
Create a new query wrapper. |
Method Summary | |
---|---|
Object |
getData(ExportedProperty exportedProperty,
BasicItem item)
Uses a Metadata object to get the value of the specified property. |
int |
getId(BasicItem item)
Calls BasicItem.getId() |
ResultIterator<BasicItem> |
iterate()
Calls ItemQuery.iterate(DbControl) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final ItemQuery<BasicItem> query
private final DbControl dc
Constructor Detail |
---|
public ItemQueryWrapper(DbControl dc, ItemQuery<BasicItem> query)
dc
- The DbControl used to execute the queryquery
- The queryMethod Detail |
---|
public ResultIterator<BasicItem> iterate()
ItemQuery.iterate(DbControl)
iterate
in interface QueryWrapper<BasicItem>
public int getId(BasicItem item)
BasicItem.getId()
getId
in interface QueryWrapper<BasicItem>
item
- The itempublic Object getData(ExportedProperty exportedProperty, BasicItem item)
Metadata
object to get the value of the specified property.
getData
in interface DataLoader<BasicItem>
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 |