Esempio n. 1
0
  public XmlData toXmlData() {
    XmlData xd = new XmlData();

    xd.setParamValue("table_name", tableName);
    xd.setSubDataSingle("struct", tableXmlST.toXmlData());
    if (pkColName != null) xd.setParamValue("pk_col_name", pkColName);
    if (selectSql != null) xd.setParamValue("select_sql", selectSql);

    return xd;
  }
 XmlData getInsRTXmlData() {
   XmlData tmpxd = new XmlData();
   tmpxd.setParamValue("id", Long.valueOf(getInsId()));
   String t = getInsTitle();
   if (t != null) {
     tmpxd.setParamValue("title", t);
   }
   tmpxd.setParamValue("start_date", getStartDate());
   tmpxd.setParamValue("flow_path", getFlowPath());
   return tmpxd;
 }
    public XmlData toXmlData() {
      XmlData xd = new XmlData();
      xd.setParamValue("node_id", this.nodeId);

      xd.setParamValue("is_running", Boolean.valueOf(this.bRunning));
      if (this.selTransId != null) {
        xd.setParamValue("sel_trans_id", this.selTransId);
      }
      if (this.relatedInsIds != null) xd.setParamValues("ins_ids", this.relatedInsIds);
      return xd;
    }
Esempio n. 4
0
 public XmlData toXmlData() {
   XmlData xd = new XmlData();
   for (DataColumn dc : belongToDT.getColumns()) {
     String n = dc.getName();
     Object o = this.getValue(n);
     if (o != null) xd.setParamValue(n, o);
   }
   return xd;
 }