Package org.hibernate.metamodel
Enum CollectionClassification
- java.lang.Object
-
- java.lang.Enum<CollectionClassification>
-
- org.hibernate.metamodel.CollectionClassification
-
- All Implemented Interfaces:
Serializable
,Comparable<CollectionClassification>
public enum CollectionClassification extends Enum<CollectionClassification>
Classifications of the plurality.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY
BAG
IDBAG
LIST
MAP
ORDERED_MAP
ORDERED_SET
SET
SORTED_MAP
SORTED_SET
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PluralAttribute.CollectionType
toJpaClassification()
static CollectionClassification
valueOf(String name)
Returns the enum constant of this type with the specified name.static CollectionClassification[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SET
public static final CollectionClassification SET
-
LIST
public static final CollectionClassification LIST
-
MAP
public static final CollectionClassification MAP
-
BAG
public static final CollectionClassification BAG
-
SORTED_SET
public static final CollectionClassification SORTED_SET
-
ORDERED_SET
public static final CollectionClassification ORDERED_SET
-
SORTED_MAP
public static final CollectionClassification SORTED_MAP
-
ORDERED_MAP
public static final CollectionClassification ORDERED_MAP
-
IDBAG
public static final CollectionClassification IDBAG
-
ARRAY
public static final CollectionClassification ARRAY
-
-
Method Detail
-
values
public static CollectionClassification[] 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 (CollectionClassification c : CollectionClassification.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CollectionClassification 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
-
toJpaClassification
public PluralAttribute.CollectionType toJpaClassification()
-
-