Package org.apache.ibatis.type
Class UnknownTypeHandler
- java.lang.Object
-
- org.apache.ibatis.type.TypeReference<T>
-
- org.apache.ibatis.type.BaseTypeHandler<java.lang.Object>
-
- org.apache.ibatis.type.UnknownTypeHandler
-
- All Implemented Interfaces:
TypeHandler<java.lang.Object>
public class UnknownTypeHandler extends BaseTypeHandler<java.lang.Object>
- Author:
- Clinton Begin
-
-
Field Summary
-
Fields inherited from class org.apache.ibatis.type.BaseTypeHandler
configuration
-
-
Constructor Summary
Constructors Constructor Description UnknownTypeHandler(Configuration configuration)The constructor that pass a MyBatis configuration.UnknownTypeHandler(TypeHandlerRegistry typeHandlerRegistry)Deprecated.Since 3.5.4, please use theUnknownTypeHandler(Configuration).
-
Method Summary
Modifier and Type Method Description java.lang.ObjectgetNullableResult(java.sql.CallableStatement cs, int columnIndex)java.lang.ObjectgetNullableResult(java.sql.ResultSet rs, int columnIndex)java.lang.ObjectgetNullableResult(java.sql.ResultSet rs, java.lang.String columnName)voidsetNonNullParameter(java.sql.PreparedStatement ps, int i, java.lang.Object parameter, JdbcType jdbcType)-
Methods inherited from class org.apache.ibatis.type.BaseTypeHandler
getResult, getResult, getResult, setConfiguration, setParameter
-
Methods inherited from class org.apache.ibatis.type.TypeReference
getRawType, toString
-
-
-
-
Constructor Detail
-
UnknownTypeHandler
public UnknownTypeHandler(Configuration configuration)
The constructor that pass a MyBatis configuration.- Parameters:
configuration- a MyBatis configuration- Since:
- 3.5.4
-
UnknownTypeHandler
@Deprecated public UnknownTypeHandler(TypeHandlerRegistry typeHandlerRegistry)
Deprecated.Since 3.5.4, please use theUnknownTypeHandler(Configuration).The constructor that pass the type handler registry.- Parameters:
typeHandlerRegistry- a type handler registry
-
-
Method Detail
-
setNonNullParameter
public void setNonNullParameter(java.sql.PreparedStatement ps, int i, java.lang.Object parameter, JdbcType jdbcType) throws java.sql.SQLException- Specified by:
setNonNullParameterin classBaseTypeHandler<java.lang.Object>- Throws:
java.sql.SQLException
-
getNullableResult
public java.lang.Object getNullableResult(java.sql.ResultSet rs, java.lang.String columnName) throws java.sql.SQLException- Specified by:
getNullableResultin classBaseTypeHandler<java.lang.Object>columnName- Colunm name, when configurationuseColumnLabelisfalse- Throws:
java.sql.SQLException
-
getNullableResult
public java.lang.Object getNullableResult(java.sql.ResultSet rs, int columnIndex) throws java.sql.SQLException- Specified by:
getNullableResultin classBaseTypeHandler<java.lang.Object>- Throws:
java.sql.SQLException
-
getNullableResult
public java.lang.Object getNullableResult(java.sql.CallableStatement cs, int columnIndex) throws java.sql.SQLException- Specified by:
getNullableResultin classBaseTypeHandler<java.lang.Object>- Throws:
java.sql.SQLException
-
-