提交连接
()
| 193 | * 提交连接 |
| 194 | */ |
| 195 | private void commitConnection() { |
| 196 | try { |
| 197 | if (!connection.getAutoCommit()) { |
| 198 | connection.commit(); |
| 199 | } |
| 200 | } catch (Throwable t) { |
| 201 | if (logger.isErrorEnabled()) { |
| 202 | logger.error("提交连接",t); |
| 203 | } |
| 204 | throw new RuntimeException("无法提交事务. 原因: " + t, t); |
| 205 | } |
| 206 | } |
| 207 | /** |
| 208 | * 回滚连接 |
| 209 | */ |
no outgoing calls
no test coverage detected