Package org.hibernate.dialect.function
Enum TruncFunction.DatetimeTrunc
- java.lang.Object
-
- java.lang.Enum<TruncFunction.DatetimeTrunc>
-
- org.hibernate.dialect.function.TruncFunction.DatetimeTrunc
-
- All Implemented Interfaces:
Serializable
,Comparable<TruncFunction.DatetimeTrunc>
- Enclosing class:
- TruncFunction
public static enum TruncFunction.DatetimeTrunc extends Enum<TruncFunction.DatetimeTrunc>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATE_TRUNC
DATETRUNC
FORMAT
TRUNC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPattern()
static TruncFunction.DatetimeTrunc
valueOf(String name)
Returns the enum constant of this type with the specified name.static TruncFunction.DatetimeTrunc[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATE_TRUNC
public static final TruncFunction.DatetimeTrunc DATE_TRUNC
-
DATETRUNC
public static final TruncFunction.DatetimeTrunc DATETRUNC
-
TRUNC
public static final TruncFunction.DatetimeTrunc TRUNC
-
FORMAT
public static final TruncFunction.DatetimeTrunc FORMAT
-
-
Method Detail
-
values
public static TruncFunction.DatetimeTrunc[] 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 (TruncFunction.DatetimeTrunc c : TruncFunction.DatetimeTrunc.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TruncFunction.DatetimeTrunc 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 nameNullPointerException
- if the argument is null
-
getPattern
public String getPattern()
-
-