public enum InheritanceType extends Enum<InheritanceType>
| Enum Constant and Description |
|---|
MULTI
Multi table.
Each entity in the inheritance hierarchy has its own table. The super-entity is abstract and cannot have instances. |
NONE
There is no inheritance at all.
This is the default. The concrete entities, i.e. |
PLAIN
OO inheritance only.
The entity extends its super-entity only in plain old java style. |
SINGLE
Single table.
Entities of all subtypes are stored in a single table. The super-entity is abstract and cannot have instances. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAbstractClass()
Returns whether entity may have instances.
|
boolean |
isMappingToNoTable()
Returns whether entity does not map to any table.
|
boolean |
isMappingToOwnTable()
Returns whether entity provides its own table.
|
boolean |
isMappingToSuperTable()
Returns whether entity maps to the table of the hierarchy root.
|
static InheritanceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InheritanceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InheritanceType NONE
NONE.public static final InheritanceType PLAIN
public static final InheritanceType SINGLE
public static final InheritanceType MULTI
public static InheritanceType[] values()
for (InheritanceType c : InheritanceType.values()) System.out.println(c);
public static InheritanceType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isAbstractClass()
public boolean isMappingToOwnTable()
public boolean isMappingToSuperTable()
public boolean isMappingToNoTable()
Tentackle - a domain driven enterprise framework