Search in sources :

Example 56 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) throws SQLException {
    updateCount = null;
    lastExecuteSql = sql;
    lastExecuteType = StatementExecuteType.Execute;
    lastExecuteStartNano = -1L;
    lastExecuteTimeNano = -1L;
    FilterChainImpl chain = createChain();
    firstResultSet = chain.statement_execute(this, sql);
    recycleFilterChain(chain);
    return firstResultSet;
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Example 57 with FilterChainImpl

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

the class StatementProxyImpl method cancel.

@Override
public void cancel() throws SQLException {
    FilterChainImpl chain = createChain();
    chain.statement_cancel(this);
    recycleFilterChain(chain);
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Example 58 with FilterChainImpl

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

the class StatementProxyImpl method getUpdateCount.

// bug fixed for oracle
@Override
public int getUpdateCount() throws SQLException {
    if (updateCount == null) {
        FilterChainImpl chain = createChain();
        updateCount = chain.statement_getUpdateCount(this);
        recycleFilterChain(chain);
    }
    return updateCount;
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Example 59 with FilterChainImpl

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

the class StatementProxyImpl method setMaxRows.

@Override
public void setMaxRows(int max) throws SQLException {
    FilterChainImpl chain = createChain();
    chain.statement_setMaxRows(this, max);
    recycleFilterChain(chain);
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Example 60 with FilterChainImpl

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

the class StatementProxyImpl method getMoreResults.

@Override
public boolean getMoreResults() throws SQLException {
    FilterChainImpl chain = createChain();
    boolean value = chain.statement_getMoreResults(this);
    updateCount = null;
    recycleFilterChain(chain);
    return value;
}
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