Code example for Connection

Methods: getAutoCommitrollback

0
    } 
  } 
 
  public static void rollback(Connection connection) {
    try { 
      if (connection != null && !connection.getAutoCommit()) {
        connection.rollback();
      } 
    } catch (SQLException e) {
      writeMessage(e, "rollback()");
    } 
  } 
 
  public static void setAutoCommit(Connection connection) {
    try { 
      if (connection != null && !connection.getAutoCommit()) {
        connection.setAutoCommit(true);
      } 
    } catch (SQLException e) {
      writeMessage(e, "settAutoCommit()");