javax.rmi.CORBA
Class Stub

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by org.omg.CORBA.portable.ObjectImpl sample code for org.omg.CORBA.portable.ObjectImpl definition code for org.omg.CORBA.portable.ObjectImpl 
      extended by org.omg.CORBA_2_3.portable.ObjectImpl sample code for org.omg.CORBA_2_3.portable.ObjectImpl definition code for org.omg.CORBA_2_3.portable.ObjectImpl 
          extended by javax.rmi.CORBA.Stub
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object
Direct Known Subclasses:
_Remote_Stub sample code for org.omg.stub.java.rmi._Remote_Stub definition code for org.omg.stub.java.rmi._Remote_Stub

public abstract class Stub
extends ObjectImpl sample code for org.omg.CORBA_2_3.portable.ObjectImpl definition code for org.omg.CORBA_2_3.portable.ObjectImpl
implements Serializable sample code for java.io.Serializable definition code for java.io.Serializable

Base class from which all RMI-IIOP stubs must inherit.

See Also:
Serialized Form

Constructor Summary
Stub sample code for javax.rmi.CORBA.Stub.Stub() definition code for javax.rmi.CORBA.Stub.Stub() ()
           
 
Method Summary
 void connect sample code for javax.rmi.CORBA.Stub.connect(org.omg.CORBA.ORB) definition code for javax.rmi.CORBA.Stub.connect(org.omg.CORBA.ORB) (ORB sample code for org.omg.CORBA.ORB definition code for org.omg.CORBA.ORB  orb)
          Connects this stub to an ORB.
 boolean equals sample code for javax.rmi.CORBA.Stub.equals(java.lang.Object) definition code for javax.rmi.CORBA.Stub.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  obj)
          Compares two stubs for equality.
 int hashCode sample code for javax.rmi.CORBA.Stub.hashCode() definition code for javax.rmi.CORBA.Stub.hashCode() ()
          Returns a hash code value for the object which is the same for all stubs that represent the same remote object.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.rmi.CORBA.Stub.toString() definition code for javax.rmi.CORBA.Stub.toString() ()
          Returns a string representation of this stub.
 
Methods inherited from class org.omg.CORBA_2_3.portable.ObjectImpl sample code for org.omg.CORBA_2_3.portable.ObjectImpl definition code for org.omg.CORBA_2_3.portable.ObjectImpl
_get_codebase sample code for org.omg.CORBA_2_3.portable.ObjectImpl._get_codebase() definition code for org.omg.CORBA_2_3.portable.ObjectImpl._get_codebase()
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl sample code for org.omg.CORBA.portable.ObjectImpl definition code for org.omg.CORBA.portable.ObjectImpl
_create_request sample code for org.omg.CORBA.portable.ObjectImpl._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue) definition code for org.omg.CORBA.portable.ObjectImpl._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue) , _create_request sample code for org.omg.CORBA.portable.ObjectImpl._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList) definition code for org.omg.CORBA.portable.ObjectImpl._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList) , _duplicate sample code for org.omg.CORBA.portable.ObjectImpl._duplicate() definition code for org.omg.CORBA.portable.ObjectImpl._duplicate() , _get_delegate sample code for org.omg.CORBA.portable.ObjectImpl._get_delegate() definition code for org.omg.CORBA.portable.ObjectImpl._get_delegate() , _get_domain_managers sample code for org.omg.CORBA.portable.ObjectImpl._get_domain_managers() definition code for org.omg.CORBA.portable.ObjectImpl._get_domain_managers() , _get_interface_def sample code for org.omg.CORBA.portable.ObjectImpl._get_interface_def() definition code for org.omg.CORBA.portable.ObjectImpl._get_interface_def() , _get_policy sample code for org.omg.CORBA.portable.ObjectImpl._get_policy(int) definition code for org.omg.CORBA.portable.ObjectImpl._get_policy(int) , _hash sample code for org.omg.CORBA.portable.ObjectImpl._hash(int) definition code for org.omg.CORBA.portable.ObjectImpl._hash(int) , _ids sample code for org.omg.CORBA.portable.ObjectImpl._ids() definition code for org.omg.CORBA.portable.ObjectImpl._ids() , _invoke sample code for org.omg.CORBA.portable.ObjectImpl._invoke(org.omg.CORBA.portable.OutputStream) definition code for org.omg.CORBA.portable.ObjectImpl._invoke(org.omg.CORBA.portable.OutputStream) , _is_a sample code for org.omg.CORBA.portable.ObjectImpl._is_a(java.lang.String) definition code for org.omg.CORBA.portable.ObjectImpl._is_a(java.lang.String) , _is_equivalent sample code for org.omg.CORBA.portable.ObjectImpl._is_equivalent(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.ObjectImpl._is_equivalent(org.omg.CORBA.Object) , _is_local sample code for org.omg.CORBA.portable.ObjectImpl._is_local() definition code for org.omg.CORBA.portable.ObjectImpl._is_local() , _non_existent sample code for org.omg.CORBA.portable.ObjectImpl._non_existent() definition code for org.omg.CORBA.portable.ObjectImpl._non_existent() , _orb sample code for org.omg.CORBA.portable.ObjectImpl._orb() definition code for org.omg.CORBA.portable.ObjectImpl._orb() , _release sample code for org.omg.CORBA.portable.ObjectImpl._release() definition code for org.omg.CORBA.portable.ObjectImpl._release() , _releaseReply sample code for org.omg.CORBA.portable.ObjectImpl._releaseReply(org.omg.CORBA.portable.InputStream) definition code for org.omg.CORBA.portable.ObjectImpl._releaseReply(org.omg.CORBA.portable.InputStream) , _request sample code for org.omg.CORBA.portable.ObjectImpl._request(java.lang.String) definition code for org.omg.CORBA.portable.ObjectImpl._request(java.lang.String) , _request sample code for org.omg.CORBA.portable.ObjectImpl._request(java.lang.String, boolean) definition code for org.omg.CORBA.portable.ObjectImpl._request(java.lang.String, boolean) , _servant_postinvoke sample code for org.omg.CORBA.portable.ObjectImpl._servant_postinvoke(org.omg.CORBA.portable.ServantObject) definition code for org.omg.CORBA.portable.ObjectImpl._servant_postinvoke(org.omg.CORBA.portable.ServantObject) , _servant_preinvoke sample code for org.omg.CORBA.portable.ObjectImpl._servant_preinvoke(java.lang.String, java.lang.Class) definition code for org.omg.CORBA.portable.ObjectImpl._servant_preinvoke(java.lang.String, java.lang.Class) , _set_delegate sample code for org.omg.CORBA.portable.ObjectImpl._set_delegate(org.omg.CORBA.portable.Delegate) definition code for org.omg.CORBA.portable.ObjectImpl._set_delegate(org.omg.CORBA.portable.Delegate) , _set_policy_override sample code for org.omg.CORBA.portable.ObjectImpl._set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType) definition code for org.omg.CORBA.portable.ObjectImpl._set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

