Package adalid.core.enums
Enum Class InheritanceMappingStrategy
- All Implemented Interfaces:
Serializable,Comparable<InheritanceMappingStrategy>,Constable
- Author:
- Jorge Campins
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJoined Subclass Strategy.SingleTable per Class Hierarchy Strategy.Table per Concrete Class Strategy. -
Method Summary
Modifier and TypeMethodDescriptionstatic InheritanceMappingStrategyReturns the enum constant of this class with the specified name.static InheritanceMappingStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
-
SINGLE_TABLE
SingleTable per Class Hierarchy Strategy. All classes in the hierarchy are mapped to a single table in the database. This table has a discriminator column, a column that contains a value that identifies the subclass to which the instance represented by the row belongs. -
JOINED
Joined Subclass Strategy. The root of the class hierarchy is represented by a single table, and each subclass has a separate table that only contains those fields specific to that subclass. That is, the subclass table does not contain columns for inherited fields or properties. The subclass table also has a column or columns that represent its primary key, which is a foreign key to the primary key of the superclass table. -
TABLE_PER_CLASS
Table per Concrete Class Strategy. Each concrete class is mapped to a separate table in the database. All fields or properties in the class, including inherited fields or properties, are mapped to columns in the class table in the database.
-
-
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
-