MCPcopy Create free account
hub / github.com/diyhi/bbs / commitConnection

Method commitConnection

src/main/java/cms/utils/SqlScriptRunner.java:195–206  ·  view source on GitHub ↗

提交连接

()

Source from the content-addressed store, hash-verified

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 */

Callers 2

executeFullScriptMethod · 0.95
executeLineByLineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected