java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.nosql.NoSqlMetadata

public class NoSqlMetadata extends ORMetadata
Defines the metadata for the @EIS annotation for mapping an EISDescriptor. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - any metadata mapped from XML to this class must be initialized in the initXMLObject 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 2.4
  • Constructor Details

    • NoSqlMetadata

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

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

    • getDataFormat

      public String getDataFormat()
      INTERNAL: Used for OX mapping.
    • getDataType

      public String getDataType()
      INTERNAL: Used for OX mapping.
    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL: Used for XML merging.
      Specified by:
      equals in class ORMetadata
    • hashCode

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

      public void process(MetadataDescriptor descriptor)
      INTERNAL: Switch the descriptor to the correct type and set the data-type name and format.
    • setDataFormat

      public void setDataFormat(String dataFormat)
      INTERNAL: Used for OX mapping.
    • setDataType

      public void setDataType(String dataType)
      INTERNAL: Used for OX mapping.