@Override
    public Integer getValue(ResultSet rs, int startIndex) throws SQLException {
        int val = rs.getInt(startIndex);
        return rs.wasNull() ? null : val;
    }
{@code IntegerType} maps Integer to Integer on the JDBC level

@author tiwe
querydsl-sql/src/main/java/com/querydsl/sql/types/IntegerType.java