java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.mappings.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
  • Constructor Details

    • AccessMethodsMetadata

      public AccessMethodsMetadata(MetadataAnnotation virtualAccessMethods, MetadataAccessor accessor)
    • AccessMethodsMetadata

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

    • clone

      public AccessMethodsMetadata clone()
      INTERNAL:
      Overrides:
      clone in class Object
    • equals

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

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

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

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

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

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

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