com.softwareag.centrasite.appl.framework.persistence.mapper.impl
Class RelationshipAttributePropertyMapper

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.persistence.mapper.impl.RelationshipAttributePropertyMapper
All Implemented Interfaces:
PropertyMapper

public class RelationshipAttributePropertyMapper
extends java.lang.Object

Property mapper class for handling associations defined by the Relationship property. Extends AssociationMapper by adding attribute specific processing like adding special slot to the mapped associations.


Constructor Summary
RelationshipAttributePropertyMapper()
           
 
Method Summary
 RegistryBean getBean()
          Get the bean.
 Property getProperty()
          Get the property.
 void init(RegistryBean theBean, Property theProperty)
          Initializes the mapper.
 void toBean(PersistenceContext context, javax.xml.registry.infomodel.RegistryObject ro)
          Maps data from RegistryObject to a bean.
 java.util.List<javax.xml.registry.infomodel.RegistryObject> toJaxr(PersistenceContext context, javax.xml.registry.infomodel.RegistryObject ro)
          Map property data from a bean to a RegistryObject.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipAttributePropertyMapper

public RelationshipAttributePropertyMapper()
Method Detail

init

public void init(RegistryBean theBean,
                 Property theProperty)
          throws MappingException
Description copied from interface: PropertyMapper
Initializes the mapper.

Specified by:
init in interface PropertyMapper
Throws:
MappingException
See Also:
PropertyMapper.init(RegistryBean, Property)

toBean

public void toBean(PersistenceContext context,
                   javax.xml.registry.infomodel.RegistryObject ro)
            throws javax.xml.registry.JAXRException,
                   MappingException
Description copied from interface: PropertyMapper
Maps data from RegistryObject to a bean.

Throws:
javax.xml.registry.JAXRException
MappingException

toJaxr

public java.util.List<javax.xml.registry.infomodel.RegistryObject> toJaxr(PersistenceContext context,
                                                                          javax.xml.registry.infomodel.RegistryObject ro)
                                                                   throws javax.xml.registry.JAXRException,
                                                                          MappingException
Description copied from interface: PropertyMapper
Map property data from a bean to a RegistryObject.

Returns:
List of RegistryObject objects that have been modified.
Throws:
javax.xml.registry.JAXRException
MappingException

getBean

public RegistryBean getBean()
                     throws MappingException
Description copied from interface: PropertyMapper
Get the bean.

Specified by:
getBean in interface PropertyMapper
Returns:
the bean
Throws:
MappingException
See Also:
PropertyMapper.getBean()

getProperty

public Property getProperty()
                     throws MappingException
Description copied from interface: PropertyMapper
Get the property.

Specified by:
getProperty in interface PropertyMapper
Returns:
the property
Throws:
MappingException
See Also:
PropertyMapper.getProperty()