Class BaseLikeTypeHandler
java.lang.Object
org.apache.ibatis.type.TypeReference<T>
org.apache.ibatis.type.BaseTypeHandler<CharSequence>
top.tangyh.basic.database.mybatis.typehandler.BaseLikeTypeHandler
- All Implemented Interfaces:
org.apache.ibatis.type.TypeHandler<CharSequence>
- Direct Known Subclasses:
FullLikeTypeHandler,LeftLikeTypeHandler,RightLikeTypeHandler
仅仅用于like查询
- Author:
- zuihou
-
Field Summary
Fields inherited from class org.apache.ibatis.type.BaseTypeHandler
configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNullableResult(CallableStatement cs, int columnIndex) getNullableResult(ResultSet rs, int columnIndex) getNullableResult(ResultSet rs, String columnName) voidsetNonNullParameter(PreparedStatement ps, int i, CharSequence parameter, org.apache.ibatis.type.JdbcType jdbcType) Methods inherited from class org.apache.ibatis.type.BaseTypeHandler
getResult, getResult, getResult, setConfiguration, setParameterMethods inherited from class org.apache.ibatis.type.TypeReference
getRawType, toString
-
Constructor Details
-
BaseLikeTypeHandler
public BaseLikeTypeHandler(com.baomidou.mybatisplus.core.enums.SqlLike likeType)
-
-
Method Details
-
setNonNullParameter
public void setNonNullParameter(PreparedStatement ps, int i, CharSequence parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException - Specified by:
setNonNullParameterin classorg.apache.ibatis.type.BaseTypeHandler<CharSequence>- Parameters:
ps-i-parameter-jdbcType-- Throws:
SQLException
-
getNullableResult
- Specified by:
getNullableResultin classorg.apache.ibatis.type.BaseTypeHandler<CharSequence>- Throws:
SQLException
-
getNullableResult
- Specified by:
getNullableResultin classorg.apache.ibatis.type.BaseTypeHandler<CharSequence>- Throws:
SQLException
-
getNullableResult
- Specified by:
getNullableResultin classorg.apache.ibatis.type.BaseTypeHandler<CharSequence>- Throws:
SQLException
-