Index

reading jdbc result set
public class MyResultSetHandler implements ResultSetHandler<DbqResult> {
    public Object handle(ResultSet rs) throws SQLException {
        ResultSetMetaData meta = rs.getMetaData();
        for (int row = 0; rs.next(); row++) {
            for (int col = 1; col <= meta.getColumnCount(); col++) {
		System.out.println(rs.getObject(col));
            }
        }
	return null;
    }
}