Enum DynamicInstantiationNature

    • 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 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 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 name
        NullPointerException - if the argument is null