Package cc.concurrent.mango.exception

Examples of cc.concurrent.mango.exception.IncorrectResultSetColumnCountException


    public T mapRow(ResultSet rs, int rowNum) throws SQLException {
        // 验证列数
        ResultSetMetaData rsmd = rs.getMetaData();
        int nrOfColumns = rsmd.getColumnCount();
        if (nrOfColumns != 1) {
            throw new IncorrectResultSetColumnCountException("incorrect column count, expected 1 but " + nrOfColumns);
        }

        Object result = getColumnValue(rs, 1, this.mappedClass);
        return (T) result;
    }
View Full Code Here


    public T mapRow(ResultSet rs, int rowNum) throws SQLException {
        // 验证列数
        ResultSetMetaData rsmd = rs.getMetaData();
        int nrOfColumns = rsmd.getColumnCount();
        if (nrOfColumns != 1) {
            throw new IncorrectResultSetColumnCountException("incorrect column count, expected 1 but " + nrOfColumns);
        }

        Object result = getColumnValue(rs, 1, this.mappedClass);
        return (T) result;
    }
View Full Code Here

TOP

Related Classes of cc.concurrent.mango.exception.IncorrectResultSetColumnCountException

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.