code: public synchronized boolean getAutoCommit() throws SQLException {
  
          checkClosed();
  
          try {
              return sessionProxy.isAutoCommit();
          } catch (HsqlException e) {
              throw Util.sqlException(e);
          }
      }
docs: Retrieves the current auto-commit mode for this <code>Connection</code>
  object.
  
  @return the current state of this <code>Connection</code> object's
  auto-commit mode
  @exception SQLException if a database access error occurs
  (JDBC4 Clarification:)
  or this method is called on a closed connection
  @see #setAutoCommit