public static String getHierarchy (PropagationContext ctx) { int depth = ((ctx.parents != null) ? ctx.parents.length : 0); String hier = "PropagationContext:"; for (int i = depth -1; i >= 0; i--) { if (ctx.parents[i] != null) hier += "\n"+Utility.otidToUid(ctx.parents[i].otid); } hier += "\n"+Utility.otidToUid(ctx.current.otid); return hier; }
public static String getHierarchy (PropagationContext ctx) { int depth = ((ctx.parents != null) ? ctx.parents.length : 0); String hier = "PropagationContext:"; for (int i = depth -1; i >= 0; i--) { if (ctx.parents[i] != null) hier += "\n"+Utility.otidToUid(ctx.parents[i].otid); } hier += "\n"+Utility.otidToUid(ctx.current.otid); return hier; }
public void setOtid(otid_t o) { _otid = o; _hashCode = Utility.otidToUid(_otid).hashCode(); }
public void setOtid(otid_t o) { _otid = o; _hashCode = Utility.otidToUid(_otid).hashCode(); }
/** * @return the status of a transaction when all we have is its unique name. * The transaction must be in the local list. * @since JTS 2.1.2. */ public org.omg.CosTransactions.Status getCurrentStatus (otid_t txid) throws SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.otiderror")); else return getCurrentStatus(u); }
/** * @return information on a specific transaction. * @since JTS 2.1.2. */ public TransactionInfo getTransactionInfo (otid_t txid) throws org.omg.CosTransactions.NoTransaction, SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.otiderror")); else return getTransactionInfo(u); }
/** * @return the transaction Control. * @since JTS 2.1.2. */ public org.omg.CosTransactions.Control getTransaction (otid_t txid) throws org.omg.CosTransactions.NoTransaction, SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.otiderror")); else return getTransaction(u); }
/** * @return the status of a transaction when all we have is its unique name. * If the transaction is not in the local list then we look in the * ObjectStore. * @since JTS 2.1.2. */ public org.omg.CosTransactions.Status getStatus (otid_t txid) throws NoTransaction, SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.otiderror")); else return getStatus(u); }
public synchronized ControlImple setupHierarchy (PropagationContext context) throws SystemException { ControlImple controlPtr = null; Uid theUid = null; ServerTopLevelAction proxyAction = null; if (context.parents.length == 0) theUid = Utility.otidToUid(context.current.otid); else theUid = Utility .otidToUid(context.parents[context.parents.length - 1].otid); proxyAction = super.present(theUid); if (proxyAction == null) { /* * Create a new proxyAction element and return the "current" * transaction. */ controlPtr = createHierarchy(context, theUid); } else { /* * Check hierarchy of existing element. */ controlPtr = checkHierarchy(proxyAction, context); } return controlPtr; }
/** * @return information on a specific transaction. * @since JTS 2.1.2. */ public TransactionInfo getTransactionInfo (otid_t txid) throws org.omg.CosTransactions.NoTransaction, SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.i18NLogger.get_orbspecific_otiderror()); else return getTransactionInfo(u); }
/** * @return the status of a transaction when all we have is its unique name. * If the transaction is not in the local list then we look in the * ObjectStore. * @since JTS 2.1.2. */ public org.omg.CosTransactions.Status getStatus (otid_t txid) throws NoTransaction, SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.i18NLogger.get_orbspecific_otiderror()); else return getStatus(u); }
/** * @return the status of a transaction when all we have is its unique name. * The transaction must be in the local list. * @since JTS 2.1.2. */ public org.omg.CosTransactions.Status getCurrentStatus (otid_t txid) throws SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.i18NLogger.get_orbspecific_otiderror()); else return getCurrentStatus(u); }
/** * @return the transaction Control. * @since JTS 2.1.2. */ public org.omg.CosTransactions.Control getTransaction (otid_t txid) throws org.omg.CosTransactions.NoTransaction, SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.i18NLogger.get_orbspecific_otiderror()); else return getTransaction(u); }
throws Inactive, NoTransaction, SystemException Uid u = Utility.otidToUid(parent); org.omg.CosTransactions.otid_t[] ctx = null;
tmpTerm = ctx.parents[i].term; control = ServerFactory.create_subtransaction(Utility.otidToUid(ctx.parents[i].otid), tmpCoord, tmpTerm, control); tmpTerm = ctx.current.term; control = ServerFactory.create_subtransaction(Utility.otidToUid(ctx.current.otid), tmpCoord, tmpTerm, control); nestedAction = new ServerRestrictedNestedAction(control);
throws Inactive, NoTransaction, SystemException Uid u = Utility.otidToUid(parent); org.omg.CosTransactions.otid_t[] ctx = null;