public void setAutoCommit(boolean b) { if (autoCommit == b) { return; } if (!getAutoCommit()) { commit(); } autoCommit = b; }
break; case CommandInterface.COMMIT: session.commit(); break; case CommandInterface.ROLLBACK:
session.begin(); } else if (stmt instanceof MySqlCommitStatement) { session.commit(); } else if (stmt instanceof SQLRollbackStatement) { SQLRollbackStatement s = (SQLRollbackStatement) stmt;