コード例 #1
0
 public void loadXML(Node entrynode, ArrayList databases, Repository rep)
     throws KettleXMLException {
   try {
     super.loadXML(entrynode, databases);
     messageabort = XMLHandler.getTagValue(entrynode, "message");
   } catch (Exception e) {
     throw new KettleXMLException("Unable to load job entry of type 'Abort' from XML node", e);
   }
 }
コード例 #2
0
  // 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);
    }
  }
コード例 #3
0
 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);
   }
 }
コード例 #4
0
 public JobEntryBase(JobEntryBase jeb) {
   setName(jeb.getName());
   setDescription(jeb.getDescription());
   setType(jeb.getType());
   setID(jeb.getID());
 }