Here you can find the source of isAutoCommit(Connection con)
Parameter | Description |
---|---|
con | a parameter |
static boolean isAutoCommit(Connection con)
//package com.java2s; //License from project: Apache License import java.sql.Connection; import java.sql.SQLException; public class Main { /**/* www . j a va 2s. co m*/ * Returns true if and only if {@link Connection} is in auto commit mode. * * @param con * @return */ static boolean isAutoCommit(Connection con) { try { return con.getAutoCommit(); } catch (SQLException e) { throw new RuntimeException(e); } } }