Package org.hibernate.query.sqm
Enum DynamicInstantiationNature
- java.lang.Object
-
- java.lang.Enum<DynamicInstantiationNature>
-
- org.hibernate.query.sqm.DynamicInstantiationNature
-
- All Implemented Interfaces:
Serializable
,Comparable<DynamicInstantiationNature>
public enum DynamicInstantiationNature extends Enum<DynamicInstantiationNature>
Represents the type of instantiation to be performed.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DynamicInstantiationNature
valueOf(String name)
Returns the enum constant of this type with the specified name.static DynamicInstantiationNature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLASS
public static final DynamicInstantiationNature CLASS
The target names a Class to be instantiated. This is the only form of dynamic instantiation that is JPA-compliant.
-
MAP
public static final DynamicInstantiationNature 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
public static final DynamicInstantiationNature 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 Detail
-
values
public static DynamicInstantiationNature[] 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 (DynamicInstantiationNature c : DynamicInstantiationNature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DynamicInstantiationNature 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
-
-