Class MapValueAttributeAccessor

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

    public class MapValueAttributeAccessor
    extends org.eclipse.persistence.mappings.AttributeAccessor
    AttributeAccessor used in conjunction with an XMLCompositeDirectCollectionMapping or XMLCompositeCollectionMapping to enable support for mapping to Maps in JAXB
    See Also:
    Serialized Form
    • Field Summary

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

        attributeName, isReadOnly, isWriteOnly
    • Constructor Summary

      Constructors 
      Constructor Description
      MapValueAttributeAccessor​(org.eclipse.persistence.core.mappings.CoreAttributeAccessor nestedAccessor, org.eclipse.persistence.internal.core.queries.CoreContainerPolicy cp, java.lang.Class generatedEntryClass, java.lang.String mapClassName, java.lang.ClassLoader classLoader)  
    • Method Summary

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

        clone, getAttributeClass, getAttributeName, 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

      • MapValueAttributeAccessor

        public MapValueAttributeAccessor​(org.eclipse.persistence.core.mappings.CoreAttributeAccessor nestedAccessor,
                                         org.eclipse.persistence.internal.core.queries.CoreContainerPolicy cp,
                                         java.lang.Class generatedEntryClass,
                                         java.lang.String mapClassName,
                                         java.lang.ClassLoader classLoader)
    • 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
      • initializeAttributes

        public void initializeAttributes​(java.lang.Class theJavaClass)
                                  throws org.eclipse.persistence.exceptions.DescriptorException
        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