public ControlWrapper (ControlImple impl) { _control = null; _controlImpl = impl; _checkedLocality = true; _theUid = impl.get_uid(); }
public ControlWrapper (ControlImple impl) { _control = null; _controlImpl = impl; _checkedLocality = true; _theUid = impl.get_uid(); }
public String toString () { return "ControlImple < " + get_uid() + " >"; }
public String toString () { return "ControlImple < " + get_uid() + " >"; }
public ControlWrapper (Control c, ControlImple impl) { _control = c; _controlImpl = impl; _checkedLocality = (impl != null); _theUid = ((impl == null) ? Uid.nullUid() : impl.get_uid()); }
protected boolean removeControl () { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ControlImple::removeControl ()"); } try { synchronized (ControlImple.allControls) { ControlImple.allControls.remove(get_uid()); } } catch (Exception ex) { return false; } return true; }
public ControlWrapper (Control c, ControlImple impl) { _control = c; _controlImpl = impl; _checkedLocality = (impl != null); _theUid = ((impl == null) ? Uid.nullUid() : impl.get_uid()); }
/** * Transaction needs to call these methods to enable garbage collection to * occur. * * Note, we assume that one ContorlImple per transaction is maintained per address * space, so that overwriting a previously added ControlImple for the same tx is * not possible. */ protected boolean addControl () { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ControlImple::addControl ()"); } try { synchronized (ControlImple.allControls) { ControlImple.allControls.put(get_uid(), this); } } catch (Exception ex) { return false; } return true; }
protected boolean removeControl () { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PROTECTED, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ControlImple::removeControl ()"); } try { synchronized (ControlImple.allControls) { ControlImple.allControls.remove(get_uid()); } } catch (Exception ex) { return false; } return true; }
/** * Transaction needs to call these methods to enable garbage collection to * occur. */ protected boolean addControl () { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PROTECTED, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ControlImple::addControl ()"); } try { synchronized (ControlImple.allControls) { ControlImple.allControls.put(get_uid(), this); } } catch (Exception ex) { return false; } return true; }
/** * Determine whether or not we are a local control. Only do this once since * locality is not likely to change! */ public final void determineLocality () { if (!_checkedLocality) { _controlImpl = Helper.localControl(_control); /* * Could be a proxy for a remote control, in which case we say we * are remote. */ if ((_controlImpl != null) && (_controlImpl.getImplHandle() == null)) { _theUid = _controlImpl.get_uid(); _controlImpl = null; } _checkedLocality = true; } }
/** * Determine whether or not we are a local control. Only do this once since * locality is not likely to change! */ public final void determineLocality () { if (!_checkedLocality) { _controlImpl = Helper.localControl(_control); /* * Could be a proxy for a remote control, in which case we say we * are remote. */ if ((_controlImpl != null) && (_controlImpl.getImplHandle() == null)) { _theUid = _controlImpl.get_uid(); _controlImpl = null; } _checkedLocality = true; } }
ids[i] = Utility.uidToOtid(cont.get_uid().stringForm()); i++;
public final Xid get_xid (boolean branch) throws SystemException { ControlImple controlImple = _theAction.getImple(); if (controlImple != null) { return XidUtils.getXid(controlImple.get_uid(), branch); } else { return XidUtils.getXid(_theAction.getControl(), branch); } } }
public final Xid get_xid (boolean branch) throws SystemException { ControlImple controlImple = _theAction.getImple(); if (controlImple != null) { return XidUtils.getXid(controlImple.get_uid(), branch); } else { return XidUtils.getXid(_theAction.getControl(), branch); } } }
u = ((ControlImple) cont).get_uid();
u = ((ControlImple) cont).get_uid();
ids[i] = Utility.uidToOtid(cont.get_uid().stringForm()); i++;