Java SQL ResultSet Long Read getLongFromResultSet(ResultSet rs, String db_name)

Here you can find the source of getLongFromResultSet(ResultSet rs, String db_name)

Description

get Long From Result Set

License

Open Source License

Declaration

public static Long getLongFromResultSet(ResultSet rs, String db_name) throws SQLException 

Method Source Code

//package com.java2s;
//License from project: GNU General Public License 

import java.sql.ResultSet;
import java.sql.SQLException;

public class Main {
    public static Long getLongFromResultSet(ResultSet rs, String db_name) throws SQLException {
        long n = rs.getLong(db_name);
        return rs.wasNull() ? null : Long.valueOf(n);
    }//from   w w w .  j  a va2 s.c  o m
}

Related

  1. getLong(ResultSet rs, String colName)
  2. getLong(ResultSet rs, String column)
  3. getLong(ResultSet rs, String columnName)
  4. getLong(ResultSet rs, String columnName)
  5. getLongDateFromResultSet(ResultSet rset, Enum field)
  6. getLongFromResultSet(ResultSet rs, String field)
  7. getLongList(ResultSet resultSet, String columnName)
  8. getLongOrNull(ResultSet rs, String column)
  9. getLongString(ResultSet rs, int pos)