org.springframework.jdbc.core
Interface SqlProvider

All Known Implementing Classes:
JdbcTemplate.SimpleCallableStatementCreator, JdbcTemplate.SimplePreparedStatementCreator

public interface SqlProvider

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

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

Since:
16.03.2004
Author:
Juergen Hoeller
See Also:
PreparedStatementCreator, CallableStatementCreator

Method Summary
 java.lang.String getSql()
          Return the SQL string for this object, typically the SQL used for creating statements.
 

Method Detail

getSql

public java.lang.String getSql()
Return the SQL string for this object, typically the SQL used for creating statements.

Returns:
the SQL string, or null


Copyright (C) 2003-2004 The Spring Framework Project.