Java SQL ResultSet Read get(ResultSet rs, String name)

Here you can find the source of get(ResultSet rs, String name)

Description

get

License

Open Source License

Declaration

public static <T> T get(ResultSet rs, String name) 

Method Source Code


//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;
        }
    }
}

Related

  1. getAllColumnNames(ResultSet rs)
  2. getAllColumnNamesFromResultSet(ResultSet set)
  3. getAllData(ResultSet rs)
  4. getAllRow(ResultSet rs)