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

Method statement_executeBatch

integration/druid/DruidCatFilter.java:123–142  ·  view source on GitHub ↗
(FilterChain chain, StatementProxy statement)

Source from the content-addressed store, hash-verified

121 }
122
123 @Override
124 public int[] statement_executeBatch(FilterChain chain, StatementProxy statement) throws SQLException {
125 Transaction transaction = Cat.newTransaction(CatConstants.TYPE_SQL, url);
126 Cat.logEvent("SQL.DbType", dbType);
127 Cat.logEvent("SQL.Database", url);
128 Cat.logEvent("SQL.sql", statement.getBatchSql());
129 int[] result;
130 try {
131 result = super.statement_executeBatch(chain, statement);
132 transaction.setStatus(Message.SUCCESS);
133 } catch (SQLException e) {
134 Cat.logError(e);
135 transaction.setStatus(e);
136 throw e;
137 } finally {
138 transaction.complete();
139 }
140
141 return result;
142 }
143
144 @Override
145 public ResultSetProxy statement_executeQuery(FilterChain chain, StatementProxy statement, String sql)

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