Examples of GlobalTransactionId


Examples of org.apache.derby.iapi.store.raw.GlobalTransactionId

  {
        final ContextManager[] cm = new ContextManager[1];

        visitEntries(new EntryVisitor() {
            public boolean visit(TransactionTableEntry entry) {
                GlobalTransactionId entry_gid = entry.getGid();
                if (entry_gid != null && entry_gid.equals(global_id)) {
                    cm[0] = entry.getXact().getContextManager();
                }
                return cm[0] == null; // continue until context is found
            }
        });
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.GlobalTransactionId

        TransactionTableEntry   found_ent   = null;

        if (!trans.isEmpty())
    {
            TransactionId           id          = null;
            GlobalTransactionId     gid         = null;
            TransactionTableEntry   ent;

      for (Iterator it = trans.values().iterator(); it.hasNext(); )
      {
        ent = (TransactionTableEntry) it.next();
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.GlobalTransactionId

                !recovery, "trying to display recovery transaction");
      SanityManager.ASSERT(myxact != null, "my xact is null");
      SanityManager.ASSERT(isClone, "Should only call method on a clone");
    }

    GlobalTransactionId gid = myxact.getGlobalId();
    return (gid == null) ? null : gid.toString();
  }
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.GlobalTransactionId

        TransactionTableEntry   found_ent   = null;

        if (!trans.isEmpty())
    {
            TransactionId           id          = null;
            GlobalTransactionId     gid         = null;
            TransactionTableEntry   ent;

      for (Enumeration e = trans.elements(); e.hasMoreElements(); )
      {
        ent = (TransactionTableEntry)e.nextElement();
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.GlobalTransactionId

                    Xact xact =
                        ((TransactionTableEntry) e.nextElement()).getXact();

                    if (xact.isPrepared())
                    {
                        GlobalTransactionId xa_id = xact.getGlobalId();

                        xid_list[i] =
                            new XAXactId(
                                xa_id.getFormat_Id(),
                                xa_id.getGlobalTransactionId(),
                                xa_id.getBranchQualifier());
                        num_prepared++;
                    }
                }
            }
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.GlobalTransactionId

                TransactionTableEntry entry =
                    (TransactionTableEntry) e.nextElement();

                if (entry != null)
                {
                    GlobalTransactionId entry_gid = entry.getGid();

                    if (entry_gid != null && entry_gid.equals(global_id))
                    {
                        cm = entry.getXact().getContextManager();
                        break;
                    }
                }
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.GlobalTransactionId

        TransactionTableEntry   found_ent   = null;

        if (!trans.isEmpty())
    {
            TransactionId           id          = null;
            GlobalTransactionId     gid         = null;
            TransactionTableEntry   ent;

      for (Enumeration e = trans.elements(); e.hasMoreElements(); )
      {
        ent = (TransactionTableEntry)e.nextElement();
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.GlobalTransactionId

  {
        final ContextManager[] cm = new ContextManager[1];

        visitEntries(new EntryVisitor() {
            public boolean visit(TransactionTableEntry entry) {
                GlobalTransactionId entry_gid = entry.getGid();
                if (entry_gid != null && entry_gid.equals(global_id)) {
                    cm[0] = entry.getXact().getContextManager();
                }
                return cm[0] == null; // continue until context is found
            }
        });
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.GlobalTransactionId

        TransactionTableEntry   found_ent   = null;

        if (!trans.isEmpty())
    {
            TransactionId           id          = null;
            GlobalTransactionId     gid         = null;
            TransactionTableEntry   ent;

      for (Iterator it = trans.values().iterator(); it.hasNext(); )
      {
        ent = (TransactionTableEntry) it.next();
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.GlobalTransactionId

                !recovery, "trying to display recovery transaction");
      SanityManager.ASSERT(myxact != null, "my xact is null");
      SanityManager.ASSERT(isClone, "Should only call method on a clone");
    }

    GlobalTransactionId gid = myxact.getGlobalId();
    return (gid == null) ? null : gid.toString();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.