Package sqlline
Enum BuiltInDialect
- java.lang.Object
-
- java.lang.Enum<BuiltInDialect>
-
- sqlline.BuiltInDialect
-
- All Implemented Interfaces:
Serializable
,Comparable<BuiltInDialect>
public enum BuiltInDialect extends Enum<BuiltInDialect>
Pre-defined one-line comments, sql identifier quotes for different databases.
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>
DEFAULT_KEYWORD_SET
static String[]
SQLLINE_ONE_LINE_COMMENTS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description boolean
containsKeyword(String keyword)
char
getCloseQuote()
Set<String>
getOneLineComments()
char
getOpenQuote()
default Set<String>
getSqlLineOneLineComments()
boolean
isUpper()
static BuiltInDialect
valueOf(String name)
Returns the enum constant of this type with the specified name.static BuiltInDialect[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final BuiltInDialect DEFAULT
Default built-in dialect. Does not correspond to any particular database, but behaves similarly to Oracle and PostgreSQL.
-
H2
public static final BuiltInDialect H2
HyperSQL dialect. See HyperSQL grammar..
-
MYSQL
public static final BuiltInDialect MYSQL
MySQL dialect. See MySQL grammar and MariaDB grammar.
-
PHOENIX
public static final BuiltInDialect PHOENIX
Apache Phoenix dialect. See Phoenix grammar.
-
-
Method Detail
-
values
public static BuiltInDialect[] 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 (BuiltInDialect c : BuiltInDialect.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BuiltInDialect 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
-
containsKeyword
public boolean containsKeyword(String keyword)
-
getOpenQuote
public char getOpenQuote()
-
getCloseQuote
public char getCloseQuote()
-
isUpper
public boolean isUpper()
-
-