Package com.salesforce.dataloader.action.visitor

Examples of com.salesforce.dataloader.action.visitor.DAOSizeVisitor.visit()


    public static int calculateTotalRows(DataReader dataReader) throws DataAccessObjectException {
        try {
            //visit the rows
            DAOSizeVisitor visitor = new DAOSizeVisitor();
            for (Row row = dataReader.readRow(); isValidRow(row); row = dataReader.readRow()) {
                visitor.visit(row);
            }

            return visitor.getNumberOfRows();
        } catch (DataAccessObjectException daoe) {
            logger.error(Messages.getString("RowUtil.error"), daoe); //$NON-NLS-1$
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.