public static enum HQLPreprocessor.SessionAttr extends java.lang.Enum<HQLPreprocessor.SessionAttr>
Enum Constant and Description |
---|
DATE_FORMAT
SESSION:DATE-FORMAT
|
TIMEZONE
SESSION:TIMEZONE
|
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,HQLPreprocessor.SessionAttr> |
ATTRS
Map of values by placeholeder
|
java.lang.String |
placeHolder
Placeholder used in re-writing
|
java.util.function.Supplier<java.lang.String> |
value
Placeholder value supplier
|
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<HQLPreprocessor.SessionAttr> |
sessionAttr(java.lang.String placeHolder)
Map placeholder to attribute
|
static HQLPreprocessor.SessionAttr |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HQLPreprocessor.SessionAttr[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HQLPreprocessor.SessionAttr DATE_FORMAT
public static final HQLPreprocessor.SessionAttr TIMEZONE
private static final java.util.Map<java.lang.String,HQLPreprocessor.SessionAttr> ATTRS
public final java.lang.String placeHolder
public final java.util.function.Supplier<java.lang.String> value
public static HQLPreprocessor.SessionAttr[] values()
for (HQLPreprocessor.SessionAttr c : HQLPreprocessor.SessionAttr.values()) System.out.println(c);
public static HQLPreprocessor.SessionAttr valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.util.Optional<HQLPreprocessor.SessionAttr> sessionAttr(java.lang.String placeHolder)
placeHolder
- attribute placeHolder