Search in sources :

Example 61 with FilterChainImpl

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

the class StatementProxyImpl method execute.

@Override
public boolean execute(String sql, int[] columnIndexes) throws SQLException {
    updateCount = null;
    lastExecuteSql = sql;
    lastExecuteType = StatementExecuteType.Execute;
    lastExecuteStartNano = -1L;
    lastExecuteTimeNano = -1L;
    FilterChainImpl chain = createChain();
    firstResultSet = chain.statement_execute(this, sql, columnIndexes);
    recycleFilterChain(chain);
    return firstResultSet;
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Example 62 with FilterChainImpl

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

the class ResultSetProxyImpl method updateByte.

@Override
public void updateByte(String columnLabel, byte x) throws SQLException {
    FilterChainImpl chain = createChain();
    chain.resultSet_updateByte(this, columnLabel, x);
    recycleFilterChain(chain);
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Example 63 with FilterChainImpl

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

the class ResultSetProxyImpl method updateBinaryStream.

@Override
public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {
    FilterChainImpl chain = createChain();
    chain.resultSet_updateBinaryStream(this, columnIndex, x, length);
    recycleFilterChain(chain);
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Example 64 with FilterChainImpl

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

the class ResultSetProxyImpl method updateAsciiStream.

@Override
public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException {
    FilterChainImpl chain = createChain();
    chain.resultSet_updateAsciiStream(this, columnLabel, x, length);
    recycleFilterChain(chain);
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Example 65 with FilterChainImpl

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

the class ResultSetProxyImpl method getCharacterStream.

@Override
public Reader getCharacterStream(String columnLabel) throws SQLException {
    FilterChainImpl chain = createChain();
    Reader value = chain.resultSet_getCharacterStream(this, columnLabel);
    recycleFilterChain(chain);
    return value;
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl) Reader(java.io.Reader)

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