Package javax.jdo.annotations
Annotation Type Sequence
Annotation for a datastore sequence.
Maps across to the JDO2 element "sequence".
- Since:
- 2.1
- Version:
- 2.1
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe symbolic name of the datastore sequence.Strategy for the sequence. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionName of the sequence in the datastore.Vendor extensions for this sequence.Name of a factory class for generating the sequence values.
-
Element Details
-
name
String nameThe symbolic name of the datastore sequence.- Returns:
- the name of the sequence
-
strategy
SequenceStrategy strategyStrategy for the sequence.- Returns:
- the strategy for the sequence
-
datastoreSequence
String datastoreSequenceName of the sequence in the datastore.- Returns:
- the name of the datastore sequence
- Default:
""
-
factoryClass
Class factoryClassName of a factory class for generating the sequence values.- Returns:
- the name of the factory class for the sequence
- Default:
void.class
-
extensions
Extension[] extensionsVendor extensions for this sequence.- Returns:
- vendor extensions
- Default:
{}
-