Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
RowSetDynaClass rowSet = null;
try {
conn = getConnection();
stmt = conn.createStatement();
rs = stmt.executeQuery("select * from users");
rowSet = new RowSetDynaClass(rs);
}
finally {
if (conn != null) conn.close();
}
return rowSet;