Package com.alibaba.druid.proxy.jdbc

Examples of com.alibaba.druid.proxy.jdbc.ResultSetProxy


        config.getFilters().add(filter);

        Connection conn = dataSource.connect(null);

        Statement stmt = conn.createStatement();
        ResultSetProxy rs = (ResultSetProxy) stmt.executeQuery(sql);
        rs.close();
        stmt.close();

        conn.close();
        conn.close();
       
View Full Code Here


            filter.statement_getGeneratedKeys(chain, statement);
        }

        {
            final ResultSetProxy resultSet = new ResultSetProxyImpl(statement, null, 2001, null);
            FilterChain chain = new FilterChainImpl(new DataSourceProxyImpl(null, config)) {

                public ResultSetProxy statement_getGeneratedKeys(StatementProxy statement) throws SQLException {
                    return resultSet;
                }
View Full Code Here

        Connection conn = dataSource.connect(null);

        conn.setClientInfo("name", null);

        Statement stmt = conn.createStatement();
        ResultSetProxy rs = (ResultSetProxy) stmt.executeQuery(sql);

        rs.insertRow();
        rs.refreshRow();
        rs.moveToInsertRow();
        rs.moveToCurrentRow();
        rs.next();

        rs.updateRef(1, null);
        rs.updateArray(1, null);
        rs.updateRowId(1, null);
        rs.updateNString(1, null);
        rs.updateNClob(1, (NClob) null);
        rs.updateNClob(1, (Reader) null);
        rs.updateNClob(1, (Reader) null, 0);
        rs.updateSQLXML(1, null);
        rs.updateNCharacterStream(1, null);
        rs.updateNCharacterStream(1, null, 0);

        rs.getArray("1");
        rs.updateRef("1", null);
        rs.updateArray("1", null);
        rs.updateRowId("1", null);
        rs.updateNString("1", null);
        rs.updateNClob("1", (NClob) null);
        rs.updateNClob("1", (Reader) null);
        rs.updateNClob("1", (Reader) null, 0);
        rs.updateSQLXML("1", null);
        rs.updateNCharacterStream("1", null);
        rs.updateNCharacterStream("1", null, 0);
    }
View Full Code Here

    public ResultSetProxy statement_executeQuery(FilterChain chain, StatementProxy statement, String sql)
                                                                                                         throws SQLException {
        createWallContext(statement);
        try {
            sql = check(sql);
            ResultSetProxy resultSetProxy = chain.statement_executeQuery(statement, sql);
            preprocessResultSet(resultSetProxy);
            return resultSetProxy;
        } catch (SQLException ex) {
            incrementExecuteErrorCount();
            throw ex;
View Full Code Here

    @Override
    public ResultSetProxy preparedStatement_executeQuery(FilterChain chain, PreparedStatementProxy statement)
                                                                                                             throws SQLException {
        try {
            ResultSetProxy resultSetProxy = chain.preparedStatement_executeQuery(statement);
            preprocessResultSet(resultSetProxy);
            return resultSetProxy;
        } catch (SQLException ex) {
            incrementExecuteErrorCount(statement);
            throw ex;
View Full Code Here

        }
    }

    @Override
    public ResultSetProxy statement_getResultSet(FilterChain chain, StatementProxy statement) throws SQLException {
        ResultSetProxy resultSetProxy = chain.statement_getResultSet(statement);
        preprocessResultSet(resultSetProxy);
        return resultSetProxy;
    }
View Full Code Here

        return resultSetProxy;
    }

    @Override
    public ResultSetProxy statement_getGeneratedKeys(FilterChain chain, StatementProxy statement) throws SQLException {
        ResultSetProxy resultSetProxy = chain.statement_getGeneratedKeys(statement);
        preprocessResultSet(resultSetProxy);
        return resultSetProxy;
    }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.proxy.jdbc.ResultSetProxy

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.