Class TemporalMetadata


  • public class TemporalMetadata
    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

      • TemporalMetadata

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

      • hashCode

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

        public String getTemporalType()
        INTERNAL: Used for OX mapping.
      • isValidTemporalType

        public static boolean isValidTemporalType​(MetadataClass cls)
        INTERNAL: Returns true if the given class is a valid temporal type and must be marked temporal.
      • setTemporalType

        public void setTemporalType​(String temporalType)
        INTERNAL: Used for OX mapping.