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

Method statement_execute

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

Source from the content-addressed store, hash-verified

34 }
35
36 @Override
37 public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql) throws SQLException {
38 Transaction transaction = Cat.newTransaction(CatConstants.TYPE_SQL, url);
39 Cat.logEvent("SQL.DbType", dbType);
40 Cat.logEvent("SQL.Database", url);
41 Cat.logEvent("SQL.sql", sql);
42 boolean result;
43 try {
44 result = super.statement_execute(chain, statement, sql);
45 transaction.setStatus(Message.SUCCESS);
46 } catch (SQLException e) {
47 Cat.logError(e);
48 transaction.setStatus(e);
49 throw e;
50 } finally {
51 transaction.complete();
52 }
53
54 return result;
55 }
56
57 @Override
58 public boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys)

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