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 Details

    • CompositeEnumTypeHandler

      public CompositeEnumTypeHandler(Class<E> enumClassType)
  • 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:
      setParameter in interface org.apache.ibatis.type.TypeHandler<E extends Enum<E>>
      Throws:
      SQLException
    • getResult

      public E getResult(ResultSet rs, String columnName) throws SQLException
      Specified by:
      getResult in interface org.apache.ibatis.type.TypeHandler<E extends Enum<E>>
      Throws:
      SQLException
    • getResult

      public E getResult(ResultSet rs, int columnIndex) throws SQLException
      Specified by:
      getResult in interface org.apache.ibatis.type.TypeHandler<E extends Enum<E>>
      Throws:
      SQLException
    • getResult

      public E getResult(CallableStatement cs, int columnIndex) throws SQLException
      Specified by:
      getResult in interface org.apache.ibatis.type.TypeHandler<E extends Enum<E>>
      Throws:
      SQLException
    • getInstance

      public <T> org.apache.ibatis.type.TypeHandler<T> getInstance(Class<?> javaTypeClass, Class<?> typeHandlerClass)