Java SQL ResultSet Short Read getShort(ResultSet resultSet, int columnIndex)

Here you can find the source of getShort(ResultSet resultSet, int columnIndex)

Description

get Short

License

Open Source License

Declaration

public static Short getShort(ResultSet resultSet, int columnIndex) throws SQLException 

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 Short getShort(ResultSet resultSet, int columnIndex) throws SQLException {
        short value = resultSet.getShort(columnIndex);
        return resultSet.wasNull() ? null : value;
    }/*from  w  ww  . jav a  2  s. com*/
}

Related

  1. getShort(ResultSet res, String name)
  2. getShort(ResultSet resultSet, String columnName)
  3. getShort(ResultSet rs, String column)
  4. getShortList(ResultSet resultSet, String columnName)
  5. getShortOrNull(ResultSet rs, String column)