Package org.nutz.dao.pager

Examples of org.nutz.dao.pager.ResultSetLooping


import org.nutz.dao.sql.SqlContext;

public class PojoQueryRecordCallback implements PojoCallback {

    public Object invoke(Connection conn, ResultSet rs, Pojo pojo) throws SQLException {
        ResultSetLooping ing = new ResultSetLooping() {
            protected boolean createObject(int index, ResultSet rs, SqlContext context, int rowCount) {
                list.add(Record.create(rs));
                return true;
            }
        };
        ing.doLoop(rs, pojo.getContext());
        return ing.getList();
    }
View Full Code Here

TOP

Related Classes of org.nutz.dao.pager.ResultSetLooping

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.