com.caucho.ejb.session
Class StatelessHome

java.lang.Object
  extended by com.caucho.ejb.AbstractEJBHome
      extended by com.caucho.ejb.session.StatelessHome
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, EJBHome, EJBLocalHome

public abstract class StatelessHome
extends AbstractEJBHome
implements EJBHome, EJBLocalHome, java.io.Serializable

Abstract base class for a SessionHome.

See Also:
Serialized Form

Field Summary
protected  StatelessServer _server
           
protected static java.util.logging.Logger log
           
 
Constructor Summary
protected StatelessHome(StatelessServer server)
           
 
Method Summary
 AbstractServer __caucho_getServer()
          Returns the owning server.
 EJBMetaData getEJBMetaData()
          Returns the EJB's meta data.
 EJBObject getEJBObject()
          Returns null, since the ejb object isn't available to the home.
 Handle getHandle()
          Returns the handle for the home bean.
 HomeHandle getHomeHandle()
          Returns the home handle for the home bean.
 java.lang.Object getPrimaryKey()
          Returns null, since primary key isn't available to the home.
 StatelessServer getServer()
          Returns the owning server.
 StatelessServer getStatelessServer()
          Returns the owning server.
 void remove(Handle handle)
          Remove the object specified by the handle.
 void remove(java.lang.Object primaryKey)
          Remove the object specified by the primary key.
 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
 

Field Detail

log

protected static final java.util.logging.Logger log

_server

protected final StatelessServer _server
Constructor Detail

StatelessHome

protected StatelessHome(StatelessServer server)
Method Detail

getStatelessServer

public StatelessServer getStatelessServer()
Returns the owning server.


getServer

public StatelessServer getServer()
Returns the owning server.


__caucho_getServer

public AbstractServer __caucho_getServer()
Returns the owning server.

Specified by:
__caucho_getServer in class AbstractEJBHome

getEJBMetaData

public EJBMetaData getEJBMetaData()
Returns the EJB's meta data.

Specified by:
getEJBMetaData in interface EJBHome

getHomeHandle

public HomeHandle getHomeHandle()
Returns the home handle for the home bean.

Specified by:
getHomeHandle in interface EJBHome

getHandle

public Handle getHandle()
Returns the handle for the home bean.


getPrimaryKey

public java.lang.Object getPrimaryKey()
Returns null, since primary key isn't available to the home.


getEJBObject

public EJBObject getEJBObject()
Returns null, since the ejb object isn't available to the home.


remove

public void remove(Handle handle)
            throws RemoveException
Remove the object specified by the handle.

Specified by:
remove in interface EJBHome
Throws:
RemoveException

remove

public void remove(java.lang.Object primaryKey)
            throws RemoveException
Remove the object specified by the primary key.

Specified by:
remove in interface EJBHome
Specified by:
remove in interface EJBLocalHome
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