1 package org.kuali.ole.pojo;
2
3
4 import org.kuali.ole.pojo.bib.BibliographicRecord;
5 import org.kuali.ole.pojo.edi.EDIOrder;
6
7 import java.util.HashMap;
8 import java.util.Map;
9
10
11
12
13
14
15
16
17 public class OleOrderRecord {
18 private String agendaName;
19 private String description;
20 private String originalEDIFileName;
21 private String oleOriginalBibRecordFileName;
22 private EDIOrder originalEdi;
23 private OleBibRecord oleBibRecord;
24 private OleTxRecord oleTxRecord;
25 private BibliographicRecord originalRecord;
26
27 private Map<String, Object> messageMap = new HashMap();
28
29 public OleBibRecord getOleBibRecord() {
30 return oleBibRecord;
31 }
32
33 public void setOleBibRecord(OleBibRecord oleBibRecord) {
34 this.oleBibRecord = oleBibRecord;
35 }
36
37 public OleTxRecord getOleTxRecord() {
38 return oleTxRecord;
39 }
40
41 public void setOleTxRecord(OleTxRecord oleTxRecord) {
42 this.oleTxRecord = oleTxRecord;
43 }
44
45 public BibliographicRecord getOriginalRecord() {
46 return originalRecord;
47 }
48
49 public void setOriginalRecord(BibliographicRecord originalRecord) {
50 this.originalRecord = originalRecord;
51 }
52
53 public EDIOrder getOriginalEdi() {
54 return originalEdi;
55 }
56
57 public void setOriginalEdi(EDIOrder originalEdi) {
58 this.originalEdi = originalEdi;
59 }
60
61 public void addMessageToMap(String key, Object value) {
62 messageMap.put(key, value);
63 }
64
65 public Map<String, Object> getMessageMap() {
66 return messageMap;
67 }
68
69 public String getAgendaName() {
70 return agendaName;
71 }
72
73 public void setAgendaName(String agendaName) {
74 this.agendaName = agendaName;
75 }
76
77 public String getOriginalEDIFileName() {
78 return originalEDIFileName;
79 }
80
81 public void setOriginalEDIFileName(String originalEDIFileName) {
82 this.originalEDIFileName = originalEDIFileName;
83 }
84
85 public String getOleOriginalBibRecordFileName() {
86 return oleOriginalBibRecordFileName;
87 }
88
89 public void setOleOriginalBibRecordFileName(String oleOriginalBibRecordFileName) {
90 this.oleOriginalBibRecordFileName = oleOriginalBibRecordFileName;
91 }
92
93 public String getDescription() {
94 return description;
95 }
96
97 public void setDescription(String description) {
98 this.description = description;
99 }
100
101 @Override
102 public String toString() {
103 return "OleOrderRecord{" +
104 "originalRecord=" + originalRecord +
105 ", originalEdi=" + originalEdi +
106 ", oleBibRecord=" + oleBibRecord +
107 ", oleTxRecord=" + oleTxRecord +
108 '}';
109 }
110
111 @Override
112 public boolean equals(Object o) {
113 if (this == o) return true;
114 if (o == null || getClass() != o.getClass()) return false;
115
116 OleOrderRecord that = (OleOrderRecord) o;
117
118 if (!agendaName.equals(that.agendaName)) return false;
119 if (!description.equals(that.description)) return false;
120 if (!messageMap.equals(that.messageMap)) return false;
121 if (!oleBibRecord.equals(that.oleBibRecord)) return false;
122 if (!oleOriginalBibRecordFileName.equals(that.oleOriginalBibRecordFileName)) return false;
123 if (!oleTxRecord.equals(that.oleTxRecord)) return false;
124 if (!originalEDIFileName.equals(that.originalEDIFileName)) return false;
125 if (!originalEdi.equals(that.originalEdi)) return false;
126 if (!originalRecord.equals(that.originalRecord)) return false;
127
128 return true;
129 }
130
131 @Override
132 public int hashCode() {
133 int result = agendaName.hashCode();
134 result = 31 * result + description.hashCode();
135 result = 31 * result + originalEDIFileName.hashCode();
136 result = 31 * result + oleOriginalBibRecordFileName.hashCode();
137 result = 31 * result + originalEdi.hashCode();
138 result = 31 * result + oleBibRecord.hashCode();
139 result = 31 * result + oleTxRecord.hashCode();
140 result = 31 * result + originalRecord.hashCode();
141 result = 31 * result + messageMap.hashCode();
142 return result;
143 }
144 }
145