Class EnumeratedMetadata


  • public class EnumeratedMetadata
    extends MetadataConverter
    INTERNAL: Abstract converter class that parents both the JPA and Eclipselink converters. 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.2
    Author:
    Guy Pelletier
    • Constructor Detail

      • EnumeratedMetadata

        public EnumeratedMetadata()
        INTERNAL: Used for defaulting case.
      • EnumeratedMetadata

        public EnumeratedMetadata​(MetadataAccessor accessor)
        INTERNAL: Used for defaulting.
    • Method Detail

      • hashCode

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

        public String getEnumeratedType()
        INTERNAL: Used for OX mapping.
      • isValidEnumeratedType

        public static boolean isValidEnumeratedType​(MetadataClass cls)
        INTERNAL: Return true if the given class is a valid enum type.
      • setEnumeratedType

        public void setEnumeratedType​(String enumerated)
        INTERNAL: Used for OX mapping.