Package sqlline
Enum BuiltInDialect
java.lang.Object
java.lang.Enum<BuiltInDialect>
sqlline.BuiltInDialect
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BuiltInDialect>
,java.lang.constant.Constable
public enum BuiltInDialect extends java.lang.Enum<BuiltInDialect>
Pre-defined one-line comments, sql identifier quotes for different databases.
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static java.util.Set<java.lang.String>
DEFAULT_KEYWORD_SET
static java.lang.String[]
SQLLINE_ONE_LINE_COMMENTS
-
Method Summary
Modifier and Type Method Description boolean
containsKeyword(java.lang.String keyword)
char
getCloseQuote()
sqlline.Dialect.CodeBlocks
getCodeBlocks()
java.lang.String
getExtraNameCharacters()
java.util.Set<java.lang.String>
getOneLineComments()
char
getOpenQuote()
default java.util.Set<java.lang.String>
getSqlLineOneLineComments()
boolean
isLower()
boolean
isUpper()
static BuiltInDialect
valueOf(java.lang.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 Details
-
DEFAULT
Default built-in dialect. Does not correspond to any particular database, but behaves similarly to Oracle and PostgreSQL. -
POSTGRESQL
-
ORACLE
-
H2
HyperSQL dialect. See HyperSQL grammar.. -
MYSQL
MySQL dialect. See MySQL grammar and MariaDB grammar. -
PHOENIX
Apache Phoenix dialect. See Phoenix grammar.
-
-
Field Details
-
DEFAULT_KEYWORD_SET
public static final java.util.Set<java.lang.String> DEFAULT_KEYWORD_SET -
SQLLINE_ONE_LINE_COMMENTS
public static final java.lang.String[] SQLLINE_ONE_LINE_COMMENTS
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
containsKeyword
public boolean containsKeyword(java.lang.String keyword) -
getOneLineComments
public java.util.Set<java.lang.String> getOneLineComments() -
getOpenQuote
public char getOpenQuote() -
getCloseQuote
public char getCloseQuote() -
isLower
public boolean isLower() -
isUpper
public boolean isUpper() -
getExtraNameCharacters
public java.lang.String getExtraNameCharacters() -
getCodeBlocks
public sqlline.Dialect.CodeBlocks getCodeBlocks() -
getSqlLineOneLineComments
public default java.util.Set<java.lang.String> getSqlLineOneLineComments()
-