interface SqlValue
Simple interface for complex types to be set as statement parameters.
Implementations perform the actual work of setting the actual values. They must implement the callback method setValue which can throw SQLExceptions that will be caught and translated by the calling code. This callback method has access to the underlying Connection via the given PreparedStatement object, if that should be needed to create any database-specific objects.
Author
Juergen Hoeller
Since
2.5.6
See Also
org.springframework.jdbc.core.SqlTypeValueorg.springframework.jdbc.core.DisposableSqlTypeValue
abstract fun cleanup(): Unit
Clean up resources held by this value object. |
|
abstract fun setValue(ps: PreparedStatement, paramIndex: Int): Unit
Set the value on the given PreparedStatement. |