com.caucho.ejb.session
Class StatefulObject

java.lang.Object
  extended by com.caucho.ejb.AbstractEJBObject
      extended by com.caucho.ejb.session.StatefulObject
All Implemented Interfaces:
java.io.Serializable

public abstract class StatefulObject
extends AbstractEJBObject
implements java.io.Serializable

Abstract base class for a stateful session object

See Also:
Serialized Form

Constructor Summary
StatefulObject()
           
 
Method Summary
 java.lang.String __caucho_getId()
          Returns the URL for the given protocol.
 AbstractServer __caucho_getServer()
          Returns the server which owns this bean.
 EJBHome getEJBHome()
          Returns the EJBHome
 EJBLocalHome getEJBLocalHome()
          Returns the EJBLocalHome
 Handle getHandle()
          Returns the handle.
 java.lang.Object getPrimaryKey()
          Returns the primary key
 AbstractServer getServer()
          Returns the server.
abstract  StatefulServer getStatefulServer()
           
 boolean isIdentical(EJBLocalObject obj)
          Returns true if the two objects are identical.
 boolean isIdentical(EJBObject obj)
          Returns true if the two objects are identical.
 void remove()
           
 java.lang.Object writeReplace()
          Serialize the HomeSkeletonWrapper in place of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatefulObject

public StatefulObject()
Method Detail

getServer

public AbstractServer getServer()
Returns the server.


__caucho_getServer

public AbstractServer __caucho_getServer()
Returns the server which owns this bean.

Specified by:
__caucho_getServer in class AbstractEJBObject

getStatefulServer

public abstract StatefulServer getStatefulServer()

__caucho_getId

public java.lang.String __caucho_getId()
Description copied from class: AbstractEJBObject
Returns the URL for the given protocol.

Specified by:
__caucho_getId in class AbstractEJBObject

getPrimaryKey

public java.lang.Object getPrimaryKey()
Returns the primary key


getEJBHome

public EJBHome getEJBHome()
Returns the EJBHome


getEJBLocalHome

public EJBLocalHome getEJBLocalHome()
Returns the EJBLocalHome


getHandle

public Handle getHandle()
Returns the handle.


isIdentical

public boolean isIdentical(EJBObject obj)
                    throws java.rmi.RemoteException
Returns true if the two objects are identical.

Throws:
java.rmi.RemoteException

isIdentical

public boolean isIdentical(EJBLocalObject obj)
Returns true if the two objects are identical.


remove

public void remove()
            throws RemoveException
Throws:
RemoveException

writeReplace

public java.lang.Object writeReplace()
                              throws java.io.ObjectStreamException
Serialize the HomeSkeletonWrapper in place of this object.

Returns:
the matching skeleton wrapper.
Throws:
java.io.ObjectStreamException