Package javax.jdo.annotations
Annotation Type Discriminator
Annotation for the discriminator of the class.
Corresponds to the xml element "discriminator" of the "inheritance" element.
- Since:
- 2.1
- Version:
- 2.1
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionName of the column for the discriminatorColumn[]
The column(s) making up the discriminator.Custom strategy to use for the discriminator.Whether the discriminator is indexed.Strategy to use for the discriminator.The value for the discriminator for objects of this class when using "value-map" strategy.
-
Element Details
-
strategy
DiscriminatorStrategy strategyStrategy to use for the discriminator. The discriminator determines the class associated with a row in the datastore.- Returns:
- the strategy to use for the discriminator
- Default:
UNSPECIFIED
-
customStrategy
String customStrategyCustom strategy to use for the discriminator. If customStrategy is non-empty, then strategy must be UNSPECIFIED.- Returns:
- the custom strategy
- Default:
""
-
indexed
String indexedWhether the discriminator is indexed.- Returns:
- whether the discriminator is indexed
- Default:
""
-
column
String columnName of the column for the discriminator- Returns:
- the name of the column for the discriminator
- Default:
""
-
value
String valueThe value for the discriminator for objects of this class when using "value-map" strategy.- Returns:
- The value for the discriminator for objects of this class when using "value-map" strategy
- Default:
""
-
columns
Column[] columnsThe column(s) making up the discriminator.- Returns:
- the column(s) making up the discriminator
- Default:
{}
-