Class SqlBigDecimalParamSetter
- java.lang.Object
-
- org.silverpeas.core.persistence.jdbc.sql.setters.SqlBigDecimalParamSetter
-
- All Implemented Interfaces:
SqlTypedParameterSetter
@Technical @Bean public class SqlBigDecimalParamSetter extends Object implements SqlTypedParameterSetter
Setter of SQL parameters of typeBigDecimal
.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description SqlBigDecimalParamSetter()
-
Method Summary
All Methods Instance Methods Concrete 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
public List<Class<?>> getSupportedTypes()
Description copied from interface:SqlTypedParameterSetter
Specifies the concrete types of the parameter this setter supports.- Specified by:
getSupportedTypes
in interfaceSqlTypedParameterSetter
- Returns:
- a list of supported parameter types.
-
setParameter
public void setParameter(PreparedStatement statement, int idx, Object value) throws SQLException
Description copied from interface:SqlTypedParameterSetter
Sets the nth parameter of the specified prepared statement with the given value.- Specified by:
setParameter
in interfaceSqlTypedParameterSetter
- 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.
-
-