@ Override public void setAutoCommit ( boolean autoCommit ) throws SQLException { checkClosed ( ) ; // Always true - error out only if the client is trying to set somethign else if ( ! autoCommit && ( props . getProperty ( COMMIT_THROW_EXCEPTION , "true" ) . equalsIgnoreCase ( "true" ) ) ) { throw SQLError . noSupport ( ) ; } else { this . autoCommit = autoCommit ; } }
Sets this connection s auto - commit mode to the given state .