Enum Class DynamicInstantiationNature

java.lang.Object
java.lang.Enum<DynamicInstantiationNature>
org.hibernate.query.sqm.DynamicInstantiationNature
All Implemented Interfaces:
Serializable, Comparable<DynamicInstantiationNature>, Constable

public enum DynamicInstantiationNature extends Enum<DynamicInstantiationNature>
Represents the type of instantiation to be performed.
See Also:
  • Enum Constant Details

    • 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 a Map 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 a List instantiation. The result for each "row" will be a List rather than an array. Similar to JPA's positional-Tuple support.
  • Method Details

    • values

      public static DynamicInstantiationNature[] 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

      public static DynamicInstantiationNature valueOf(String name)
      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 name
      NullPointerException - if the argument is null