Class DefaultPlaceholderFormatter

    • Method Detail

      • replaceSqlPlaceholder

        public String replaceSqlPlaceholder​(io.r2dbc.spi.ConnectionFactory connectionFactory,
                                            org.apache.ibatis.mapping.BoundSql boundSql,
                                            ReactiveExecutorContextAttribute reactiveExecutorContextAttribute)
        Description copied from interface: PlaceholderFormatter
        Replace sql placeholder string.
        Specified by:
        replaceSqlPlaceholder in interface PlaceholderFormatter
        Parameters:
        connectionFactory - the connection factory
        boundSql - the bound sql
        reactiveExecutorContextAttribute - the reactive executor context attribute
        Returns:
        the string
      • formatPlaceholderInternal

        protected String formatPlaceholderInternal​(PlaceholderDialect placeholderDialect,
                                                   org.apache.ibatis.mapping.BoundSql boundSql)
        format placeholder internal
        Parameters:
        placeholderDialect - the placeholder dialect
        boundSql - the original boundSql sql
        Returns:
        formatted sql
      • extractJdbcPlaceholderIndex

        protected List<Integer> extractJdbcPlaceholderIndex​(String sql)
        extract jdbc placeholder index
        Parameters:
        sql - the original sql
        Returns:
        the index list