|
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.DynamicQueryWrapper
public class DynamicQueryWrapper
A query wrapper for DynamicQuery
:s.
Field Summary | |
---|---|
private int |
colIndex
|
private int |
counter
|
private DbControl |
dc
|
private DynamicQuery |
query
|
Constructor Summary | |
---|---|
DynamicQueryWrapper(DbControl dc,
DynamicQuery query)
Create a new query wrapper. |
Method Summary | |
---|---|
Object |
getData(ExportedProperty exportedProperty,
SqlResult item)
Calls SqlResult.getObject(int) and increases the column index
for each call. |
int |
getId(SqlResult item)
Keeps a counter which is incremented at each call to this method. |
ResultIterator<SqlResult> |
iterate()
Calls AbstractSqlQuery.iterate(DbControl) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final DynamicQuery query
private final DbControl dc
private int counter
private int colIndex
Constructor Detail |
---|
public DynamicQueryWrapper(DbControl dc, DynamicQuery query)
dc
- The DbControl used to execute the queryquery
- The queryMethod Detail |
---|
public ResultIterator<SqlResult> iterate()
AbstractSqlQuery.iterate(DbControl)
iterate
in interface QueryWrapper<SqlResult>
public int getId(SqlResult item)
getId
in interface QueryWrapper<SqlResult>
item
- The itempublic Object getData(ExportedProperty exportedProperty, SqlResult item) throws SQLException
SqlResult.getObject(int)
and increases the column index
for each call. Expects this method to be called in the order the properties
are selected.
getData
in interface DataLoader<SqlResult>
exportedProperty
- The property to get the value foritem
- The item that holds the value
SQLException
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |