jrun.ejb
Class EntityInstance
jrun.ejb.Instance
|
+--jrun.ejb.EntityInstance
- All Implemented Interfaces:
- java.io.Serializable
- public class EntityInstance
- extends Instance
An EntityInstance extends Instance by configuring for the allowed
operations of an entity bean and for providing a
javax.tranasction.Synchronization object for managing store operations
according to the container's commit option.
- Author:
- Paul Reilly, PS Neville
- See Also:
- Serialized Form
| Methods inherited from class jrun.ejb.Instance |
afterBegin, afterCompletion, beforeCompletion, getCurrentMethod, getEnterpriseBean, getID, getInstanceContext, getOperation, getOperations, getPrincipal, getTransactionType, isHomeMethod, isInUse, isLocked, lock, setCurrentMethod, setEnterpriseBean, setHomeMethod, setID, setInstanceContext, setInUse, setOperation, setOperations, setPrincipal, unlock, unsetOperation |
EntityInstance
public EntityInstance(java.lang.Class beanClass)
clear
public void clear()
- This method extends super.clear() by also clearing out the
image of the persistent fields.
- Overrides:
clear in class Instance
getEJBInvocation
public EJBInvocation getEJBInvocation()
hasImageChanged
public boolean hasImageChanged()
- This method compares the image of the persistent fields taken
at the beginning on the transaction with the current image. If
the image has changed, true is returned.
isCached
public boolean isCached()
isDirty
public boolean isDirty()
- This method will allow customers to query the current dirty
status.
setCached
public void setCached(boolean isCached)
setDirty
public void setDirty(boolean isDirty)
- This method will allow customers to set the current dirty
status in those cases where the shallow image checking isn't
enough.
setEJBInvocation
public void setEJBInvocation(EJBInvocation ejbInvocation)
setFoundLocally
public void setFoundLocally(boolean foundLocally)
updateImage
public void updateImage()
wasFoundLocally
public boolean wasFoundLocally()
Copyright � 2002 Macromedia Corporation. All Rights Reserved.