|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.gov.tas.dpiwe.mr.bean.NullBean
public abstract class NullBean
All the methods herein (except containerChanged(), getBeanObject(), throwEJBException() and simpleValidate()) must be provided to implement an entity bean.
However, most container-managed local entity beans won't care about the events these callbacks represent, so null implementations will probably suffice and are provided in this class as a convenience.
| Field Summary | |
|---|---|
protected Container |
container
The container associated with this bean. |
protected EntityContext |
context
The entity context associated with this bean. |
protected BeanWrapper |
wrapper
For a cloned bean, contains a reference to the bean wrapper. |
| Constructor Summary | |
|---|---|
NullBean()
All entity beans must provide a public no-argument constructor. |
|
| Method Summary | |
|---|---|
Object |
clone()
Produces a shallow copy of this bean. |
void |
containerChanged(ContainerChangeEvent event)
Event handler called when the ownership of this bean has changed from ClientContainer to ServerContainer or vice versa. |
void |
ejbActivate()
Callback issued upon resurrecting a serialized bean. |
void |
ejbLoad()
Callback issued prior to refreshing a bean with its persistent storage. |
void |
ejbPassivate()
Callback issued prior to serializing a bean. |
void |
ejbRemove()
Callback issued prior to removing a bean from persistent storage. |
void |
ejbStore()
Callback issued prior to committing a bean to persistent storage. |
BeanWrapper |
getBeanObject()
Internal method to determine the bean wrapper associated with this entity bean. |
void |
setEntityContext(EntityContext context)
Callback issued when a bean is placed in a container. |
void |
simpleValidate()
Makes simple data validity checks for this bean based on the MetaData associated with the home. |
protected Object |
throwEJBException(String message)
Utility method to throw an EJB exception with the specified detail message. |
void |
unsetEntityContext()
Callback issued when a bean is removed from a container. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient EntityContext context
protected transient Container container
protected transient BeanWrapper wrapper
| Constructor Detail |
|---|
public NullBean()
| Method Detail |
|---|
public void ejbActivate()
throws RemoteException
ejbActivate in interface EntityBeanRemoteException - never.
public void ejbPassivate()
throws RemoteException
ejbPassivate in interface EntityBeanRemoteException - never.public void ejbLoad()
ejbLoad in interface EntityBeanpublic void ejbStore()
ejbStore in interface EntityBeanpublic void ejbRemove()
ejbRemove in interface EntityBean
protected Object throwEJBException(String message)
throws EJBException
message - the detail of what caused the exception.
EJBException - always.public void setEntityContext(EntityContext context)
setEntityContext in interface EntityBeancontext - provides access to the bean's environment.public void unsetEntityContext()
unsetEntityContext in interface EntityBeanpublic void containerChanged(ContainerChangeEvent event)
containerChanged in interface ContainerChangeListenerevent - the event which describes the new container.public BeanWrapper getBeanObject()
getBeanObject in interface WrappedBean
public void simpleValidate()
throws ValidateException
simpleValidate in interface SimpleValidatorValidateException - if the data in this bean is
invalid under these checks.
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - if this bean
does not allow itself to be cloned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||