Class 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
    Author:
    Guy Pelletier
    • Constructor Detail

      • 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:
        processSequencingAccesssors.
      • SequenceGeneratorMetadata

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

      • 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:
      • 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.
      • 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.