|
||||||||||
| 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
au.gov.tas.dpiwe.mr.bean.DebugBean
public abstract class DebugBean
All the methods herein (except containerChanged(), getBeanObject(), throwEJBException() and simpleValidate()) must be provided to implement an entity bean.
Debugging implementations are provided by this class- they write to standard output on a client, or call logOnServer() in a server context.
| Field Summary | |
|---|---|
protected Container |
container
The container associated with this bean. |
protected EntityContext |
context
The entity context associated with this bean. |
protected Class |
type
The type of this bean. |
protected BeanWrapper |
wrapper
For a cloned bean, contains a reference to the bean wrapper. |
| Constructor Summary | |
|---|---|
DebugBean()
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. |
void |
unsetEntityContext()
Callback issued when a bean is removed from a container. |
| Methods inherited from class au.gov.tas.dpiwe.mr.bean.NullBean |
|---|
throwEJBException |
| 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
protected Class type
| Constructor Detail |
|---|
public DebugBean()
| Method Detail |
|---|
public void ejbActivate()
throws RemoteException
ejbActivate in interface EntityBeanejbActivate in class NullBeanRemoteException - never.
public void ejbPassivate()
throws RemoteException
ejbPassivate in interface EntityBeanejbPassivate in class NullBeanRemoteException - never.public void ejbLoad()
ejbLoad in interface EntityBeanejbLoad in class NullBeanpublic void ejbStore()
ejbStore in interface EntityBeanejbStore in class NullBeanpublic void ejbRemove()
ejbRemove in interface EntityBeanejbRemove in class NullBeanpublic void setEntityContext(EntityContext context)
setEntityContext in interface EntityBeansetEntityContext in class NullBeancontext - provides access to the bean's environment.public void unsetEntityContext()
unsetEntityContext in interface EntityBeanunsetEntityContext in class NullBeanpublic void containerChanged(ContainerChangeEvent event)
containerChanged in interface ContainerChangeListenercontainerChanged in class NullBeanevent - the event which describes the new container.public BeanWrapper getBeanObject()
getBeanObject in interface WrappedBeangetBeanObject in class NullBean
public void simpleValidate()
throws ValidateException
simpleValidate in interface SimpleValidatorsimpleValidate in class NullBeanValidateException - if the data in this bean is
invalid under these checks.
public Object clone()
throws CloneNotSupportedException
clone in class NullBeanCloneNotSupportedException - 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 | |||||||||