//package com.ics.admin.domain.enumHandler;
//
//import com.ics.admin.domain.Activity;
//import com.ics.admin.domain.meeting.RoomContent;
//import org.apache.ibatis.type.BaseTypeHandler;
//import org.apache.ibatis.type.JdbcType;
//import org.apache.ibatis.type.MappedJdbcTypes;
//import org.apache.ibatis.type.MappedTypes;
//
//import java.sql.CallableStatement;
//import java.sql.PreparedStatement;
//import java.sql.ResultSet;
//import java.sql.SQLException;
//
//
///**
// * @author 29361
// */
//@MappedJdbcTypes({JdbcType.INTEGER})
//@MappedTypes({RoomContent.Type.class})
//public class RoomContentTypeEnumHandler extends BaseTypeHandler<RoomContent.Type> {
//    @Override
//    public void setNonNullParameter(PreparedStatement preparedStatement, int i, RoomContent.Type status, JdbcType jdbcType) throws SQLException {
//        preparedStatement.setInt(i,status.getValue());
//    }
//
//    @Override
//    public RoomContent.Type getNullableResult(ResultSet resultSet, String columnName) throws SQLException {
//        int value = resultSet.getInt(columnName);
//        RoomContent.Type instance = RoomContent.Type.parse(value);
//        return instance;
//    }
//
//    @Override
//    public RoomContent.Type getNullableResult(ResultSet resultSet, int columnIndex) throws SQLException {
//        int value = resultSet.getInt(columnIndex);
//        RoomContent.Type instance = RoomContent.Type.parse(value);
//        return instance;
//    }
//
//    @Override
//    public RoomContent.Type getNullableResult(CallableStatement callableStatement, int i) throws SQLException {
//        return null;
//    }
//}
