Package org.datanucleus.metadata
Enum InheritanceStrategy
- All Implemented Interfaces:
Serializable
,Comparable<InheritanceStrategy>
Representation of the values for inheritance "strategy".
A brief description of the strategies
- subclass-table - the fields of this class are persisted into the table(s) of subclasses.
- new-table - the fields of this class are persisted into its own table.
- superclass-table - the fields of this class are persisted into the table of its superclass
- complete-table - the fields of this class and all fields of superclasses are persisted into its own table.
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InheritanceStrategy
getInheritanceStrategy
(String value) Obtain a InheritanceStrategy for the given name byvalue
toString()
static InheritanceStrategy
Returns the enum constant of this type with the specified name.static InheritanceStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUBCLASS_TABLE
-
NEW_TABLE
-
SUPERCLASS_TABLE
-
COMPLETE_TABLE
-
-
Field Details
-
name
String name
-
-
Constructor Details
-
InheritanceStrategy
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<InheritanceStrategy>
-
getInheritanceStrategy
Obtain a InheritanceStrategy for the given name byvalue
- Parameters:
value
- the name- Returns:
- the InheritanceStrategy found or InheritanceStrategy.NEW_TABLE if not found. Nothing specified returns null
-