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

public class SequenceGeneratorMetadata extends ORMetadata
A wrapper class to the MetadataSequenceGenerator that holds onto a @SequenceGenerator for its metadata values. 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

    • SequenceGeneratorMetadata

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

      public SequenceGeneratorMetadata(MetadataAnnotation sequenceGenerator, MetadataAccessor accessor)
      INTERNAL: Used for annotation loading.
    • SequenceGeneratorMetadata

      public SequenceGeneratorMetadata(String sequenceName, Integer allocationSize, String catalog, String schema, boolean useIdentityIfPlatformSupports)
      INTERNAL This constructor is used to create a default sequence generator.
      See Also:
    • SequenceGeneratorMetadata

      public SequenceGeneratorMetadata(String sequenceName, String catalog, String schema)
      INTERNAL This constructor is used to create a default sequence generator.
      See Also:
  • Method Details

    • equals

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

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

      public Integer getAllocationSize()
      INTERNAL: Used for OX mapping.
    • getCatalog

      public String getCatalog()
      INTERNAL: Used for OX mapping.
    • getCatalogContext

      public String getCatalogContext()
      INTERNAL:
    • getIdentifier

      public String getIdentifier()
      INTERNAL: To satisfy the abstract getIdentifier() method from ORMetadata.
      Overrides:
      getIdentifier in class ORMetadata
      See Also:
    • getInitialValue

      public Integer getInitialValue()
      INTERNAL: Used for OX mapping.
    • getName

      public String getName()
      INTERNAL: Used for OX mapping.
    • getSchema

      public String getSchema()
      INTERNAL: Used for OX mapping.
    • getSchemaContext

      public String getSchemaContext()
      INTERNAL:
    • getSequenceName

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

      public NativeSequence process(MetadataLogger logger)
      INTERNAL:
    • processQualifier

      public String processQualifier()
      INTERNAL: Used for processing.
    • setAllocationSize

      public void setAllocationSize(Integer allocationSize)
      INTERNAL: Used for OX mapping.
    • setCatalog

      public void setCatalog(String catalog)
      INTERNAL: Used for OX mapping.
    • setInitialValue

      public void setInitialValue(Integer initialValue)
      INTERNAL: Used for OX mapping.
    • setName

      public void setName(String name)
      INTERNAL: Used for OX mapping.
    • setSchema

      public void setSchema(String schema)
      INTERNAL: Used for OX mapping.
    • setSequenceName

      public void setSequenceName(String sequenceName)
      INTERNAL: Used for OX mapping.
    • toString

      public String toString()
      INTERNAL:
      Overrides:
      toString in class Object