Package org.hibernate.query.sqm
Enum Class DynamicInstantiationNature
- All Implemented Interfaces:
Serializable
,Comparable<DynamicInstantiationNature>
,Constable
Represents the type of instantiation to be performed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DynamicInstantiationNature
Returns the enum constant of this class with the specified name.static DynamicInstantiationNature[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASS
The target names a Class to be instantiated. This is the only form of dynamic instantiation that is JPA-compliant. -
MAP
The target identified aMap
instantiation. The result for each "row" will be a Map whose key is the alias (or name of the selected attribute is no alias) and whose value is the corresponding value read from the JDBC results. Similar to JPA's named-Tuple support. -
LIST
The target identified aList
instantiation. The result for each "row" will be a List rather than an array. Similar to JPA's positional-Tuple support.
-
-
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
-