Here you can find the source of getShort(ResultSet resultSet, int columnIndex)
public static Short getShort(ResultSet resultSet, int columnIndex) throws SQLException
//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*/ }