code: public void updateXIDToCommitted(PersistentTranId xid) 
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateXIDToCommitted", "XID="+xid);
  
          if (_deferredException == null)
          {
              // We are committing a transaction. The transaction can
              // be either one-phase or two-phase so we need to check 
              // our state and then update it so that commit is called 
              // at executeBatch() time.
              if (_state == STATE_ACTIVE || _state == STATE_PREPARED)
              {
                  _state = STATE_COMMITTING;
              }
              else
              {
                  _deferredException = new PersistenceException("Cannot COMMIT batch as it not in the correct state! State="+_stateToString[_state]);
              }
          }
          else
          {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc, "No work attempted as an exception has already been thrown during this batch!");
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "updateXIDToCommitted");
      }
docs: In the OM implementation this method is used to flag the batching
  context so that upon the next call to executeBatch the OM transaction
  being used is committed.
  
  @param xid