Here you can find the source of get(ResultSet rs, String name)
public static <T> T get(ResultSet rs, String name)
//package com.java2s; //License from project: Open Source License import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static <T> T get(ResultSet rs, String name) { try {// ww w.jav a 2 s . c o m return (T) rs.getObject(name); } catch (SQLException e) { return null; } } }