Package com.google.gwt.gears.database.client

Examples of com.google.gwt.gears.database.client.ResultSet


     */
    public <T> List<T> query(String sql, GearsRowMapper<T> mapper,
            Object... args) {

        try {
            ResultSet rs = execute(sql, args);
            List<T> rtn = new ArrayList<T>();

            for (int i = 0; rs.isValidRow(); ++i, rs.next()) {
                rtn.add(mapper.mapRow(rs, i));
            }
            rs.close();
            return rtn;
        } catch (DatabaseException e) {
            Log.error(sql + " : " + e.getMessage());
            throw new RuntimeException(e);
        }
View Full Code Here

TOP

Related Classes of com.google.gwt.gears.database.client.ResultSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.