Package org.hibernate.metamodel
Enum ValueClassification
- java.lang.Object
-
- java.lang.Enum<ValueClassification>
-
- org.hibernate.metamodel.ValueClassification
-
- All Implemented Interfaces:
Serializable
,Comparable<ValueClassification>
public enum ValueClassification extends Enum<ValueClassification>
At the end of the day, any "value mapping" (id, version, attribute, collection element, etc) can be one of a few classifications. This defines an enumeration of those classifications
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
ANY is a Hibernate specific concept.BASIC
The mapped value is a basic value (String, Date, etc).EMBEDDABLE
AnEmbeddable
valueENTITY
Reference to an entity
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValueClassification
valueOf(String name)
Returns the enum constant of this type with the specified name.static ValueClassification[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BASIC
public static final ValueClassification BASIC
The mapped value is a basic value (String, Date, etc).
-
ANY
public static final ValueClassification ANY
ANY is a Hibernate specific concept. It is essentially a "reverse discrimination". Here, the association itself defines a discriminator to the associated entity - sort of the reverse of discriminator-inheritance. Here the various associated types can be unrelated in terms of mapped inheritance.
-
EMBEDDABLE
public static final ValueClassification EMBEDDABLE
AnEmbeddable
value
-
ENTITY
public static final ValueClassification ENTITY
Reference to an entity
-
-
Method Detail
-
values
public static ValueClassification[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ValueClassification c : ValueClassification.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValueClassification valueOf(String name)
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
-
-