Class SDOMethodAttributeAccessor

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, CoreAttributeAccessor

    public class SDOMethodAttributeAccessor
    extends org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor

    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 marshalling/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

      • SDOMethodAttributeAccessor

        public SDOMethodAttributeAccessor​(commonj.sdo.Property property)
      • SDOMethodAttributeAccessor

        public SDOMethodAttributeAccessor​(commonj.sdo.Property property,
                                          java.lang.Class attributeClass)
    • Method Detail

      • getAttributeClass

        public java.lang.Class getAttributeClass()
        Return the return type of the method accessor.
        Specified by:
        getAttributeClass in interface CoreAttributeAccessor
        Overrides:
        getAttributeClass in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
      • initializeAttributes

        public void initializeAttributes​(java.lang.Class theJavaClass)
                                  throws DescriptorException
        Set get and set method after creating these methods by using get and set method names
        Specified by:
        initializeAttributes in interface CoreAttributeAccessor
        Overrides:
        initializeAttributes in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
        Throws:
        DescriptorException
      • isMethodAttributeAccessor

        public boolean isMethodAttributeAccessor()
        INTERNAL:
        Specified by:
        isMethodAttributeAccessor in interface CoreAttributeAccessor
        Overrides:
        isMethodAttributeAccessor in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
      • setAttributeValueInObject

        public void setAttributeValueInObject​(java.lang.Object domainObject,
                                              java.lang.Object attributeValue)
                                       throws DescriptorException
        Sets the value of the instance variable in the object to the value.
        Specified by:
        setAttributeValueInObject in interface CoreAttributeAccessor
        Overrides:
        setAttributeValueInObject in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
        Throws:
        DescriptorException
      • setProperty

        public void setProperty​(commonj.sdo.Property property)
        INTERNAL:
      • getProperty

        public commonj.sdo.Property getProperty()
        INTERNAL:
      • getGetMethodReturnType

        public java.lang.Class getGetMethodReturnType()
        Description copied from class: org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
        INTERNAL: Return the GetMethod return type for this MethodAttributeAccessor. A special check is made to determine if a missing method is a result of failed weaving.
        Overrides:
        getGetMethodReturnType in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor
        Returns:
      • getSetMethodParameterType

        public java.lang.Class getSetMethodParameterType()
        Overrides:
        getSetMethodParameterType in class org.eclipse.persistence.internal.descriptors.MethodAttributeAccessor