public boolean _is_equivalent(org.omg.CORBA.Object other) { return object._is_equivalent( other ) ; }
/** * Return true if the two object references refer to the same * remote object. */ @Override public boolean isIdentical(Remote obj1, Remote obj2) { if (obj1 instanceof org.omg.CORBA.Object && obj2 instanceof org.omg.CORBA.Object) { org.omg.CORBA.Object corbaObj1 = (org.omg.CORBA.Object)obj1; org.omg.CORBA.Object corbaObj2 = (org.omg.CORBA.Object)obj2; return corbaObj1._is_equivalent(corbaObj2); } else { return false; } }
public boolean equals(Object obj) { boolean result = (obj == this); //Most efficient if ((result == false) && (obj != null)) { //Do elaborate checks if (obj instanceof RemoteBusinessWrapperBase) { RemoteBusinessWrapperBase remoteBWB = (RemoteBusinessWrapperBase) obj; boolean hasSameBusinessInterface = (remoteBWB.hashCode_ == hashCode_) && remoteBWB.businessInterface_.equals(businessInterface_); if (hasSameBusinessInterface) { org.omg.CORBA.Object other = (org.omg.CORBA.Object) remoteBWB.stub_; org.omg.CORBA.Object me = (org.omg.CORBA.Object) stub_; result = me._is_equivalent(other); } } } return result; }
public boolean equals(Object obj) { boolean result = (obj == this); //Most efficient if ((result == false) && (obj != null)) { //Do elaborate checks if (obj instanceof RemoteBusinessWrapperBase) { RemoteBusinessWrapperBase remoteBWB = (RemoteBusinessWrapperBase) obj; boolean hasSameBusinessInterface = (remoteBWB.hashCode_ == hashCode_) && remoteBWB.businessInterface_.equals(businessInterface_); if (hasSameBusinessInterface) { org.omg.CORBA.Object other = (org.omg.CORBA.Object) remoteBWB.stub_; org.omg.CORBA.Object me = (org.omg.CORBA.Object) stub_; result = me._is_equivalent(other); } } } return result; }
public TransactionImpl(String controlIOR) throws ConfigurationException, TransactionException { TransactionImpl curr = current(); timeout = -1; try { AtmiBrokerEnvXML client = new AtmiBrokerEnvXML(); Properties properties = client.getProperties(); orbManagement = OrbManagement.getInstance(properties); } catch (org.omg.CORBA.UserException cue) { throw new TransactionException(cue.getMessage(), cue); } org.omg.CORBA.Object obj = orbManagement.getOrb().string_to_object(controlIOR); if (curr != null) { log.debug("current() != null comparing IORs"); String pIOR = curr.getControlIOR(); org.omg.CORBA.Object pObj = orbManagement.getOrb().string_to_object(pIOR); log.debug("pIOR=" + pIOR + " pObj=" + pObj); if (pObj != null && pObj._is_equivalent(obj)) { log.debug("Different IORs same object"); ThreadActionData.popAction(); } else { log.info("Different IORs and different object"); throw new TransactionException("Nested transactions are not supported"); } } control = org.omg.CosTransactions.ControlHelper.narrow(obj); ThreadActionData.pushAction(this); setTerminator(control); }
else return ((org.omg.CORBA.Object) v1) ._is_equivalent((org.omg.CORBA.Object) v2); && v2 instanceof org.omg.CORBA.Object) { return ((org.omg.CORBA.Object) v1) ._is_equivalent((org.omg.CORBA.Object) v2); } else {
return extract_Object()._is_equivalent(any.extract_Object()); if (value_ instanceof org.omg.CORBA.Object && any.value_ instanceof org.omg.CORBA.Object) { return extract_Object()._is_equivalent(any.extract_Object()); } else if (value_ instanceof InputStream && any.value_ instanceof InputStream) {