1    package com.instantbank.component.lettertemplate.util;
2    
3    import java.util.*;
4    import java.io.Serializable;
5    
6    /**
7     * Utility class allowing manipulation of letter batch review.
8     *
9     * @author InstantBank (Jorge Cardenas, Roberto Contreras).
10    * @created November 2002
11    */
12   public class JobLogInfo
13       implements Serializable {
14   
15     /**
16      * Name of Job
17      */
18     private String name;
19   
20     /**
21      * Description of Job
22      */
23     private String description;
24   
25     /**
26      * Execution date of Job
27      */
28     private String executionDate;
29   
30     /**
31      * Status of Job
32      */
33     private String jobOk;
34   
35     /**
36      * Number of records retrived by the job execution
37      */
38     private String numberRecords;
39   
40     /**
41      * Contains object of type FileLogInfo, ordered by
42      * FileLogInfo.jobFile.
43      * This field can be null in case there where no generated
44      * files {0 records, failed Job}
45      */
46     private ArrayList fileLogInfo;
47   
48   
49     /**
50      *  Constructor for the JobLogInfo object
51      *
52      * @param name String name of Job
53      * @param description String description of Job
54      * @param executionDate String execution date of Job
55      * @param jobOk String status of Job
56      * @param numberRecords String number of records Job
57      */
58     public JobLogInfo(String name, String description, String executionDate,
59                       String jobOk, String numberRecords) {
60   
61       this.name = name;
62       this.description = description;
63       this.executionDate = executionDate;
64       this.jobOk = jobOk;
65       this.numberRecords = numberRecords;
66       this.fileLogInfo = new ArrayList();
67     }
68   
69   
70     /**
71      *  Gets the name attribute of the JobLogInfo object
72      *
73      * @return The name value
74      */
75     public String getName() {
76       return (this.name);
77     }
78   
79   
80     /**
81      *  Gets the description attribute of the JobLogInfo object
82      *
83      * @return The description value
84      */
85     public String getDescription() {
86       return (this.description);
87     }
88   
89   
90     /**
91      *  Gets the executionDate attribute of the JobLogInfo object
92      *
93      * @return The executionDate value
94      */
95     public String getExecutionDate() {
96       return (this.executionDate);
97     }
98   
99   
100    /**
101     *  Gets the jobOk attribute of the JobLogInfo object
102     *
103     * @return The jobOk value
104     */
105    public String getJobOk() {
106      return (this.jobOk);
107    }
108  
109  
110    /**
111     *  Gets the numberRecords attribute of the JobLogInfo object
112     *
113     * @return The numberRecords value
114     */
115    public String getNumberRecords() {
116      return (this.numberRecords);
117    }
118  
119  
120    /**
121     *  Gets the fileLogInfo attribute of the JobLogInfo object
122     *
123     * @return The fileLogInfo value
124     */
125    public ArrayList getFileLogInfo() {
126      return (this.fileLogInfo);
127    }
128  
129  
130    /**
131     *  Print the attributes of class
132     *
133     * @return The String of class attributes
134     */
135    public String toString() {
136  
137      StringBuffer toString = new StringBuffer();
138      toString.append("\nname = ");
139      toString.append(name);
140      toString.append("\ndescription = ");
141      toString.append(description);
142      toString.append("\nexecutionDate = ");
143      toString.append(executionDate);
144      toString.append("\njobOk = ");
145      toString.append(jobOk);
146      toString.append("\nnumberRecords = ");
147      toString.append(numberRecords);
148      toString.append("\nfileLogInfo = ");
149      toString.append(fileLogInfo);
150      toString.append("\n");
151  
152      return new String(toString);
153    }
154  
155  }
156