Class SqlDateParamSetter
- java.lang.Object
-
- org.silverpeas.core.persistence.jdbc.sql.setters.SqlTemporalParamSetter
-
- org.silverpeas.core.persistence.jdbc.sql.setters.SqlDateParamSetter
-
- All Implemented Interfaces:
SqlTypedParameterSetter
@Technical @Bean public class SqlDateParamSetter extends SqlTemporalParamSetter
- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description SqlDateParamSetter()
-
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.-
Methods inherited from class org.silverpeas.core.persistence.jdbc.sql.setters.SqlTemporalParamSetter
throwTypeNotSupported, toInstant
-
-
-
-
Method Detail
-
getSupportedTypes
public List<Class<?>> getSupportedTypes()
Description copied from interface:SqlTypedParameterSetter
Specifies the concrete types of the parameter this setter supports.- 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.- 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.
-
-