Package org.hibernate.metamodel
Enum Class CollectionClassification
- All Implemented Interfaces:
Serializable
,Comparable<CollectionClassification>
,Constable
Classifications of the plurality.
- Since:
- 6.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn Object or primitive array.A non-unique, unordered collection.ABAG
with a generated id for each elementA non-unique, ordered collection following the requirements ofList
A collection following the semantics ofMap
AMAP
that is ordered using an order-by fragment as the collection is loaded.ASET
that is ordered using an order-by fragment as the collection is loaded.A unique, unordered collection following the requirements ofSet
A sortedMAP
using either natural sorting of the keys or a specifiedComparator
.A sortedSET
using either natural sorting of the elements or a specifiedComparator
. -
Method Summary
Modifier and TypeMethodDescriptionstatic CollectionClassification
interpretSetting
(Object value) One of:CollectionClassification
instanceCollectionClassification
name (case insensitive)Class
reference for eitherList
orCollection
boolean
boolean
static CollectionClassification
Returns the enum constant of this class with the specified name.static CollectionClassification[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARRAY
An Object or primitive array. Roughly follows the semantics ofLIST
-
BAG
A non-unique, unordered collection. Represented asCollection
orList
-
ID_BAG
ABAG
with a generated id for each element -
LIST
A non-unique, ordered collection following the requirements ofList
- See Also:
-
SET
A unique, unordered collection following the requirements ofSet
-
SORTED_SET
A sortedSET
using either natural sorting of the elements or a specifiedComparator
. Represented asSortedSet
orSet
- See Also:
-
ORDERED_SET
-
MAP
A collection following the semantics ofMap
-
SORTED_MAP
A sortedMAP
using either natural sorting of the keys or a specifiedComparator
. Represented asSortedMap
orMap
- See Also:
-
ORDERED_MAP
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toJpaClassification
-
isIndexed
public boolean isIndexed() -
isRowUpdatePossible
public boolean isRowUpdatePossible() -
interpretSetting
One of:CollectionClassification
instanceCollectionClassification
name (case insensitive)Class
reference for eitherList
orCollection
-