Java JDBC Collection Transaction commit(Connection conn)

Here you can find the source of commit(Connection conn)

Description

commit

License

Open Source License

Declaration

public static void commit(Connection conn) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.sql.Connection;

import java.sql.SQLException;

public class Main {
    public static void commit(Connection conn) {
        if (conn != null) {
            try {
                conn.close();//ww w  . ja  va2 s. co  m
            } catch (SQLException e) {
                e.printStackTrace();
            }
        }
    }

    public static void close(Connection conn) {
        if (conn != null) {
            try {
                conn.close();
            } catch (SQLException e) {
                e.printStackTrace();
            }
        }
    }
}

Related

  1. commit(Connection conn)
  2. commit(Connection conn)
  3. commit(Connection conn)
  4. commit(Connection conn)
  5. commit(Connection connection)
  6. commitAndClose(Connection conn)
  7. commitAndClose(Connection conn)
  8. commitAndClose(Connection connection)