| java.lang.Object liquibase.database.template.StatementCreatorUtils
StatementCreatorUtils | abstract class StatementCreatorUtils (Code) | | 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.
author: Spring Framework See Also: PreparedStatementSetter See Also: SqlParameter |
setParameterValue | public static void setParameterValue(PreparedStatement ps, int paramIndex, SqlParameter param, Object inValue) throws SQLException(Code) | | 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.
Parameters: ps - the prepared statement or callable statement Parameters: paramIndex - index of the parameter we are setting Parameters: param - the parameter as it is declared including type Parameters: inValue - the value to set throws: SQLException - if thrown by PreparedStatement methods |
setParameterValue | public static void setParameterValue(PreparedStatement ps, int paramIndex, int sqlType, Object inValue) throws SQLException(Code) | | 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.
Parameters: ps - the prepared statement or callable statement Parameters: paramIndex - index of the parameter we are setting Parameters: sqlType - the SQL type of the parameter Parameters: inValue - the value to set (plain value or a SqlTypeValue) throws: SQLException - if thrown by PreparedStatement methods |
|
|