Package org.jboss.as.cmp.jdbc

Examples of org.jboss.as.cmp.jdbc.JDBCResultSetReader


        return Double.class;
    }

    public void setJDBCType(final JDBCType jdbcType) {
        if (resultReader != null) {
            final JDBCResultSetReader jdbcResultReader = this.resultReader;
            resultReader = new JDBCResultSetReader() {
                public Object get(ResultSet rs, int index, Class destination, Logger log) throws SQLException {
                    Object jdbcResult = jdbcResultReader.get(rs, index, destination, log);
                    return jdbcType.setColumnValue(0, null, jdbcResult);
                }
            };
        }
    }
View Full Code Here


        return Double.class;
    }

    public void setJDBCType(final JDBCType jdbcType) {
        if (resultReader != null) {
            final JDBCResultSetReader jdbcResultReader = this.resultReader;
            resultReader = new JDBCResultSetReader() {
                public Object get(ResultSet rs, int index, Class destination, Logger log) throws SQLException {
                    Object jdbcResult = jdbcResultReader.get(rs, index, destination, log);
                    return jdbcType.setColumnValue(0, null, jdbcResult);
                }
            };
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.cmp.jdbc.JDBCResultSetReader

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.