On Mar 14, 2005, at 22:02, Sami Mohammed wrote:
> while (rs.next()) --->HOW TO CONVERT THE FOLLOWING CODE
> IN CAYENNE, or iterate
> {
> String tableName = rs.getString("TABLE_NAME");
> vMappingNames.add(new TableLableValueBean(tableName, tableName));
> }
Are "TABLE_NAME" a column in your query or is it the name of the actual
table you are querying? I think this should be ok:
List resultList = context...
Iterator it = resultList.iterator();
while(it.hasNext){
Cw_Table t = (Cw_Table)it.next();
String tableName = t.getTableName(); // method name depend on your
mapping
vMappingNames...
}
- Tore.
This archive was generated by hypermail 2.0.0 : Tue Mar 15 2005 - 03:37:19 EST