Search in sources :

Example 11 with FilterChainImpl

use of com.alibaba.druid.filter.FilterChainImpl in project druid by alibaba.

the class ConnectionProxyImpl method prepareCall.

@Override
public CallableStatement prepareCall(String sql) throws SQLException {
    FilterChainImpl chain = createChain();
    CallableStatement stmt = chain.connection_prepareCall(this, sql);
    recycleFilterChain(chain);
    return stmt;
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl) CallableStatement(java.sql.CallableStatement)

Example 12 with FilterChainImpl

use of com.alibaba.druid.filter.FilterChainImpl in project druid by alibaba.

the class ConnectionProxyImpl method prepareStatement.

@Override
public PreparedStatement prepareStatement(String sql) throws SQLException {
    FilterChainImpl chain = createChain();
    PreparedStatement stmt = chain.connection_prepareStatement(this, sql);
    recycleFilterChain(chain);
    return stmt;
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl) PreparedStatement(java.sql.PreparedStatement)

Example 13 with FilterChainImpl

use of com.alibaba.druid.filter.FilterChainImpl in project druid by alibaba.

the class ConnectionProxyImpl method getMetaData.

@Override
public DatabaseMetaData getMetaData() throws SQLException {
    FilterChainImpl chain = createChain();
    DatabaseMetaData value = chain.connection_getMetaData(this);
    recycleFilterChain(chain);
    return value;
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl) DatabaseMetaData(java.sql.DatabaseMetaData)

Example 14 with FilterChainImpl

use of com.alibaba.druid.filter.FilterChainImpl in project druid by alibaba.

the class ConnectionProxyImpl method rollback.

@Override
public void rollback(Savepoint savepoint) throws SQLException {
    FilterChainImpl chain = createChain();
    chain.connection_rollback(this, savepoint);
    recycleFilterChain(chain);
    if (transactionInfo != null) {
        transactionInfo.setEndTimeMillis();
    }
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Example 15 with FilterChainImpl

use of com.alibaba.druid.filter.FilterChainImpl in project druid by alibaba.

the class ConnectionProxyImpl method setReadOnly.

@Override
public void setReadOnly(boolean readOnly) throws SQLException {
    FilterChainImpl chain = createChain();
    chain.connection_setReadOnly(this, readOnly);
    recycleFilterChain(chain);
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Aggregations

FilterChainImpl (com.alibaba.druid.filter.FilterChainImpl)326 Clob (java.sql.Clob)27 ResultSetProxyImpl (com.alibaba.druid.proxy.jdbc.ResultSetProxyImpl)18 MockNClob (com.alibaba.druid.mock.MockNClob)14 MockClob (com.alibaba.druid.mock.MockClob)12 ClobProxy (com.alibaba.druid.proxy.jdbc.ClobProxy)12 NClobProxy (com.alibaba.druid.proxy.jdbc.NClobProxy)12 ResultSet (java.sql.ResultSet)11 MockResultSet (com.alibaba.druid.mock.MockResultSet)9 ResultSetProxy (com.alibaba.druid.proxy.jdbc.ResultSetProxy)9 NClob (java.sql.NClob)8 InputStream (java.io.InputStream)6 PreparedStatement (java.sql.PreparedStatement)6 Reader (java.io.Reader)4 CallableStatement (java.sql.CallableStatement)4 Connection (java.sql.Connection)4 Date (java.sql.Date)4 Timestamp (java.sql.Timestamp)4 Properties (java.util.Properties)4 FilterChain (com.alibaba.druid.filter.FilterChain)3