Constructor and Description |
---|
DynamicRegistryBeanHandler(PersistenceContext pContext,
DynamicRegistryBean pBean)
Constructor to create the
DynamicRegistryBeanHandler instance. |
Modifier and Type | Method and Description |
---|---|
DynamicRegistryBean |
getBean()
Returns the registry bean.
|
PersistenceContext |
getContext()
Gets the persistence context instance.
|
Key |
getKey()
Returns the objects key.
|
PersistenceContext |
getPersistenceContext()
Returns the pool, which created this bean.
|
java.lang.Object |
invoke(java.lang.Object pProxy,
java.lang.reflect.Method pMethod,
java.lang.Object[] pArgs) |
boolean |
isCreated()
Returns, whether this is object has already been created in the registry.
|
boolean |
isDeleted()
Returns, whether the object is marked as deleted.
|
boolean |
isModified()
Returns, whether the object is modified.
|
void |
setBean(DynamicRegistryBean pBean)
Sets the registry bean.
|
void |
setCreated(boolean created)
Sets, whether the object is created or retrieved from the registry.
|
void |
setDeleted(boolean pDeleted)
Sets, whether the object is marked as deleted.
|
void |
setModified(boolean pModified)
Sets, whether the object is modified.
|
public DynamicRegistryBeanHandler(PersistenceContext pContext, DynamicRegistryBean pBean)
DynamicRegistryBeanHandler
instance.pContext
- The PersistenceContext
instancepBean
- The DynamicRegistryBean
objectpublic java.lang.Object invoke(java.lang.Object pProxy, java.lang.reflect.Method pMethod, java.lang.Object[] pArgs) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
public boolean isDeleted()
BeanInfo
public void setDeleted(boolean pDeleted)
BeanInfo
setDeleted
in interface BeanInfo
pDeleted
- If true
the object will be marked as deletedpublic boolean isModified()
BeanInfo
isModified
in interface BeanInfo
true
if the object is modified and false
otherwisepublic void setModified(boolean pModified)
BeanInfo
setModified
in interface BeanInfo
pModified
- If true
the object will be set to modifiedpublic boolean isCreated()
BeanInfo
public PersistenceContext getPersistenceContext()
BeanInfo
getPersistenceContext
in interface BeanInfo
PersistenceContext
instancepublic DynamicRegistryBean getBean()
BeanInfo
getBean
in interface BeanInfo
DynamicRegistryBean
instancepublic void setBean(DynamicRegistryBean pBean)
BeanInfo
setBean
in interface BeanInfo
pBean
- the DynamicRegistryBean
instance to setpublic PersistenceContext getContext()
PersistenceContext
instancepublic void setCreated(boolean created)
BeanInfo
setCreated
in interface BeanInfo
created
- If true
, the object is created in the registry and if false
,
the object has been retrieved from the registry and is already available