public class RelationshipAttributePropertyMapper
extends java.lang.Object
Relationship
property. Extends AssociationMapper
by
adding attribute specific processing like adding special slot to the mapped associations.Constructor and Description |
---|
RelationshipAttributePropertyMapper() |
Modifier and Type | Method and Description |
---|---|
RegistryBean |
getBean()
Get the bean.
|
Property |
getProperty()
Get the property.
|
void |
init(RegistryBean theBean,
Property theProperty)
Initializes the mapper.
|
void |
toBean(PersistenceContext context,
RegistryObject ro)
Maps data from
RegistryObject to a bean. |
java.util.List<RegistryObject> |
toJaxr(PersistenceContext context,
RegistryObject ro)
Map property data from a bean to a
RegistryObject . |
public void init(RegistryBean theBean, Property theProperty) throws MappingException
PropertyMapper
init
in interface PropertyMapper
theBean
- The RegistryBean
objecttheProperty
- The Property
objectMappingException
- If an error occurs while initializing the mapperpublic void toBean(PersistenceContext context, RegistryObject ro) throws JAXRException, MappingException
PropertyMapper
RegistryObject
to a bean.context
- The PersistenceContext
instancero
- The JAXR RegistryObject
JAXRException
- If a JAXR error occurs while accessing the registry objectMappingException
- If an error occurs while mapping the JAXR object to a beanpublic java.util.List<RegistryObject> toJaxr(PersistenceContext context, RegistryObject ro) throws JAXRException, MappingException
PropertyMapper
RegistryObject
.context
- The PersistenceContext
objectro
- The RegistryObject
which should be mapped to the beanList
of RegistryObject
objects that have been modified.JAXRException
- If a JAXR error occurs while trying to modify the registry objectsMappingException
- If an error occurs while mapping property data from bean to JAXR registrypublic RegistryBean getBean() throws MappingException
PropertyMapper
getBean
in interface PropertyMapper
RegistryBean
bean objectMappingException
- If an error occurs while trying to access the bean objectpublic Property getProperty() throws MappingException
PropertyMapper
getProperty
in interface PropertyMapper
Property
objectMappingException
- If an error occurs while trying to obtain the property instance