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.ABAGwith a generated id for each elementA non-unique, ordered collection following the requirements ofListA collection following the semantics ofMapAMAPthat is ordered using an order-by fragment as the collection is loaded.ASETthat is ordered using an order-by fragment as the collection is loaded.A unique, unordered collection following the requirements ofSetA sortedMAPusing either natural sorting of the keys or a specifiedComparator.A sortedSETusing either natural sorting of the elements or a specifiedComparator. -
Method Summary
Modifier and TypeMethodDescriptionstatic CollectionClassificationinterpretSetting(Object value) One of:CollectionClassificationinstanceCollectionClassificationname (case insensitive)Classreference for eitherListorCollectionbooleanbooleanstatic CollectionClassificationReturns 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 asCollectionorList -
ID_BAG
ABAGwith 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 sortedSETusing either natural sorting of the elements or a specifiedComparator. Represented asSortedSetorSet- See Also:
-
ORDERED_SET
ASETthat is ordered using an order-by fragment as the collection is loaded. Does not maintain ordering while in memory if the contents change. Represented asSet.- See Also:
-
MAP
A collection following the semantics ofMap -
SORTED_MAP
A sortedMAPusing either natural sorting of the keys or a specifiedComparator. Represented asSortedMaporMap- See Also:
-
ORDERED_MAP
AMAPthat is ordered using an order-by fragment as the collection is loaded. Does not maintain ordering while in memory if the contents change. Represented asMap.- See Also:
-
-
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:CollectionClassificationinstanceCollectionClassificationname (case insensitive)Classreference for eitherListorCollection
-