Class SDOFragmentMappingAttributeAccessor

  • All Implemented Interfaces:
    Serializable, Cloneable, org.eclipse.persistence.core.mappings.CoreAttributeAccessor

    public class SDOFragmentMappingAttributeAccessor
    extends org.eclipse.persistence.mappings.AttributeAccessor

    Purpose: A wrapper class for handling cases when the domain object attributes are to be accessed thru the accessor methods that are called "get" and "set". This is to be used when marsalling/unmarshalling SDODataObjects. The propertyName is the name of the property on the DataObject and that must be set on this accessor.

    See Also:
    Serialized Form
    • Constructor Detail

      • SDOFragmentMappingAttributeAccessor

        public SDOFragmentMappingAttributeAccessor​(SDOProperty property,
                                                   HelperContext helper)
    • Method Detail

      • getAttributeValueFromObject

        public Object getAttributeValueFromObject​(Object anObject)
                                           throws org.eclipse.persistence.exceptions.DescriptorException
        Gets the value of an instance variable in the object.
        Specified by:
        getAttributeValueFromObject in interface org.eclipse.persistence.core.mappings.CoreAttributeAccessor
        Specified by:
        getAttributeValueFromObject in class org.eclipse.persistence.mappings.AttributeAccessor
        Throws:
        org.eclipse.persistence.exceptions.DescriptorException
      • initializeAttributes

        public void initializeAttributes​(Class<?> theJavaClass)
                                  throws org.eclipse.persistence.exceptions.DescriptorException
        Set get and set method after creating these methods by using get and set method names
        Specified by:
        initializeAttributes in interface org.eclipse.persistence.core.mappings.CoreAttributeAccessor
        Overrides:
        initializeAttributes in class org.eclipse.persistence.mappings.AttributeAccessor
        Throws:
        org.eclipse.persistence.exceptions.DescriptorException
      • isMethodAttributeAccessor

        public boolean isMethodAttributeAccessor()
        INTERNAL:
        Specified by:
        isMethodAttributeAccessor in interface org.eclipse.persistence.core.mappings.CoreAttributeAccessor
        Overrides:
        isMethodAttributeAccessor in class org.eclipse.persistence.mappings.AttributeAccessor
      • setAttributeValueInObject

        public void setAttributeValueInObject​(Object domainObject,
                                              Object attributeValue)
                                       throws org.eclipse.persistence.exceptions.DescriptorException
        Sets the value of the instance variable in the object to the value.
        Specified by:
        setAttributeValueInObject in interface org.eclipse.persistence.core.mappings.CoreAttributeAccessor
        Specified by:
        setAttributeValueInObject in class org.eclipse.persistence.mappings.AttributeAccessor
        Throws:
        org.eclipse.persistence.exceptions.DescriptorException
      • setProperty

        public void setProperty​(SDOProperty property)
        INTERNAL:
      • getPropertyName

        public SDOProperty getPropertyName()
        INTERNAL: