- All Implemented Interfaces:
Serializable,Comparable<Polymorphic.Strategy>,Constable
- Enclosing class:
Polymorphic
The inheritance strategies for sealed entity hierarchies.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA base table holds shared fields and each subtype has its own extension table with subtype-specific fields, linked by the primary key.All subtypes share a single database table with a discriminator column. -
Method Summary
Modifier and TypeMethodDescriptionstatic Polymorphic.StrategyReturns the enum constant of this class with the specified name.static Polymorphic.Strategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SINGLE_TABLE
All subtypes share a single database table with a discriminator column. Subtype-specific columns are NULL for rows of other subtypes. -
JOINED
A base table holds shared fields and each subtype has its own extension table with subtype-specific fields, linked by the primary key. ADiscriminatorcolumn in the base table is optional: when present, Storm reads the discriminator value directly; when absent, Storm resolves the concrete type at query time by generating an expression that checks which extension table has a matching row.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-