Exemplo n.º 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;
  }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 6
0
 public String getTimeString(String columnName) {
   if (columnName == null) return "";
   int columnIdx = fieldNames.indexOf(columnName.toLowerCase());
   return getTimeString(columnIdx);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }