Interface SqlAbstractParserImpl.Metadata

  • All Known Implementing Classes:
    SqlAbstractParserImpl.MetadataImpl
    Enclosing class:
    SqlAbstractParserImpl

    public static interface SqlAbstractParserImpl.Metadata
    Metadata about the parser. For example:
    • "KEY" is a keyword: it is meaningful in certain contexts, such as "CREATE FOREIGN KEY", but can be used as an identifier, as in "CREATE TABLE t (key INTEGER)".
    • "SELECT" is a reserved word. It can not be used as an identifier.
    • "CURRENT_USER" is the name of a context variable. It cannot be used as an identifier.
    • "ABS" is the name of a reserved function. It cannot be used as an identifier.
    • "DOMAIN" is a reserved word as specified by the SQL:92 standard.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getJdbcKeywords()
      Returns comma-separated list of JDBC keywords.
      java.util.List<java.lang.String> getTokens()
      Returns a list of all tokens in alphabetical order.
      boolean isContextVariableName​(java.lang.String token)
      Returns whether token is the name of a context variable such as "CURRENT_USER".
      boolean isKeyword​(java.lang.String token)
      Returns whether token is a keyword.
      boolean isNonReservedKeyword​(java.lang.String token)
      Returns true if token is a keyword but not a reserved word.
      boolean isReservedFunctionName​(java.lang.String token)
      Returns whether token is a reserved function name such as "CURRENT_USER".
      boolean isReservedWord​(java.lang.String token)
      Returns whether token is a reserved word.
      boolean isSql92ReservedWord​(java.lang.String token)
      Returns whether token is a reserved word as specified by the SQL:92 standard.
    • Method Detail

      • isNonReservedKeyword

        boolean isNonReservedKeyword​(java.lang.String token)
        Returns true if token is a keyword but not a reserved word. For example, "KEY".
      • isContextVariableName

        boolean isContextVariableName​(java.lang.String token)
        Returns whether token is the name of a context variable such as "CURRENT_USER".
      • isReservedFunctionName

        boolean isReservedFunctionName​(java.lang.String token)
        Returns whether token is a reserved function name such as "CURRENT_USER".
      • isKeyword

        boolean isKeyword​(java.lang.String token)
        Returns whether token is a keyword. (That is, a non-reserved keyword, a context variable, or a reserved function name.)
      • isReservedWord

        boolean isReservedWord​(java.lang.String token)
        Returns whether token is a reserved word.
      • isSql92ReservedWord

        boolean isSql92ReservedWord​(java.lang.String token)
        Returns whether token is a reserved word as specified by the SQL:92 standard.
      • getJdbcKeywords

        java.lang.String getJdbcKeywords()
        Returns comma-separated list of JDBC keywords.
      • getTokens

        java.util.List<java.lang.String> getTokens()
        Returns a list of all tokens in alphabetical order.