Package org.hibernate.metamodel
Enum AttributeClassification
- java.lang.Object
-
- java.lang.Enum<AttributeClassification>
-
- org.hibernate.metamodel.AttributeClassification
-
- All Implemented Interfaces:
Serializable
,Comparable<AttributeClassification>
public enum AttributeClassification extends Enum<AttributeClassification>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
BASIC
ELEMENT_COLLECTION
EMBEDDED
MANY_TO_MANY
MANY_TO_ONE
ONE_TO_MANY
ONE_TO_ONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Attribute.PersistentAttributeType
getJpaClassification()
static AttributeClassification
valueOf(String name)
Returns the enum constant of this type with the specified name.static AttributeClassification[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BASIC
public static final AttributeClassification BASIC
-
EMBEDDED
public static final AttributeClassification EMBEDDED
-
ANY
public static final AttributeClassification ANY
-
ONE_TO_ONE
public static final AttributeClassification ONE_TO_ONE
-
MANY_TO_ONE
public static final AttributeClassification MANY_TO_ONE
-
ELEMENT_COLLECTION
public static final AttributeClassification ELEMENT_COLLECTION
-
ONE_TO_MANY
public static final AttributeClassification ONE_TO_MANY
-
MANY_TO_MANY
public static final AttributeClassification MANY_TO_MANY
-
-
Method Detail
-
values
public static AttributeClassification[] 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 (AttributeClassification c : AttributeClassification.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeClassification 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
-
getJpaClassification
public Attribute.PersistentAttributeType getJpaClassification()
-
-