Enum Class FunctionParameterType
java.lang.Object
java.lang.Enum<FunctionParameterType>
org.hibernate.query.sqm.produce.function.FunctionParameterType
- All Implemented Interfaces:
Serializable
,Comparable<FunctionParameterType>
,java.lang.constant.Constable
A mini-"type system" for HQL function parameters.
Note that typical database type systems have relatively few types, and lots of implicit type conversion between them. So we can be pretty forgiving here.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates a parameter that accepts any typeIndicates that the argument should be of typeSqlTypes.BOOLEAN
or a logical expression (predicate)A collation, used by thecollate()
functionAny type with an order (numeric, string, and temporal types)Indicates a parameter that accepts any type, except untyped expressions likenull
literalsIndicates that the argument should be a spatial typeA temporal unit, used by theextract()
function, and some native database functionsA trim specification, for trimming and padding functions -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionParameterType
Returns the enum constant of this class with the specified name.static FunctionParameterType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
- See Also:
-
NUMERIC
- See Also:
-
INTEGER
- See Also:
-
TEMPORAL
- See Also:
-
DATE
- See Also:
-
TIME
- See Also:
-
BOOLEAN
Indicates that the argument should be of typeSqlTypes.BOOLEAN
or a logical expression (predicate) -
ANY
Indicates a parameter that accepts any type -
TEMPORAL_UNIT
A temporal unit, used by theextract()
function, and some native database functions- See Also:
-
TRIM_SPEC
A trim specification, for trimming and padding functions- See Also:
-
COLLATION
A collation, used by thecollate()
function- See Also:
-
COMPARABLE
Any type with an order (numeric, string, and temporal types) -
STRING_OR_CLOB
- See Also:
-
SPATIAL
Indicates that the argument should be a spatial type- See Also:
-
NO_UNTYPED
Indicates a parameter that accepts any type, except untyped expressions likenull
literals
-
-
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
-