spring-framework / org.springframework.jdbc.core / SqlProvider

SqlProvider

interface SqlProvider

Interface to be implemented by objects that can provide SQL strings.

Typically implemented by PreparedStatementCreators, CallableStatementCreators and StatementCallbacks that want to expose the SQL they use to create their statements, to allow for better contextual information in case of exceptions.

Author
Juergen Hoeller

Since
16.03.2004

See Also
PreparedStatementCreatorCallableStatementCreatorStatementCallback

Functions

getSql

abstract fun getSql(): String

Return the SQL string for this object, i.e. typically the SQL used for creating statements.