Protomatter Classes v1.1.6

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 Classes v1.1.6
Copyright 1998-2001 Nate Sammons

Protomatter Classes v1.1.6 http://protomatter.sourceforge.net/1.1.6