public class LobMetadata 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
  • Constructor Details

    • LobMetadata

      public LobMetadata()
      INTERNAL: Used for XML loading.
    • LobMetadata

      public LobMetadata(MetadataAnnotation lob, MetadataAccessor accessor)
      INTERNAL: Used for annotation loading.
  • Method Details

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL:
      Overrides:
      equals in class MetadataConverter
    • hashCode

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

      public static boolean isValidBlobType(MetadataClass cls)
      INTERNAL: Returns true if the given class is a valid blob type.
    • isValidClobType

      public static boolean isValidClobType(MetadataClass cls)
      INTERNAL: Returns true if the given class is a valid clob type.
    • isValidLobType

      public static boolean isValidLobType(MetadataClass cls)
      INTERNAL: Returns true if the given class is a valid lob type.
    • process

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