Here you can find the source of getValue(ResultSet rs, String sField)
public static String getValue(ResultSet rs, String sField) throws SQLException
//package com.java2s; //License from project: Open Source License import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static String getValue(ResultSet rs, String sField) throws SQLException { String sRet = rs.getString(sField); sRet = (sRet == null) ? "" : sRet; return sRet; }/* w w w.j a v a2 s . c o m*/ }