View Javadoc
1   /*
2    * Copyright 2011 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.select.businessobject;
17  
18  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
19  
20  import java.math.BigDecimal;
21  import java.util.LinkedHashMap;
22  
23  public class OleLoadFailureRecords extends PersistableBusinessObjectBase {
24  
25      private BigDecimal acqFailId;
26      private Integer acqLoadSumId;
27      private BigDecimal errorId;
28      private String vendorId;
29      private String isbn;
30      private String title;
31      private OleLoadSumRecords loadSumRecord;
32      private OleLoadError loadError;
33      private String error;
34  
35      public String getError() {
36          return error;
37      }
38  
39      public void setError(String error) {
40          this.error = error;
41      }
42  
43      public OleLoadError getLoadError() {
44          return loadError;
45      }
46  
47      public void setLoadError(OleLoadError loadError) {
48          this.loadError = loadError;
49      }
50  
51      public OleLoadSumRecords getLoadSumRecord() {
52          return loadSumRecord;
53      }
54  
55      public void setLoadSumRecord(OleLoadSumRecords loadSumRecord) {
56          this.loadSumRecord = loadSumRecord;
57      }
58  
59      public BigDecimal getAcqFailId() {
60          return acqFailId;
61      }
62  
63      public void setAcqFailId(BigDecimal acqFailId) {
64          this.acqFailId = acqFailId;
65      }
66  
67      public Integer getAcqLoadSumId() {
68          return acqLoadSumId;
69      }
70  
71      public void setAcqLoadSumId(Integer acqLoadSumId) {
72          this.acqLoadSumId = acqLoadSumId;
73      }
74  
75      public String getIsbn() {
76          return isbn;
77      }
78  
79      public void setIsbn(String isbn) {
80          this.isbn = isbn;
81      }
82  
83      public String getTitle() {
84          return title;
85      }
86  
87      public void setTitle(String title) {
88          this.title = title;
89      }
90  
91      public String getVendorId() {
92          return vendorId;
93      }
94  
95      public BigDecimal getErrorId() {
96          return errorId;
97      }
98  
99      public void setErrorId(BigDecimal errorId) {
100         this.errorId = errorId;
101     }
102 
103     public void setVendorId(String vendorId) {
104         this.vendorId = vendorId;
105     }
106 
107 
108     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
109         // TODO Auto-generated method stub
110         return null;
111     }
112 
113     public String getContents() {
114         StringBuffer content = new StringBuffer();
115         content.append("ISBN :" + this.isbn);
116         content.append("\n");
117         content.append("TITLE :" + this.title);
118         content.append("\n");
119         content.append("VENDOR ORDER LINE NO:" + this.vendorId);
120         content.append("\n");
121         content.append("ERROR MESSAGE:" + this.getLoadError().getError());
122         content.append("\n\n");
123 
124         return content.toString();
125     }
126 
127 
128 }