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

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    DEFAULT
    Default built-in dialect.
    H2
    HyperSQL dialect.
    MYSQL
    MySQL dialect.
    ORACLE  
    PHOENIX
    Apache Phoenix dialect.
    POSTGRESQL  
  • 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.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static BuiltInDialect[] 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

      public static BuiltInDialect valueOf​(java.lang.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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.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()