public void loadXML(Node entrynode, ArrayList databases) throws KettleXMLException {
   try {
     setName(XMLHandler.getTagValue(entrynode, "name"));
     setDescription(XMLHandler.getTagValue(entrynode, "description"));
     String stype = XMLHandler.getTagValue(entrynode, "type");
     setType(JobEntryCopy.getType(stype));
   } catch (Exception e) {
     throw new KettleXMLException("Unable to load base info for job entry", e);
   }
 }
  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);
    }
  }