Package com.arjuna.ats.jta.xa

Examples of com.arjuna.ats.jta.xa.XidImple


  public final Xid getTxId ()
  {
      Xid res = baseXid();
     
      if (res == null)
          res = new XidImple(_theTransaction, false);
     
      return res;
  }
View Full Code Here


    Xid xid = baseXid();

    if (xid != null)
      return xid;

    xid = new XidImple(_theTransaction, branch);

    if (theModifier != null)
    {
      try
      {
View Full Code Here

    return optimize;
  }

  public static final String getXANodeName (Xid xid)
  {
        XidImple xidImple;
        if(xid instanceof XidImple) {
            xidImple = (XidImple)xid;
        } else {
            xidImple = new XidImple(xid);
        }
        return xidImple.getNodeName();
  }
View Full Code Here

    if (_transactionStore == null)
    {
      _transactionStore = TxControl.getStore();
    }

    XidImple theXid = new XidImple(xid);
    Uid u = theXid.getTransactionUid();

    if (!u.equals(Uid.nullUid()))
    {
      try
      {
View Full Code Here

        long currentTime = System.currentTimeMillis();

        // record the new information:
        if(trans != null) {
            for(Xid xid : trans) {
                XidImple xidImple = new XidImple(xid);
                if(!_whenFirstSeen.containsKey(xidImple)) {
                    _whenFirstSeen.put(xidImple, currentTime);
                }
                _whenLastSeen.put(xidImple, currentTime);
            }
View Full Code Here

  }
    }

    public boolean contains (Xid xid)
    {
        XidImple xidImple = new XidImple(xid);

        return _whenFirstSeen.containsKey(xidImple);
    }
View Full Code Here

    if (_transactionStore == null)
    {
      _transactionStore = TxControl.getStore();
    }

    XidImple theXid = new XidImple(xid);
    Uid u = com.arjuna.ats.internal.arjuna.utils.XATxConverter
        .getUid(theXid.getXID());

    if (!u.equals(Uid.nullUid()))
    {
      try
      {
View Full Code Here

    Xid xid = baseXid();

    if (xid != null)
      return xid;

    xid = new XidImple(_theTransaction, branch);

    if (theModifier != null)
    {
      try
      {
View Full Code Here

/* 1120 */     if (_transactionStore == null)
/*      */     {
/* 1122 */       _transactionStore = TxControl.getStore();
/*      */     }
/*      */
/* 1125 */     XidImple theXid = new XidImple(xid);
/* 1126 */     Uid u = XATxConverter.getUid(theXid.getXID());
/*      */
/* 1129 */     if (!u.equals(Uid.nullUid()))
/*      */     {
/*      */       try
/*      */       {
View Full Code Here

    * {@inheritDoc}
    */
   @Override
   public Xid createXid()
   {
      return new XidImple();
   }
View Full Code Here

TOP

Related Classes of com.arjuna.ats.jta.xa.XidImple

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.