Here you can find the source of getIndex(ResultSet rs, int index)
public static int getIndex(ResultSet rs, int index) throws SQLException
//package com.java2s; import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static int getIndex(ResultSet rs, int index) throws SQLException { return rs.getInt(index); }/*from w w w. j a v a 2 s . c om*/ }