java.lang.Object | |
↳ | org.springframework.jdbc.core.StatementCreatorUtils |
Utility methods for PreparedStatementSetter/Creator and CallableStatementCreator implementations, providing sophisticated parameter management (including support for LOB values).
Used by PreparedStatementCreatorFactory and CallableStatementCreatorFactory, but also available for direct use in custom setter/creator implementations.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clean up all resources held by parameter values which were passed to an
execute method.
| |||||||||||
Clean up all resources held by parameter values which were passed to an
execute method.
| |||||||||||
Derive a default SQL type from the given Java type.
| |||||||||||
Set the value for a parameter.
| |||||||||||
Set the value for a parameter.
| |||||||||||
Set the value for a parameter.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Derive a default SQL type from the given Java type.
javaType | the Java type to translate |
---|
null
if none found
Set the value for a parameter. The method used is based on the SQL type of the parameter and we can handle complex types like arrays and LOBs.
ps | the prepared statement or callable statement |
---|---|
paramIndex | index of the parameter we are setting |
sqlType | the SQL type of the parameter |
typeName | the type name of the parameter (optional, only used for SQL NULL and SqlTypeValue) |
inValue | the value to set (plain value or a SqlTypeValue) |
SQLException | if thrown by PreparedStatement methods |
---|
Set the value for a parameter. The method used is based on the SQL type of the parameter and we can handle complex types like arrays and LOBs.
ps | the prepared statement or callable statement |
---|---|
paramIndex | index of the parameter we are setting |
param | the parameter as it is declared including type |
inValue | the value to set |
SQLException | if thrown by PreparedStatement methods |
---|
Set the value for a parameter. The method used is based on the SQL type of the parameter and we can handle complex types like arrays and LOBs.
ps | the prepared statement or callable statement |
---|---|
paramIndex | index of the parameter we are setting |
sqlType | the SQL type of the parameter |
inValue | the value to set (plain value or a SqlTypeValue) |
SQLException | if thrown by PreparedStatement methods |
---|