Stub sample code for javax.rmi.CORBA.Stub() definition code for javax.rmi.CORBA.Stub()

public Stub()
Method Detail

hashCode sample code for javax.rmi.CORBA.Stub.hashCode() definition code for javax.rmi.CORBA.Stub.hashCode()

public int hashCode()
Returns a hash code value for the object which is the same for all stubs that represent the same remote object.

Overrides:
hashCode sample code for org.omg.CORBA.portable.ObjectImpl.hashCode() definition code for org.omg.CORBA.portable.ObjectImpl.hashCode() in class ObjectImpl sample code for org.omg.CORBA.portable.ObjectImpl definition code for org.omg.CORBA.portable.ObjectImpl
Returns:
the hash code value.
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

equals sample code for javax.rmi.CORBA.Stub.equals(java.lang.Object) definition code for javax.rmi.CORBA.Stub.equals(java.lang.Object)

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  obj)
Compares two stubs for equality. Returns true when used to compare stubs that represent the same remote object, and false otherwise.

Overrides:
equals sample code for org.omg.CORBA.portable.ObjectImpl.equals(java.lang.Object) definition code for org.omg.CORBA.portable.ObjectImpl.equals(java.lang.Object) in class ObjectImpl sample code for org.omg.CORBA.portable.ObjectImpl definition code for org.omg.CORBA.portable.ObjectImpl
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

toString sample code for javax.rmi.CORBA.Stub.toString() definition code for javax.rmi.CORBA.Stub.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Returns a string representation of this stub. Returns the same string for all stubs that represent the same remote object.

Overrides:
toString sample code for org.omg.CORBA.portable.ObjectImpl.toString() definition code for org.omg.CORBA.portable.ObjectImpl.toString() in class ObjectImpl sample code for org.omg.CORBA.portable.ObjectImpl definition code for org.omg.CORBA.portable.ObjectImpl
Returns:
a string representation of this stub.

connect sample code for javax.rmi.CORBA.Stub.connect(org.omg.CORBA.ORB) definition code for javax.rmi.CORBA.Stub.connect(org.omg.CORBA.ORB)

public void connect(ORB sample code for org.omg.CORBA.ORB definition code for org.omg.CORBA.ORB  orb)
             throws RemoteException sample code for java.rmi.RemoteException definition code for java.rmi.RemoteException 
Connects this stub to an ORB. Required after the stub is deserialized but not after it is demarshalled by an ORB stream. If an unconnected stub is passed to an ORB stream for marshalling, it is implicitly connected to that ORB. Application code should not call this method directly, but should call the portable wrapper method PortableRemoteObject.connect(java.rmi.Remote, java.rmi.Remote) sample code for javax.rmi.PortableRemoteObject.connect(java.rmi.Remote, java.rmi.Remote) definition code for javax.rmi.PortableRemoteObject.connect(java.rmi.Remote, java.rmi.Remote) .

Parameters:
orb - the ORB to connect to.
Throws:
RemoteException sample code for java.rmi.RemoteException definition code for java.rmi.RemoteException - if the stub is already connected to a different ORB, or if the stub does not represent an exported remote or local object.