Here you can find the source of getRSData(ResultSet rs, String columnName, int jdbcType)
public static Object getRSData(ResultSet rs, String columnName, int jdbcType) throws SQLException
//package com.java2s; //License from project: Apache License import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Types; public class Main { public static Object getRSData(ResultSet rs, String columnName, int jdbcType) throws SQLException { if (jdbcType == Types.BIT || jdbcType == Types.BOOLEAN) { return rs.getByte(columnName); } else {//from w w w .j ava 2 s. c om return rs.getObject(columnName); } } }