Class SQLDoubleTypeHandler
- java.lang.Object
-
- org.apache.ibatis.type.TypeReference<T>
-
- org.apache.ibatis.type.BaseTypeHandler<Double>
-
- org.ametys.plugins.contentio.synchronize.impl.typehandler.SQLDoubleTypeHandler
-
- All Implemented Interfaces:
org.apache.ibatis.type.TypeHandler<Double>
public class SQLDoubleTypeHandler extends org.apache.ibatis.type.BaseTypeHandler<Double>
Handle Float SQL types to return Double value
-
-
Constructor Summary
Constructors Constructor Description SQLDoubleTypeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
getNullableResult(CallableStatement cs, int columnIndex)
Double
getNullableResult(ResultSet rs, int columnIndex)
Double
getNullableResult(ResultSet rs, String columnName)
void
setNonNullParameter(PreparedStatement ps, int i, Double parameter, org.apache.ibatis.type.JdbcType jdbcType)
-
-
-
Constructor Detail
-
SQLDoubleTypeHandler
public SQLDoubleTypeHandler()
-
-
Method Detail
-
setNonNullParameter
public void setNonNullParameter(PreparedStatement ps, int i, Double parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
- Specified by:
setNonNullParameter
in classorg.apache.ibatis.type.BaseTypeHandler<Double>
- Throws:
SQLException
-
getNullableResult
public Double getNullableResult(ResultSet rs, String columnName) throws SQLException
- Specified by:
getNullableResult
in classorg.apache.ibatis.type.BaseTypeHandler<Double>
- Throws:
SQLException
-
getNullableResult
public Double getNullableResult(ResultSet rs, int columnIndex) throws SQLException
- Specified by:
getNullableResult
in classorg.apache.ibatis.type.BaseTypeHandler<Double>
- Throws:
SQLException
-
getNullableResult
public Double getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
- Specified by:
getNullableResult
in classorg.apache.ibatis.type.BaseTypeHandler<Double>
- Throws:
SQLException
-
-