MCPcopy Create free account
hub / github.com/dianping/cat / statement_executeQuery

Method statement_executeQuery

integration/druid/DruidCatFilter.java:144–164  ·  view source on GitHub ↗
(FilterChain chain, StatementProxy statement, String sql)

Source from the content-addressed store, hash-verified

142 }
143
144 @Override
145 public ResultSetProxy statement_executeQuery(FilterChain chain, StatementProxy statement, String sql)
146 throws SQLException {
147 Transaction transaction = Cat.newTransaction(CatConstants.TYPE_SQL, url);
148 Cat.logEvent("SQL.DbType", dbType);
149 Cat.logEvent("SQL.Database", url);
150 Cat.logEvent("SQL.sql", sql);
151 ResultSetProxy result;
152 try {
153 result = super.statement_executeQuery(chain, statement, sql);
154 transaction.setStatus(Message.SUCCESS);
155 } catch (SQLException e) {
156 Cat.logError(e);
157 transaction.setStatus(e);
158 throw e;
159 } finally {
160 transaction.complete();
161 }
162
163 return result;
164 }
165
166 @Override
167 public int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql) throws SQLException {

Callers

nothing calls this directly

Calls 5

newTransactionMethod · 0.95
logEventMethod · 0.95
logErrorMethod · 0.95
completeMethod · 0.95
setStatusMethod · 0.65

Tested by

no test coverage detected