|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.clients.web.plugins.DynamicQueryWrapper
public class DynamicQueryWrapper
A query wrapper for DynamicQuery
:s.
Field Summary | |
---|---|
private int |
colIndex
|
private int |
counter
|
private SqlQuery |
query
|
Constructor Summary | |
---|---|
DynamicQueryWrapper(SqlQuery query)
Create a new query wrapper. |
Method Summary | |
---|---|
Object |
getData(DbControl dc,
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(DbControl dc)
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 SqlQuery query
private int counter
private int colIndex
Constructor Detail |
---|
public DynamicQueryWrapper(SqlQuery query)
dc
- The DbControl used to execute the queryquery
- The queryMethod Detail |
---|
public ResultIterator<SqlResult> iterate(DbControl dc)
AbstractSqlQuery.iterate(DbControl)
iterate
in interface QueryWrapper<SqlResult>
public int getId(SqlResult item)
getId
in interface QueryWrapper<SqlResult>
item
- The itempublic Object getData(DbControl dc, 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
|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |