Class CompositeEnumTypeHandler<E extends Enum<E>>
java.lang.Object
com.baomidou.mybatisplus.core.handlers.CompositeEnumTypeHandler<E>
- All Implemented Interfaces:
org.apache.ibatis.type.TypeHandler<E>
public class CompositeEnumTypeHandler<E extends Enum<E>>
extends Object
implements org.apache.ibatis.type.TypeHandler<E>
- Since:
- 2022-03-07
- Author:
- miemie
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> org.apache.ibatis.type.TypeHandler<T> getInstance(Class<?> javaTypeClass, Class<?> typeHandlerClass) getResult(CallableStatement cs, int columnIndex) static voidsetDefaultEnumTypeHandler(Class<? extends org.apache.ibatis.type.TypeHandler> defaultEnumTypeHandler) voidsetParameter(PreparedStatement ps, int i, E parameter, org.apache.ibatis.type.JdbcType jdbcType)
-
Constructor Details
-
CompositeEnumTypeHandler
-
-
Method Details
-
setDefaultEnumTypeHandler
public static void setDefaultEnumTypeHandler(Class<? extends org.apache.ibatis.type.TypeHandler> defaultEnumTypeHandler) -
setParameter
public void setParameter(PreparedStatement ps, int i, E parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException - Specified by:
setParameterin interfaceorg.apache.ibatis.type.TypeHandler<E extends Enum<E>>- Throws:
SQLException
-
getResult
- Specified by:
getResultin interfaceorg.apache.ibatis.type.TypeHandler<E extends Enum<E>>- Throws:
SQLException
-
getResult
- Specified by:
getResultin interfaceorg.apache.ibatis.type.TypeHandler<E extends Enum<E>>- Throws:
SQLException
-
getResult
- Specified by:
getResultin interfaceorg.apache.ibatis.type.TypeHandler<E extends Enum<E>>- Throws:
SQLException
-
getInstance
-