code: public static Object getObject(final ResultSet rs,
                                     final String name,
                                     final ColumnType type) throws SQLException {
          
          switch (type) {
          case BigDecimal: return rs.getBigDecimal(name);
          case Boolean: return rs.getBoolean(name);
          case Byte: return rs.getByte(name);
          case Short: return rs.getShort(name);
          case Date: return rs.getDate(name);
          case Double: return rs.getDouble(name);
          case Float: return rs.getFloat(name);
          case Int: return rs.getInt(name);
          case Long: return rs.getLong(name);
          case Time: return rs.getTime(name);
          case Timestamp: return rs.getTimestamp(name);
          default: return rs.getString(name);
          }
      }
docs: Returns value of specified |column| according its type.