Exemplo n.º 1
0
 /**
  * @param rowSet ESPRowSet
  * @param dmColComponent DMColComponent
  * @return Object
  */
 public static Object getObject(ESPRowSet rowSet, DMColComponent dmColComponent) {
   String dataSetID = dmColComponent.getInternalDataSetID();
   String dataSetColID = dmColComponent.getDataSetColID();
   String VALUE_COL_ID = dmColComponent.getValueDataSetColID();
   if (VALUE_COL_ID != null && VALUE_COL_ID.trim().length() != 0) dataSetColID = VALUE_COL_ID;
   if (dmColComponent.isUserInternalDataSetID()) {
     Object oo = rowSet.getObject(dataSetID + "." + dataSetColID, null);
     if (oo == null) oo = rowSet.getObject(dataSetColID, null);
     return oo;
   } else {
     return rowSet.getObject(dataSetColID, null);
   }
 }
Exemplo n.º 2
0
  /**
   * @param rowSet ESPRowSet
   * @param dmColComponent DMColComponent
   * @param value Object
   */
  public static void putObject(ESPRowSet rowSet, DMColComponent dmColComponent, Object value) {
    if (rowSet == null) return;
    String dataSetID = dmColComponent.getInternalDataSetID();
    String dataSetColID = dmColComponent.getDataSetColID();
    String VALUE_COL_ID = dmColComponent.getValueDataSetColID();
    if (VALUE_COL_ID != null && VALUE_COL_ID.trim().length() != 0) dataSetColID = VALUE_COL_ID;

    if (dmColComponent.isUserInternalDataSetID()) {
      rowSet.putObject(dataSetID + "." + dataSetColID, value);
    } else {
      rowSet.putObject(dataSetColID, value);
    }
  }