Class CachingSqlParser

    • Field Detail

      • PARSED_SQL_CACHE_SIZE

        public static final int PARSED_SQL_CACHE_SIZE
        The default size of the parsed SQL cache.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CachingSqlParser

        CachingSqlParser()
    • Method Detail

      • parse

        public ParsedSql parse​(java.lang.String sql,
                               StatementContext ctx)
        Description copied from interface: SqlParser
        Parses the given SQL statement, and returns the ParsedSql for the statement.
        Specified by:
        parse in interface SqlParser
        Parameters:
        sql - The SQL statement to parse
        ctx - The statement context for the statement being executed
        Returns:
        the parsed SQL representing the SQL statement itself along with information about the parameters which should be bound (number and names)
      • cacheStats

        @Beta
        public <T> T cacheStats()
        Returns cache statistics for the internal sql parser cache. This returns a cache specific object, so the user needs to know what caching library is in use.
      • internalParse

        abstract ParsedSql internalParse​(java.lang.String sql)