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;
}
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);
}
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;
}
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);
}
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;
}
Aggregations