Beispiel #1
0
  /**
   * 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;
  }
Beispiel #2
0
 /**
  * @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);
 }
Beispiel #3
0
 /**
  * @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);
 }
Beispiel #4
0
 /**
  * @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);
 }
Beispiel #5
0
 /**
  * @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);
 }
Beispiel #6
0
 public String getTimeString(String columnName) {
   if (columnName == null) return "";
   int columnIdx = fieldNames.indexOf(columnName.toLowerCase());
   return getTimeString(columnIdx);
 }
Beispiel #7
0
 /**
  * @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);
 }
Beispiel #8
0
 /**
  * @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);
 }
Beispiel #9
0
 /**
  * @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);
 }
Beispiel #10
0
 /**
  * @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);
 }