java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.sequencing.GeneratedValueMetadata

public class GeneratedValueMetadata extends ORMetadata
Metadata object to hold generated value information. 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:
TopLink EJB 3.0 Reference Implementation
  • Constructor Details

    • GeneratedValueMetadata

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

      public GeneratedValueMetadata(MetadataAnnotation generatedValue, MetadataAccessor accessor)
      INTERNAL: Used annotation loading.
  • Method Details

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL:
      Specified by:
      equals in class ORMetadata
    • hashCode

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

      public String getGenerator()
      INTERNAL: Used for OX mapping.
    • getStrategy

      public String getStrategy()
      INTERNAL: Used for OX mapping.
    • process

      public void process(MetadataDescriptor descriptor, Map<String,Sequence> sequences, DatasourceLogin login)
      INTERNAL:
    • setGenerator

      public void setGenerator(String generator)
      INTERNAL: Used for OX mapping.
    • setStrategy

      public void setStrategy(String strategy)
      INTERNAL: Used for OX mapping.