Class CustomAccessorAttributeAccessor

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

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

    Purpose: Provides a wrapper around an instance of Accessor. Makes reflective calls to the nested accessor's get and set methods. The nested accessor can come from either the internal or public package.

    Since:
    EclipseLink 2.4
    Author:
    mmacivor
    See Also:
    Serialized Form
    • Constructor Detail

      • CustomAccessorAttributeAccessor

        public CustomAccessorAttributeAccessor​(Object accessor)
    • Method Detail

      • getAttributeValueFromObject

        public Object getAttributeValueFromObject​(Object object)
                                           throws org.eclipse.persistence.exceptions.DescriptorException
        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
      • setAttributeValueInObject

        public void setAttributeValueInObject​(Object object,
                                              Object value)
                                       throws org.eclipse.persistence.exceptions.DescriptorException
        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