public enum LanguageType extends Enum<LanguageType>
Modifier and Type | Method and Description |
---|---|
static LanguageType |
get(String type)
Get the language type from String
|
static LanguageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LanguageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LanguageType JPQL
public static final LanguageType HQL
public static final LanguageType NATIVE
public static final LanguageType CRITERIA
public static final LanguageType STORED
public static LanguageType[] values()
for (LanguageType c : LanguageType.values()) System.out.println(c);
public static LanguageType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static LanguageType get(String type)
type
- of language: NATIVE, STORED, JPQL, HQL...type
match the default value NATIVE is returned.Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.