Interface SqlTypedParameterSetter
-
- All Known Implementing Classes:
SqlBigDecimalParamSetter
,SqlBigIntegerParamSetter
,SqlBinaryParamSetter
,SqlBooleanParamSetter
,SqlDateParamSetter
,SqlEnumParamSetter
,SqlIntegerParamSetter
,SqlLongParamSetter
,SqlTemporalParamSetter
,SqlTextSetter
public interface SqlTypedParameterSetter
A setter of typed parameters of aPreparedStatement
instance.- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Class<?>>
getSupportedTypes()
Specifies the concrete types of the parameter this setter supports.void
setParameter(PreparedStatement statement, int idx, Object value)
Sets the nth parameter of the specified prepared statement with the given value.
-
-
-
Method Detail
-
getSupportedTypes
List<Class<?>> getSupportedTypes()
Specifies the concrete types of the parameter this setter supports.- Returns:
- a list of supported parameter types.
-
setParameter
void setParameter(PreparedStatement statement, int idx, Object value) throws SQLException
Sets the nth parameter of the specified prepared statement with the given value.- Parameters:
statement
- the prepared statement.idx
- the index of the parameter to set in the prepared statement.value
- the value with which the parameter has to be set.- Throws:
SQLException
- if an error occurs while setting the parameter.
-
-