public void saveRep(Repository rep, long id_transformation, long id_step, int nr) throws KettleException { rep.saveStepAttribute(id_transformation, id_step, nr, "field_name", fieldName); rep.saveStepAttribute(id_transformation, id_step, nr, "formula_string", formula); rep.saveStepAttribute( id_transformation, id_step, nr, "value_type", Value.getTypeDesc(valueType)); rep.saveStepAttribute(id_transformation, id_step, nr, "value_length", valueLength); rep.saveStepAttribute(id_transformation, id_step, nr, "value_precision", valuePrecision); rep.saveStepAttribute(id_transformation, id_step, nr, "remove", removedFromResult); }
public String getXML() { String xml = ""; xml += "<" + XML_TAG + ">"; xml += XMLHandler.addTagValue("field_name", fieldName); xml += XMLHandler.addTagValue("formula_string", formula); xml += XMLHandler.addTagValue("value_type", Value.getTypeDesc(valueType)); xml += XMLHandler.addTagValue("value_length", valueLength); xml += XMLHandler.addTagValue("value_precision", valuePrecision); xml += XMLHandler.addTagValue("remove", removedFromResult); xml += "</" + XML_TAG + ">"; return xml; }