public interface

SqlProvider

org.springframework.jdbc.core.SqlProvider

Class Overview

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.

Summary

Public Methods
abstract String getSql()
Return the SQL string for this object, i.e.

Public Methods

public abstract String getSql ()

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

Returns
  • the SQL string, or null