Package com.alibaba.druid.proxy.jdbc

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


    public ClobProxy wrap(ConnectionProxy connection, Clob clob) {
        if (clob == null) {
            return null;
        }

        return new ClobProxyImpl(dataSource, connection, clob);
    }
View Full Code Here


        if (clob instanceof NClob) {
            return wrap(conn, (NClob) clob);
        }
       
        return new ClobProxyImpl(dataSource, conn, clob);
    }
View Full Code Here

        if (clob instanceof NClob) {
            return wrap(stmt, (NClob) clob);
        }

        return new ClobProxyImpl(dataSource, stmt.getConnectionProxy(), clob);
    }
View Full Code Here

    public ClobProxy wrap(ConnectionProxy connection, Clob clob) {
        if (clob == null) {
            return null;
        }

        return new ClobProxyImpl(dataSource, connection, clob);
    }
View Full Code Here

        if (clob instanceof NClob) {
            return wrap(conn, (NClob) clob);
        }

        return new ClobProxyImpl(dataSource, conn, clob);
    }
View Full Code Here

        if (clob instanceof NClob) {
            return wrap(stmt, (NClob) clob);
        }

        return new ClobProxyImpl(dataSource, stmt.getConnectionProxy(), clob);
    }
View Full Code Here

        dataSource.getProxyFilters().add(new FilterAdapter() {

            @Override
            public Object resultSet_getObject(FilterChain chain, ResultSetProxy result, int columnIndex)
                                                                                                      throws SQLException {
                return new ClobProxyImpl(result.getStatementProxy().getConnectionProxy().getDirectDataSource(),
                                         result.getStatementProxy().getConnectionProxy(), new MockClob());
            }

            @Override
            public Object resultSet_getObject(FilterChain chain, ResultSetProxy result, String columnLabel)
                                                                                                         throws SQLException {
                return new ClobProxyImpl(result.getStatementProxy().getConnectionProxy().getDirectDataSource(),
                                         result.getStatementProxy().getConnectionProxy(), new MockClob());
            }

            @Override
            public Object resultSet_getObject(FilterChain chain, ResultSetProxy result, int columnIndex,
                                              java.util.Map<String, Class<?>> map) throws SQLException {
                return new ClobProxyImpl(result.getStatementProxy().getConnectionProxy().getDirectDataSource(),
                                         result.getStatementProxy().getConnectionProxy(), new MockClob());
            }

            @Override
            public Object resultSet_getObject(FilterChain chain, ResultSetProxy result, String columnIndex,
                                              java.util.Map<String, Class<?>> map) throws SQLException {
                return new ClobProxyImpl(result.getStatementProxy().getConnectionProxy().getDirectDataSource(),
                                         result.getStatementProxy().getConnectionProxy(), new MockClob());
            }
        });
        dataSource.init();
    }
View Full Code Here

        dataSource.getProxyFilters().add(new FilterAdapter() {

            @Override
            public Clob resultSet_getClob(FilterChain chain, ResultSetProxy result, int columnIndex)
                                                                                                    throws SQLException {
                return new ClobProxyImpl(result.getStatementProxy().getConnectionProxy().getDirectDataSource(),
                                         result.getStatementProxy().getConnectionProxy(), new MockClob());
            }

            @Override
            public Clob resultSet_getClob(FilterChain chain, ResultSetProxy result, String columnLabel)
                                                                                                       throws SQLException {
                return new ClobProxyImpl(result.getStatementProxy().getConnectionProxy().getDirectDataSource(),
                                         result.getStatementProxy().getConnectionProxy(), new MockClob());
            }
        });
        dataSource.init();
    }
View Full Code Here

        if (clob instanceof NClob) {
            return wrap(conn, (NClob) clob);
        }
       
        return new ClobProxyImpl(dataSource, conn, clob);
    }
View Full Code Here

        if (clob instanceof NClob) {
            return wrap(stmt, (NClob) clob);
        }

        return new ClobProxyImpl(dataSource, stmt.getConnectionProxy(), clob);
    }
View Full Code Here

TOP

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

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.