Package com.alibaba.druid.filter

Examples of com.alibaba.druid.filter.FilterChain


        return multiConnection;
    }
   
    @Override
    public boolean execute() throws SQLException {
        FilterChain chain = createChain();
       
        if (chain.getFilterSize() == 0) {
            firstResultSet = this.statement.execute();
        } else {
            firstResultSet = chain.preparedStatement_execute(this);   
        }
       
        return firstResultSet;
    }
View Full Code Here


        return firstResultSet;
    }

    @Override
    public ResultSet executeQuery() throws SQLException {
        FilterChain chain = createChain();
       
        if (chain.getFilterSize() == 0) {
            return this.statement.executeQuery();
        }
       
        return chain.preparedStatement_executeQuery(this);
    }
View Full Code Here

        return chain.preparedStatement_executeQuery(this);
    }

    @Override
    public int executeUpdate() throws SQLException {
        FilterChain chain = createChain();
       
        if (chain.getFilterSize() == 0) {
            return this.statement.executeUpdate();
        }
       
        return chain.preparedStatement_executeUpdate(this);
    }
View Full Code Here

        if (userCallback != null) {
            String user = userCallback.getName();
            info.put("user", user);
        }

        FilterChain chain = new FilterChainImpl(this);
        return chain.connection_connect(info);
    }
View Full Code Here

        return chain.preparedStatement_executeQuery(this);
    }

    @Override
    public int executeUpdate() throws SQLException {
        FilterChain chain = createChain();
       
        if (chain.getFilterSize() == 0) {
            return this.statement.executeUpdate();
        }
       
        return chain.preparedStatement_executeUpdate(this);
    }
View Full Code Here

        return multiConnection;
    }
   
    @Override
    public boolean execute() throws SQLException {
        FilterChain chain = createChain();
       
        if (chain.getFilterSize() == 0) {
            return this.statement.execute();
        }
       
        firstResultSet = chain.preparedStatement_execute(this);
        return firstResultSet;
    }
View Full Code Here

        return firstResultSet;
    }

    @Override
    public ResultSet executeQuery() throws SQLException {
        FilterChain chain = createChain();
       
        if (chain.getFilterSize() == 0) {
            return this.statement.executeQuery();
        }
       
        return chain.preparedStatement_executeQuery(this);
    }
View Full Code Here

        if (userCallback != null) {
            String user = userCallback.getName();
            info.put("user", user);
        }

        FilterChain chain = new FilterChainImpl(this);
        return chain.connection_connect(info);
    }
View Full Code Here

        Assert.assertNull(StatFilter.getStatFilter(dataSource));
        Assert.assertNull(dataSourceStat.getSqlStat(Integer.MAX_VALUE));
        Assert.assertNull(dataSourceStat.getConnectionStat().getConnectLastTime());

        FilterChain chain = new FilterChainImpl(dataSource) {

            public ConnectionProxy connection_connect(Properties info) throws SQLException {
                throw new SQLException();
            }
        };
View Full Code Here

        ConnectionProxyImpl connection = (ConnectionProxyImpl) driver.connect(url, new Properties());

        connection.getRawObject();

        FilterChain filterChain = (FilterChain) connection.createChain();
        filterChain.cloneChain();

        DataSourceProxyImpl dataSource = (DataSourceProxyImpl) connection.getDirectDataSource();
        dataSource.getId();
        Assert.assertEquals(4, dataSource.getProxyFilters().size());
        Assert.assertEquals(4, dataSource.getFilterClasses().length);
View Full Code Here

TOP

Related Classes of com.alibaba.druid.filter.FilterChain

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.