Package org.openamf.recordset

Examples of org.openamf.recordset.ASRecordSet


        PageableRecordsetConfig prsc = new PageableRecordsetConfig();
        prsc.setInitialDataRowCount(qry.getRowCount());
        OpenAMFConfig.getInstance().setPageableRecordsetConfig(prsc);
       
       
        ASRecordSet rs=new ASRecordSet();
       
        String[] keys=qry.getColumns();
        QueryColumn[] columns=new QueryColumn[keys.length];
        for(int i=0;i<columns.length;i++) {
            columns[i]=qry.getColumn(keys[i]);
            //rows.add(i,new ArrayList());
        }
       
       
        int iCol;
        ArrayList rows = new ArrayList();
        ArrayList row;
        int rowCount=qry.getRecordcount();
        for(int iRow=1;iRow<=rowCount;iRow++) {
            rows.add(row=new ArrayList());
            for(iCol=0;iCol<columns.length;iCol++) {
                row.add(toAMFObject(columns[iCol].get(iRow,null)));
            }
        }
       
       
        rs.populate(qry.getColumns(),rows);
       
        return rs;
    }
View Full Code Here

TOP

Related Classes of org.openamf.recordset.ASRecordSet

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.