com.caucho.ejb.entity
Class EntityHome

java.lang.Object
  extended by com.caucho.ejb.AbstractEJBHome
      extended by com.caucho.ejb.entity.EntityHome
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, EJBHome
Direct Known Subclasses:
EntityLocalHome, EntityRemoteHome

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

Abstract base class for an EntityHome.

See Also:
Serialized Form

Field Summary
protected  EntityServer _server
           
protected static java.util.logging.Logger log
           
 
Constructor Summary
protected EntityHome(EntityServer server)
           
 
Method Summary
 java.lang.String __caucho_getId()
          The home id is null.
 AbstractServer __caucho_getServer()
          Returns the server.
 EJBMetaData getEJBMetaData()
          Returns the EJB's meta data.
 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.
 EntityServer getServer()
          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 EntityServer _server
Constructor Detail

EntityHome

protected EntityHome(EntityServer server)
Method Detail

getServer

public EntityServer getServer()
Returns the owning server.


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

getPrimaryKey

public java.lang.Object getPrimaryKey()
Returns null, since primary key 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
Throws:
RemoveException

__caucho_getServer

public AbstractServer __caucho_getServer()
Returns the server.

Specified by:
__caucho_getServer in class AbstractEJBHome

__caucho_getId

public java.lang.String __caucho_getId()
The home id is null.


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