com.caucho.ejb.hessian
Class ObjectStub

java.lang.Object
  extended by com.caucho.ejb.hessian.HessianStub
      extended by com.caucho.ejb.hessian.ObjectStub
All Implemented Interfaces:
HessianRemoteObject, java.rmi.Remote, EJBObject

public abstract class ObjectStub
extends HessianStub
implements EJBObject

Base class for generated object stubs.


Field Summary
protected  Handle _handle
           
 
Fields inherited from class com.caucho.ejb.hessian.HessianStub
_client, _resolver, _url, _urlPath
 
Constructor Summary
ObjectStub()
           
 
Method Summary
protected  EJBHome _ejb_getEJBHome()
           
protected  java.lang.Object _ejb_getPrimaryKey()
           
protected  boolean _ejb_isIdentical(EJBObject obj)
           
protected  void _ejb_remove()
           
 EJBHome getEJBHome()
          Returns the EJBHome stub for the remote object.
 Handle getHandle()
          Returns the serializable handle for the remote object
abstract  java.lang.String getHessianType()
           
 java.lang.Object getPrimaryKey()
          For entity beans, returns the primary key
 boolean isIdentical(EJBObject obj)
          Returns true if the test object is identical to this object.
 void remove()
          Remove this object from the server.
 
Methods inherited from class com.caucho.ejb.hessian.HessianStub
_hessian_freeWriter, _hessian_openWriter, _hessian_writeHeaders, getHessianURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_handle

protected transient Handle _handle
Constructor Detail

ObjectStub

public ObjectStub()
Method Detail

getHessianType

public abstract java.lang.String getHessianType()
Specified by:
getHessianType in interface HessianRemoteObject

getHandle

public Handle getHandle()
                 throws java.rmi.RemoteException
Returns the serializable handle for the remote object

Specified by:
getHandle in interface EJBObject
Throws:
java.rmi.RemoteException

getEJBHome

public EJBHome getEJBHome()
                   throws java.rmi.RemoteException
Returns the EJBHome stub for the remote object.

Specified by:
getEJBHome in interface EJBObject
Throws:
java.rmi.RemoteException

isIdentical

public boolean isIdentical(EJBObject obj)
                    throws java.rmi.RemoteException
Returns true if the test object is identical to this object.

Specified by:
isIdentical in interface EJBObject
Parameters:
obj - the object to test for identity
Throws:
java.rmi.RemoteException

remove

public void remove()
            throws java.rmi.RemoteException,
                   RemoveException
Remove this object from the server.

Specified by:
remove in interface EJBObject
Throws:
java.rmi.RemoteException
RemoveException

getPrimaryKey

public java.lang.Object getPrimaryKey()
                               throws java.rmi.RemoteException
For entity beans, returns the primary key

Specified by:
getPrimaryKey in interface EJBObject
Throws:
java.rmi.RemoteException

_ejb_getEJBHome

protected EJBHome _ejb_getEJBHome()
                           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

_ejb_isIdentical

protected boolean _ejb_isIdentical(EJBObject obj)
                            throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

_ejb_remove

protected void _ejb_remove()
                    throws java.rmi.RemoteException,
                           RemoveException
Throws:
java.rmi.RemoteException
RemoveException

_ejb_getPrimaryKey

protected java.lang.Object _ejb_getPrimaryKey()
                                       throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException