Here you can find the source of getIntegerNotZeroNotMinValue(ResultSet rs, String columnLabel)
public static Integer getIntegerNotZeroNotMinValue(ResultSet rs, String columnLabel) throws SQLException
//package com.java2s; //License from project: Apache License import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static Integer getIntegerNotZeroNotMinValue(ResultSet rs, String columnLabel) throws SQLException { return nullIfZeroOrMinValue(getInteger(rs, columnLabel)); }/* w w w . jav a 2 s .c om*/ public static Integer nullIfZeroOrMinValue(Integer number) { if (number == null || number == 0) { return null; } else if (number == Integer.MIN_VALUE || number == Short.MIN_VALUE) { return null; } else { return number; } } public static Integer getInteger(ResultSet rs, String columnLabel) throws SQLException { int value = rs.getInt(columnLabel); if (rs.wasNull()) { return null; } else { return value; } } }