Class UUIDMetadata


  • public class UUIDMetadata
    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 4.0
    Author:
    Radek Felcman
    • Constructor Detail

      • UUIDMetadata

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

      • hashCode

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

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

        public void process​(org.eclipse.persistence.mappings.DatabaseMapping mapping,
                            MappingAccessor accessor,
                            MetadataClass referenceClass,
                            boolean isForMapKey)
        INTERNAL: Every converter needs to be able to process themselves.
        Specified by:
        process in class MetadataConverter