Package org.hibernate.dialect
Enum Class GroupByConstantRenderingStrategy
java.lang.Object
java.lang.Enum<GroupByConstantRenderingStrategy>
org.hibernate.dialect.GroupByConstantRenderingStrategy
- All Implemented Interfaces:
Serializable
,Comparable<GroupByConstantRenderingStrategy>
,Constable
Strategies for rendering a constant in a group by.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRenders a column reference to a dummy table e.g.Renders a constant e.g.Renders a constant expression e.g.The strategy for ANSI SQL compliant DBs like e.g.Renders a subquery e.g. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static GroupByConstantRenderingStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMPTY_GROUPING
The strategy for ANSI SQL compliant DBs like e.g. PostgreSQL that renders `()` i.e. the empty grouping. -
CONSTANT
Renders a constant e.g. `'0'` -
CONSTANT_EXPRESSION
Renders a constant expression e.g. `'0' || '0'` -
SUBQUERY
Renders a subquery e.g. `(select 1)` -
COLUMN_REFERENCE
Renders a column reference to a dummy table e.g. `, (select 1 x) dummy` and `dummy.x`
-
-
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
-