Problem with RowSetDynaClass

I'm using the RowSetDynaClass as I need to close my resultset and return the connection to the connection pool quickly.

Resultset rs = stmt.executeQuery("something");

RowSetDynaClass rowset =new RowSetDynaClass(rs);

I iterate through it by the following:

Iterator iter = biomartSNPsByRegion.getRows().iterator();

while(iter.hasNext()){

DynaBean row = (DynaBean) iter.next();

The instance of DynaBean holds all the row information held in the RowSetDynaClass. Retrieving a property can be done easily, i.e. row2.get("Somecolumnname");

However, for some reason, when I try and return the data from the DynaBean it throws an invalid property exception i.e. I have passed the wrong column name to it. However, I've used MySQL and returned the metadata from the original resultset to confirm that I am passing it the correct column name, however I still get this error. Help! Please!

[1079 byte] By [dhaval_shaha] at [2007-11-27 10:06:52]
# 1
Hi,Please post the error log with your program. It will be easy to identify the problem and provide the solution.Regards,Loga
Loga_07a at 2007-7-13 0:43:19 > top of Java-index,Core,Core APIs...
# 2

Found the problem - it appears by default it forces the column name returned in the resultset to be set to lowercase. There is a constructor that should (in theory) allow this to be changed. However, does anyone know why by default it is set in this way - surely it should only be set if you call the respective constructor and force the 'tolowercase' parameter to be enforced?

dhaval_shaha at 2007-7-13 0:43:19 > top of Java-index,Core,Core APIs...