Annotation Type Sequence


@Target(TYPE) @Retention(RUNTIME) public @interface Sequence
Annotation for a datastore sequence. Maps across to the JDO2 element "sequence".
Since:
2.1
Version:
2.1
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The symbolic name of the datastore sequence.
    Strategy for the sequence.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Allocation size for the sequence.
    Name of the sequence in the datastore.
    Vendor extensions for this sequence.
    Name of a factory class for generating the sequence values.
    int
    Initial value for the sequence.
  • Element Details

    • name

      String name
      The symbolic name of the datastore sequence.
      Returns:
      the name of the sequence
    • strategy

      Strategy for the sequence.
      Returns:
      the strategy for the sequence
    • datastoreSequence

      String datastoreSequence
      Name of the sequence in the datastore.
      Returns:
      the name of the datastore sequence
      Default:
      ""
    • factoryClass

      Class factoryClass
      Name of a factory class for generating the sequence values.
      Returns:
      the name of the factory class for the sequence
      Default:
      void.class
    • extensions

      Extension[] extensions
      Vendor extensions for this sequence.
      Returns:
      vendor extensions
      Default:
      {}
    • initialValue

      int initialValue
      Initial value for the sequence.
      Returns:
      Initial value for the sequence
      Since:
      3.1
      Default:
      1
    • allocationSize

      int allocationSize
      Allocation size for the sequence.
      Returns:
      Allocation size for the sequence
      Since:
      3.1
      Default:
      50