Protomatter Software v1.1.7

com.protomatter.j2ee.ejb
Class ProtoEntityEJB

java.lang.Object
  |
  +--com.protomatter.j2ee.ejb.ProtoEJB
        |
        +--com.protomatter.j2ee.ejb.ProtoEntityEJB
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable, SyslogChannelAware

public abstract class ProtoEntityEJB
extends ProtoEJB
implements javax.ejb.EntityBean

Entity EJB base class.

See Also:
Serialized Form

Fields inherited from class com.protomatter.j2ee.ejb.ProtoEJB
COMP_ENV_CHANNEL_LIST
 
Constructor Summary
ProtoEntityEJB()
          Default constructor.
 
Method Summary
 void ejbActivate()
          EJB activation callback.
 void ejbPassivate()
          EJB passivation callback.
protected  javax.ejb.EntityContext getEntityContext()
          Get the entity context.
protected  java.lang.Object getPrimaryKey()
          Get the current primary key.
 void setEntityContext(javax.ejb.EntityContext context)
          Set the entity context.
 void unsetEntityContext()
          Unset the entity context.
 
Methods inherited from class com.protomatter.j2ee.ejb.ProtoEJB
close, close, close, getComponentContext, getSyslogChannel, initSyslogChannelList, setChannelList, setChannelList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.EntityBean
ejbLoad, ejbRemove, ejbStore
 

Constructor Detail

ProtoEntityEJB

public ProtoEntityEJB()
Default constructor.
Method Detail

setEntityContext

public void setEntityContext(javax.ejb.EntityContext context)
Set the entity context. Also calls initSyslogChannelList() to read the channel list from the deployment information.
Specified by:
setEntityContext in interface javax.ejb.EntityBean

unsetEntityContext

public void unsetEntityContext()
Unset the entity context.
Specified by:
unsetEntityContext in interface javax.ejb.EntityBean

getEntityContext

protected javax.ejb.EntityContext getEntityContext()
Get the entity context.

getPrimaryKey

protected java.lang.Object getPrimaryKey()
Get the current primary key. Returns null if the entity context is not currently set.

ejbActivate

public void ejbActivate()
EJB activation callback. This implementation does nothing.
Specified by:
ejbActivate in interface javax.ejb.EntityBean

ejbPassivate

public void ejbPassivate()
EJB passivation callback. This implementation does nothing.
Specified by:
ejbPassivate in interface javax.ejb.EntityBean

Protomatter Software v1.1.7
Copyright 1998-2002 Nate Sammons

Protomatter Software v1.1.7 http://protomatter.sourceforge.net/1.1.7