Package sqlline

Enum BuiltInDialect

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<BuiltInDialect>

    public enum BuiltInDialect
    extends java.lang.Enum<BuiltInDialect>
    Pre-defined one-line comments, sql identifier quotes for different databases.
    • Field Detail

      • 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 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​(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()
      • getSqlLineOneLineComments

        public default java.util.Set<java.lang.String> getSqlLineOneLineComments()