/** * If the value of the column is null, String returned is set with ""; * * @param columnName * @return */ public String getStringSmart(String columnName) { if (columnName == null) { return ""; } int columnIdx = fieldNames.indexOf(columnName.toLowerCase()); String columnValue = null; if (getString(columnIdx) != null) { columnValue = getString(columnIdx).trim(); } else { columnValue = ""; } return columnValue; }
/** * @param columnIdx * @param obj * @roseuid 3E5D8981013E */ public void setObject(String columnName, Object obj) { if (columnName == null) return; int columnIdx = fieldNames.indexOf(columnName.toLowerCase()); setObject(columnIdx, obj); }
/** * @param columnName * @param type * @return Object * @roseuid 3E5D8B55035D */ public Object getObject(String columnName, String type) throws Exception { if (columnName == null) return null; int columnIdx = fieldNames.indexOf(columnName.toLowerCase()); return getObject(columnIdx, type); }
/** * @param columnName * @return Object * @roseuid 3E5D8B4601A3 */ public Object getObject(String columnName) { if (columnName == null) return null; int columnIdx = fieldNames.indexOf(columnName.toLowerCase()); return getObject(columnIdx); }
/** * @param columnName * @return java.util.Calendar * @roseuid 3E5D8B310121 */ public java.util.Date getCalendar(String columnName) { if (columnName == null) return null; int columnIdx = fieldNames.indexOf(columnName.toLowerCase()); return getCalendar(columnIdx); }
public String getTimeString(String columnName) { if (columnName == null) return ""; int columnIdx = fieldNames.indexOf(columnName.toLowerCase()); return getTimeString(columnIdx); }
/** * @param columnName * @return char * @roseuid 3E5D8B110053 */ public char getChar(String columnName) throws Exception { if (columnName == null) return 0; int columnIdx = fieldNames.indexOf(columnName.toLowerCase()); return getChar(columnIdx); }
/** * @param columnName * @return double * @roseuid 3E5D8B0300C1 */ public double getDouble(String columnName) { if (columnName == null) return 0; int columnIdx = fieldNames.indexOf(columnName.toLowerCase()); return getDouble(columnIdx); }
/** * @param columnName * @return float * @roseuid 3E5D8AF00286 */ public float getFloat(String columnName) { if (columnName == null) return 0; int columnIdx = fieldNames.indexOf(columnName.toLowerCase()); return getFloat(columnIdx); }
/** * @param columnName * @return boolean * @roseuid 3E5D8A760186 */ public boolean getBoolean(String columnName) { if (columnName == null) return false; int columnIdx = fieldNames.indexOf(columnName.toLowerCase()); return getBoolean(columnIdx); }