Class CustomAccessorAttributeAccessor

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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
    • Field Summary

      • Fields inherited from class org.eclipse.persistence.mappings.AttributeAccessor

        attributeName, isReadOnly, isWriteOnly
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getAttributeValueFromObject​(java.lang.Object object)  
      void setAttributeValueInObject​(java.lang.Object object, java.lang.Object value)  
      • Methods inherited from class org.eclipse.persistence.mappings.AttributeAccessor

        clone, getAttributeClass, getAttributeName, initializeAttributes, isInitialized, isInstanceVariableAttributeAccessor, isMapValueAttributeAccessor, isMethodAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnly
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomAccessorAttributeAccessor

        public CustomAccessorAttributeAccessor​(java.lang.Object accessor)
    • Method Detail

      • getAttributeValueFromObject

        public java.lang.Object getAttributeValueFromObject​(java.lang.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​(java.lang.Object object,
                                              java.lang.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