Overview

Various utility methods in the ScriptUtils implementations in spring-jdbc and spring-r2dbc are public but should not be since they are effectively internal APIs that no external client should call.

Public due to historical reasons in spring-jdbc

Some of these utility methods are public because of historical reasons -- for example, many of the public methods in ScriptUtils in spring-jdbc are only public because they were once invoked from JdbdTestUtils in spring-test, which is no longer the case.

Public by accident in spring-r2dbc

Some of these utility methods are public by accident -- for example, many of the public methods in ScriptUtils in spring-r2dbc are only public because they were copied from ScriptUtils in spring-jdbc without changing the visibility.

Methods to deprecate

  • splitSqlScript(...)
  • readScript(...)
  • containsSqlScriptDelimiters()