View Javadoc
1   package org.kuali.ole.deliver.api;
2   
3   import java.sql.Date;
4   import java.sql.Timestamp;
5   import java.util.UUID;
6   
7   /**
8    * Created with IntelliJ IDEA.
9    * User: ?
10   * Date: 6/6/12
11   * Time: 7:15 PM
12   * To change this template use File | Settings | File Templates.
13   */
14  public class OleLoanDefintionHelper {
15  
16      private static final Date DueDate =new Date((new Timestamp(System.currentTimeMillis())).getTime());
17      //  private static final String OBJECT_ID = String.valueOf(UUID.randomUUID());
18      private static final Date LoanPeriodDate = new Date((new Timestamp(System.currentTimeMillis())).getTime());
19     // private static final Date AlterDueDate = mew Date(())
20      private static final Integer LoanPeriod = new Integer(15);
21      private static final Long VERSION_NUMBER = new Long(1);
22  
23      private static final String LoanStatusId = "10";
24      private static final String LoanStatusCode = "MOCKLOANST";
25      private static final String LoanStatusName = "MockLoanStatusNm";
26      private static final Long LoanStatus_VERSION_NUMBER = new Long(1);
27      private static final String LoanStatus_OBJECT_ID = String.valueOf(UUID.randomUUID());
28  
29      private static final String LoanTermUnitId = "70";
30      private static final String LoanTermUnitCode = "MOCKTERMCD";
31      private static final String LoanTermUnitName = "MockTermUnitNm";
32      private static final Long LoanTermUnit_VERSION_NUMBER = new Long(1);
33      private static final String LoanTermUnit_OBJECT_ID = String.valueOf(UUID.randomUUID());
34  
35      private static final String LocationId = "T1000";
36      private static final String LocationCode = "MockShelving";
37      private static final String LocationName = "Mock Shelving Location Name";
38      private static final String LevelId = "5";
39      private static final String ParentLocationId = "T999";
40      private static final Long Location_VERSION_NUMBER = new Long(1);
41  
42      private static final String LocationId1 = "T999";
43      private static final String LocationCode1 = "MockCOLLECTION";
44      private static final String LocationName1 = "Mock Collection";
45      private static final String LevelId1 = "4";
46      private static final String ParentLocationId1 = "T998";
47  
48      private static final String LocationId2 = "T998";
49      private static final String LocationCode2 = "MockLIBRARY";
50      private static final String LocationName2 = "Mock Library";
51      private static final String LevelId2 = "3";
52      private static final String ParentLocationId2 = "T997";
53  
54      private static final String LocationId3 = "T997";
55      private static final String LocationCode3 = "MockCAMPUS";
56      private static final String LocationName3 = "Mock Campus";
57      private static final String LevelId3 = "2";
58      private static final String ParentLocationId3 = "T996";
59  
60      private static final String LocationId4 = "T996";
61      private static final String LocationCode4 = "MockINSTITUTION";
62      private static final String LocationName4 = "Mock Institution";
63      private static final String LevelId4 = "1";
64      private static final String ParentLocationId4 = null;
65  
66  
67  
68  
69  
70  
71  
72      public Long getLoanTermUnit_VERSION_NUMBER(){
73          return LoanTermUnit_VERSION_NUMBER;
74      }
75  
76      public Long getLoanStatus_VERSION_NUMBER(){
77          return LoanStatus_VERSION_NUMBER;
78      }
79  
80  
81      public Long getLocation_VERSION_NUMBER(){
82          return Location_VERSION_NUMBER;
83      }
84  
85      public String getLocationId(){
86          return LocationId;
87      }
88  
89      public String getLocationCode(){
90          return LocationCode;
91      }
92  
93      public String getLocationName(){
94          return LocationName;
95      }
96  
97      public String getLevelId(){
98          return LevelId;
99      }
100 
101     public String getParentLocationId(){
102         return ParentLocationId;
103     }
104 
105 
106     public Long getVersionNumber(){
107         return VERSION_NUMBER;
108     }
109 
110     public Date getDueDate(){
111         return DueDate;
112     }
113 
114     public Date getLoanPeriodDate(){
115         return LoanPeriodDate;
116     }
117 
118     public Integer getLoanPeriod(){
119         return LoanPeriod;
120     }
121 
122     public String getLoanStatusId(){
123         return LoanStatusId;
124     }
125 
126     public String getLoanTermUnitId(){
127         return LoanTermUnitId;
128     }
129 
130     public String getLoanTermUnitCode(){
131         return LoanTermUnitCode;
132     }
133 
134     public String getLoanStatusName(){
135         return LoanStatusName;
136     }
137 
138     public String getLoanStatusCode(){
139         return LoanStatusCode;
140     }
141 
142     public String getLoanTermUnitName(){
143 
144         return LoanTermUnitName;
145     }
146 
147     public static String getLocationId1() {
148         return LocationId1;
149     }
150 
151     public static String getLocationCode1() {
152         return LocationCode1;
153     }
154 
155     public static String getLocationName1() {
156         return LocationName1;
157     }
158 
159     public static String getLevelId1() {
160         return LevelId1;
161     }
162 
163     public static String getParentLocationId1() {
164         return ParentLocationId1;
165     }
166 
167     public static String getLocationId2() {
168         return LocationId2;
169     }
170 
171     public static String getLocationCode2() {
172         return LocationCode2;
173     }
174 
175     public static String getLocationName2() {
176         return LocationName2;
177     }
178 
179     public static String getLevelId2() {
180         return LevelId2;
181     }
182 
183     public static String getParentLocationId2() {
184         return ParentLocationId2;
185     }
186 
187     public static String getLocationId3() {
188         return LocationId3;
189     }
190 
191     public static String getLocationCode3() {
192         return LocationCode3;
193     }
194 
195     public static String getLocationName3() {
196         return LocationName3;
197     }
198 
199     public static String getLevelId3() {
200         return LevelId3;
201     }
202 
203     public static String getParentLocationId3() {
204         return ParentLocationId3;
205     }
206 
207     public static String getLocationId4() {
208         return LocationId4;
209     }
210 
211     public static String getLocationCode4() {
212         return LocationCode4;
213     }
214 
215     public static String getLocationName4() {
216         return LocationName4;
217     }
218 
219     public static String getLevelId4() {
220         return LevelId4;
221     }
222 
223     public static String getParentLocationId4() {
224         return ParentLocationId4;
225     }
226 }