1 package com.instantbank.component.lettertemplate.util; 2 3 import java.sql.Date; 4 5 import java.util.*; 6 import java.io.Serializable; 7 8 /** 9 * Utility class allowing manipulation of letter batch Job. 10 * 11 * @author InstantBank (Jorge Cardenas, Roberto Contreras). 12 * @created November 2002 13 */ 14 15 public class JobData 16 implements Serializable { 17 18 /** 19 * Code of a letter job. 20 */ 21 private String id; 22 23 /** 24 * Name of the letter job. 25 */ 26 private String name; 27 28 /** 29 * Complementary information about letter job. 30 */ 31 private String description; 32 33 /** 34 * Frequency of letter job generation: 35 * on_request, daily, weekly, monthly annual. 36 */ 37 private String frequency; 38 39 /** 40 * Letter job status 41 */ 42 private String status; 43 44 /** 45 * Date in which the letter job can be executed the first time. 46 */ 47 private String activationDate; 48 49 /** 50 * Date of last execution of the letter job. 51 */ 52 private String lastRunDate; 53 54 55 /** 56 * Constructor . <br> 57 * <br> 58 * 59 * @param id The code of a letter job. 60 * @param name The Name of the letter job. 61 * @param description The complementary information about letter job. 62 * @param frequency The frequency of letter job generation. 63 * @param status Tehe state of letter job. 64 * @param activationDate Date in which the letter job can be executed the first time. 65 * @param lastRunDate The date of last execution of the letter job. 66 */ 67 public JobData(String id, String name, String description, 68 String frequency, String status, String activationDate, 69 String lastRunDate) { 70 71 this.id = id; 72 this.name = name; 73 this.description = description; 74 this.frequency = frequency; 75 this.status = status; 76 this.activationDate = activationDate; 77 this.lastRunDate = lastRunDate; 78 79 } 80 81 82 /** 83 * Getter method for the code of a letter job. 84 * 85 * @return id The code of a letter job. 86 */ 87 public String getId() { 88 return (this.id); 89 } 90 91 92 /** 93 * Getter method for name of the letter job. 94 * 95 * @return name The Name of the letter job. 96 */ 97 public String getName() { 98 return (this.name); 99 } 100 101 102 /** 103 * Getter method for complementary information about letter job. 104 * 105 * @return description The complementary information about letter job. 106 */ 107 public String getDescription() { 108 return (this.description); 109 } 110 111 112 /** 113 * Getter method for frequency of letter job generation. 114 * 115 * @return frequency The frequency of letter job generation. 116 */ 117 public String getFrequency() { 118 return (this.frequency); 119 } 120 121 122 /** 123 * Getter method for status of letter job generation. 124 * 125 * @return status The status of letter job generation. 126 */ 127 public String getStatus() { 128 return (this.status); 129 } 130 131 132 /** 133 * Getter method for Date in which the letter job can be executed the first time. 134 * 135 * @return activationDate Date in which the letter job can be executed the first time. 136 */ 137 public String getActivationDate() { 138 return (this.activationDate); 139 } 140 141 142 /** 143 * Getter method for lastRunDate The date of last execution of the letter job. 144 * 145 * @return lastRunDate The date of last execution of the letter job. 146 */ 147 public String getLastRunDate() { 148 return (this.lastRunDate); 149 } 150 } 151