(FilterChain chain, StatementProxy statement, String sql)
| 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) |
nothing calls this directly
no test coverage detected