Class SqlAbstractParserImpl.MetadataImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String constructSql92ReservedWordList()
      Builds a comma-separated list of JDBC reserved words.
      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.
      private void initList​(SqlAbstractParserImpl parserImpl, java.util.Set<java.lang.String> keywords, java.lang.String name)
      Initializes lists of keywords.
      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.
      private java.lang.Object virtualCall​(SqlAbstractParserImpl parserImpl, java.lang.String name)
      Uses reflection to invoke a method on this parser.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • reservedFunctionNames

        private final java.util.Set<java.lang.String> reservedFunctionNames
      • contextVariableNames

        private final java.util.Set<java.lang.String> contextVariableNames
      • nonReservedKeyWordSet

        private final java.util.Set<java.lang.String> nonReservedKeyWordSet
      • tokenSet

        private final java.util.SortedSet<java.lang.String> tokenSet
        Set of all tokens.
      • tokenList

        private final java.util.List<java.lang.String> tokenList
        Immutable list of all tokens, in alphabetical order.
      • reservedWords

        private final java.util.Set<java.lang.String> reservedWords
      • sql92ReservedWords

        private final java.lang.String sql92ReservedWords
    • Constructor Detail

      • MetadataImpl

        public MetadataImpl​(SqlAbstractParserImpl sqlParser)
        Creates a MetadataImpl.
        Parameters:
        sqlParser - Parser