|
3.1.1: 2012-03-29 | ||||||||
| 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 DbControl |
dc
|
private SqlQuery |
query
|
| Constructor Summary | |
|---|---|
DynamicQueryWrapper(DbControl dc,
SqlQuery 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 SqlQuery query
private final DbControl dc
private int counter
private int colIndex
| Constructor Detail |
|---|
public DynamicQueryWrapper(DbControl dc,
SqlQuery query)
dc - The DbControl used to execute the queryquery - The query| Method 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 item
public 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
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||