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