Class AccessMethodsMetadata


  • public class AccessMethodsMetadata
    extends ORMetadata
    INTERNAL: Metadata for user specified property access methods and also used with VIRTUAL access types. When specified in XML the set and get method names are required. For VIRTUAL access defaults we use the defaults "get" and "set" if no access methods are specified. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - when loading from annotations, the constructor accepts the metadata accessor this metadata was loaded from. Used it to look up any 'companion' annotation needed for processing. - methods should be preserved in alphabetical order.
    Since:
    EclipseLink 1.0M8
    Author:
    Chris Delahunt
    • Constructor Detail

      • AccessMethodsMetadata

        public AccessMethodsMetadata()
        INTERNAL: Used for XML loading.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        INTERNAL:
        Specified by:
        equals in class ORMetadata
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getGetMethodName

        public java.lang.String getGetMethodName()
        INTERNAL: Used for OX mapping.
      • getSetMethodName

        public java.lang.String getSetMethodName()
        INTERNAL: Used for OX mapping.
      • setGetMethodName

        public void setGetMethodName​(java.lang.String getMethodName)
        INTERNAL: Used for OX mapping.
      • setSetMethodName

        public void setSetMethodName​(java.lang.String setMethodName)
        INTERNAL: Used for OX mapping.
      • toString

        public java.lang.String toString()
        INTERNAL: Used for validation exception message string and debugging.
        Overrides:
        toString in class java.lang.Object