|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.centrasite.appl.framework.persistence.impl.BackedDynamicRegistryBeanHandler
public class BackedDynamicRegistryBeanHandler
InvocationHandler
implementation for backed with
RegistryObject
proxies implementing the BackedBeanInfo
interface.
Constructor Summary | |
---|---|
BackedDynamicRegistryBeanHandler(PersistenceContext context,
DynamicRegistryBean bean,
BackedBeanMapper<DynamicRegistryBean> beanMapper)
|
Method Summary | |
---|---|
DynamicRegistryBean |
getBean()
Returns the registry bean. |
Key |
getKey()
Returns the objects key. |
java.util.Set<javax.xml.registry.infomodel.RegistryObject> |
getModifiedObjects()
Retrieves all modified RegistryObject including the primary backed object. |
PersistenceContext |
getPersistenceContext()
Returns the pool, which created this bean. |
java.util.Set<PropertyMapper> |
getPropertiesToMap()
Retrieves the PropertyMapper instances that need to be invoked by
the BeanMapper working on this proxy. |
javax.xml.registry.infomodel.RegistryObject |
getRegistryObject()
Retrieves the backed RegistryObject |
java.lang.Object |
invoke(java.lang.Object pProxy,
java.lang.reflect.Method pMethod,
java.lang.Object[] pArgs)
Handle the bean methods: - getters: ensure the bean is populated from the RO - setters: ensure the RO is populated from the bean - non-getter/setter: simply pass through to bean - "system" methods : simply pass through to this object |
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 bean)
Sets the registry bean. |
void |
setCreated(boolean created)
Sets, whether the object is created or retrieved from the registry. |
void |
setDeleted(boolean deleted)
Sets, whether the object is marked as deleted. |
void |
setModified(boolean modified)
Sets, whether the object is modified. |
void |
setRegistryObject(javax.xml.registry.infomodel.RegistryObject ro)
Sets the backed RegistryObject |
void |
toBean()
Forces all property values to be loaded from the underlying registry object. |
void |
toJaxr()
Forces all property values to be updated into the underlying registry object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackedDynamicRegistryBeanHandler(PersistenceContext context, DynamicRegistryBean bean, BackedBeanMapper<DynamicRegistryBean> beanMapper)
context
- bean
- beanMapper
- Method Detail |
---|
public 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 javax.xml.registry.infomodel.RegistryObject getRegistryObject()
RegistryObject
getRegistryObject
in interface BackedBeanInfo
RegistryObject
public void setRegistryObject(javax.xml.registry.infomodel.RegistryObject ro)
BackedBeanInfo
RegistryObject
setRegistryObject
in interface BackedBeanInfo
public void toBean() throws MappingException, javax.xml.registry.JAXRException
BackedBeanInfo
toBean
in interface BackedBeanInfo
MappingException
javax.xml.registry.JAXRException
public void toJaxr() throws MappingException, javax.xml.registry.JAXRException
BackedBeanInfo
toJaxr
in interface BackedBeanInfo
MappingException
javax.xml.registry.JAXRException
public java.util.Set<javax.xml.registry.infomodel.RegistryObject> getModifiedObjects()
RegistryObject
including the primary backed object.
getModifiedObjects
in interface BackedBeanInfo
Set
public java.util.Set<PropertyMapper> getPropertiesToMap()
BackedBeanInfo
PropertyMapper
instances that need to be invoked by
the BeanMapper
working on this proxy. This is a workaround for
handing modifications on collection properties. It is expected that the
implementation for this method will return the property mappers for all
collection properties that have been retrieved and possibly modified.
getPropertiesToMap
in interface BackedBeanInfo
Set
public boolean isModified()
BeanInfo
isModified
in interface BeanInfo
public DynamicRegistryBean getBean()
BeanInfo
getBean
in interface BeanInfo
public Key getKey()
BeanInfo
getKey
in interface BeanInfo
public PersistenceContext getPersistenceContext()
BeanInfo
getPersistenceContext
in interface BeanInfo
public boolean isCreated()
BeanInfo
isCreated
in interface BeanInfo
public boolean isDeleted()
BeanInfo
isDeleted
in interface BeanInfo
public void setBean(DynamicRegistryBean bean)
BeanInfo
setBean
in interface BeanInfo
public void setDeleted(boolean deleted)
BeanInfo
setDeleted
in interface BeanInfo
public void setModified(boolean modified)
BeanInfo
setModified
in interface BeanInfo
public void setCreated(boolean created)
BeanInfo
setCreated
in interface BeanInfo
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |