You cannot quit. getResultSet()will provide you with an implementation java.sql.ResultSetthat, apparently, is not yours , but relates to a Java implementation.
If you want to use your methods, you can delegate calls:
public class MyResultSet implements ResultSet{
private ResultSet orig;
public MyResultSet(ResultSet orig) {
this.orig = orig;
}
public String getString(int columnIndex) throws SQLException {
return orig.getString(columnIndex);
}
}
Eclipse , . RightClick - Source - Generate Methodsate Methods...
. , .
:
ResultSet originalresultset = ...;
MyResultSet myresultset = new MyResultSet(originalresultset);