Package com.alibaba.druid.proxy.jdbc

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


    public ResultSetProxy wrap(StatementProxy statement, ResultSet resultSet) {
        if (resultSet == null) {
            return null;
        }

        return new ResultSetProxyImpl(statement, resultSet, dataSource.createResultSetId(), statement.getLastExecuteSql());
    }
View Full Code Here


            return new StringReader(decode(stmt.getConnectionProxy(), text));
        }
       
        if (object instanceof ResultSet) {
            ResultSet resultSet = (ResultSet) object;
            return new ResultSetProxyImpl(stmt, resultSet, dataSource.createResultSetId(),
                                          stmt.getLastExecuteSql());
        }

        return object;
    }
View Full Code Here

    public ResultSetProxy wrap(StatementProxy statement, ResultSet resultSet) {
        if (resultSet == null) {
            return null;
        }

        return new ResultSetProxyImpl(statement, resultSet, dataSource.createResultSetId(),
                                      statement.getLastExecuteSql());
    }
View Full Code Here

            return new StringReader(decode(stmt.getConnectionProxy(), text));
        }
       
        if (object instanceof ResultSet) {
            ResultSet resultSet = (ResultSet) object;
            return new ResultSetProxyImpl(stmt, resultSet, dataSource.createResultSetId(),
                                          stmt.getLastExecuteSql());
        }

        return object;
    }
View Full Code Here

    public ResultSetProxy wrap(StatementProxy statement, ResultSet resultSet) {
        if (resultSet == null) {
            return null;
        }

        return new ResultSetProxyImpl(statement, resultSet, dataSource.createResultSetId(),
                                      statement.getLastExecuteSql());
    }
View Full Code Here

    public ResultSetProxy wrap(StatementProxy statement, ResultSet resultSet) {
        if (resultSet == null) {
            return null;
        }

        return new ResultSetProxyImpl(statement, resultSet, dataSource.createResultSetId(),
                                      statement.getLastExecuteSql());
    }
View Full Code Here

    }

    public void test_resultSet_getClob() throws Exception {
        FilterChainImpl chain = new FilterChainImpl(dataSource);

        Clob clob = chain.resultSet_getClob(new ResultSetProxyImpl(statement, mockResultSet, 1, null), 1);

        Assert.assertTrue(clob instanceof NClobProxy);
        Assert.assertEquals(1, invokeCount);
    }
View Full Code Here

    }

    public void test_resultSet_getClob_1() throws Exception {
        FilterChainImpl chain = new FilterChainImpl(dataSource);

        Clob clob = chain.resultSet_getClob(new ResultSetProxyImpl(statement, mockResultSet, 1, null), "1");

        Assert.assertTrue(clob instanceof NClobProxy);
        Assert.assertEquals(1, invokeCount);
    }
View Full Code Here

    }

    public void test_resultSet_getObject() throws Exception {
        FilterChainImpl chain = new FilterChainImpl(dataSource);

        Clob clob = (Clob) chain.resultSet_getObject(new ResultSetProxyImpl(statement, mockResultSet, 1, null), 1);

        Assert.assertTrue(clob instanceof NClobProxy);
        Assert.assertEquals(1, invokeCount);
    }
View Full Code Here

    }

    public void test_resultSet_getObject_1() throws Exception {
        FilterChainImpl chain = new FilterChainImpl(dataSource);

        Clob clob = (Clob) chain.resultSet_getObject(new ResultSetProxyImpl(statement, mockResultSet, 1, null), "1");

        Assert.assertTrue(clob instanceof NClobProxy);
        Assert.assertEquals(1, invokeCount);
    }
View Full Code Here

TOP

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

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.