public void saveRep(Repository rep, long id_job) throws KettleException {
   try {
     setID(rep.insertJobEntry(id_job, getName(), getDescription(), getTypeCode()));
   } catch (KettleDatabaseException dbe) {
     throw new KettleException(
         "Unable to save job entry base information to the repository for id_job=" + id_job, dbe);
   }
 }
  // Save the attributes of this job entry
  //
  public void saveRep(Repository rep, long id_job) throws KettleException {
    try {
      super.saveRep(rep, id_job);
      rep.saveJobEntryAttribute(id_job, getID(), "message", messageabort);

    } catch (KettleDatabaseException dbe) {
      throw new KettleException(
          "Unable to save job entry of type 'Abort' to the repository for id_job=" + id_job, dbe);
    }
  }
 public void loadRep(Repository rep, long id_jobentry, ArrayList databases)
     throws KettleException {
   try {
     super.loadRep(rep, id_jobentry, databases);
     messageabort = rep.getJobEntryAttributeString(id_jobentry, "message");
   } catch (KettleDatabaseException dbe) {
     throw new KettleException(
         "Unable to load job entry of type 'Abort' from the repository with id_jobentry="
             + id_jobentry,
         dbe);
   }
 }
  public void loadRep(Repository rep, long id_jobentry, ArrayList databases)
      throws KettleException {
    try {
      Row r = rep.getJobEntry(id_jobentry);
      if (r != null) {
        setName(r.searchValue("NAME").getString());

        setDescription(r.searchValue("DESCRIPTION").getString());
        int id_jobentry_type = (int) r.searchValue("ID_JOBENTRY_TYPE").getInteger();
        Row jetrow = rep.getJobEntryType(id_jobentry_type);
        if (jetrow != null) {
          type = JobEntryCopy.getType(jetrow.searchValue("CODE").getString());
        }
      }
    } catch (KettleDatabaseException dbe) {
      throw new KettleException(
          "Unable to load base job entry information from the repository for id_jobentry="
              + id_jobentry,
          dbe);
    }
  }
 public FormulaMetaFunction(Repository rep, long id_step, int nr) throws KettleException {
   fieldName = rep.getStepAttributeString(id_step, nr, "field_name");
   formula = rep.getStepAttributeString(id_step, nr, "formula_string");
   valueType = Value.getType(rep.getStepAttributeString(id_step, nr, "value_type"));
   valueLength = (int) rep.getStepAttributeInteger(id_step, nr, "value_length");
   valuePrecision = (int) rep.getStepAttributeInteger(id_step, nr, "value_precision");
   removedFromResult = rep.getStepAttributeBoolean(id_step, nr, "remove");
 }
 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);
 }