Enum ValueHandlingMode

  • All Implemented Interfaces:
    Serializable, Comparable<ValueHandlingMode>

    public enum ValueHandlingMode
    extends Enum<ValueHandlingMode>
    This enum defines how values passed to JPA Criteria API are handled. The BIND mode (default) will use bind variables for any value. The INLINE mode will inline values as literals.
    • Method Detail

      • values

        public static ValueHandlingMode[] 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 (ValueHandlingMode c : ValueHandlingMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ValueHandlingMode 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
      • interpret

        public static ValueHandlingMode interpret​(Object valueHandlingMode)
        Interpret the configured valueHandlingMode value. Valid values are either a ValueHandlingMode object or its String representation. For string values, the matching is case insensitive, so you can use either BIND or bind.
        Parameters:
        valueHandlingMode - configured ValueHandlingMode representation
        Returns:
        associated ValueHandlingMode object