1   package ch.ige.edossier.web.vo;
2   
3   import java.io.Serializable;
4   import java.sql.Date;
5   import java.util.List;
6   
7   /**
8    * B32.03 - eDossier-Interceptions - Diplomarbeit an der Software-Schule Schweiz<br>
9    * Value-Object: Kapselt die Daten der Tabelle Dossier
10   * <p>
11   * Copyright (c) 2004, Eidgenössisches Institut für Geistiges Eigentum
12   * @author    Anita Rueegsegger, Marc Bouquet
13   * @version   $Id: DossierVO.java,v 1.19 2004/11/01 13:52:19 ruegsegger Exp $
14   */
15  public class DossierVO implements Serializable
16  {
17    private int dossierId = 0;
18    private int accountId = 0;
19    private int tmtypeId = 0;
20    private int languageCd = 0;
21    private String language = null;
22    private String requestNr = null;
23    private String guardNr = null;
24    private String description = null;
25    private Date beginDat = null;
26    private String reference = null;
27    private String colorclaim = null; //Clob in DB
28    private int stateId = 0; // Dossier-Status anhand Interception-Status bestimmen
29    private Date createdDat = null;
30    private Date changedDat = null;
31  
32    private ImageVO imageVO = null;
33    private AccountVO accountVO = null;
34    private TMTypeVO tmTypeVO = null; // wird wahrscheinlich nicht benötigt
35    private InterceptionVO interceptionVO = null;
36  
37    private List listInterceptionVO = null; // wird wahrscheinlich nicht benötigt
38    private List listPriorityVO = null;
39    private List listTMKindVO = null;
40    private List listAddressVO = null; //wird für Transfer verwendet
41    private List listRoleAdrDossierVO = null; // wird für Transfer verwendet
42  
43    private List listAdrBailor = null; // Hinterleger
44    private List listAdrMasterAgent = null; // Hauptvertreter
45    private List listAdrAgent = null; // Vertreter
46  
47    /**
48     * Gibt den Inhalt des ValueObject DossierVO zurück
49     * @return Inhalt von DossierVO
50     */
51    public String toString()
52    {
53      StringBuffer buf = new StringBuffer();
54      StringBuffer tmp = new StringBuffer();
55  
56      buf.append( " dossierId       = <" + this.dossierId + ">\n" );
57      buf.append( " accountId       = <" + this.accountId + ">\n" );
58      buf.append( " tmtypeId        = <" + this.tmtypeId + ">\n" );
59      buf.append( " languageCd      = <" + this.languageCd + ">\n" );
60      buf.append( " language        = <" + this.language + ">\n" );
61      buf.append( " requestNr       = <" + this.requestNr + ">\n" );
62      buf.append( " guardNr         = <" + this.guardNr + ">\n" );
63      buf.append( " description     = <" + this.description + ">\n" );
64      buf.append( " beginDat        = <" + this.beginDat + ">\n" );
65      buf.append( " reference       = <" + this.reference + ">\n" );
66      buf.append( " colorclaim      = <" + this.colorclaim + ">\n" );
67      buf.append( " stateId         = <" + this.stateId + ">\n" );
68      buf.append( " createdDat      = <" + this.createdDat + "> \n" );
69      buf.append( " changedDat      = <" + this.changedDat + "> \n" );
70  
71      buf.append( " imageVO         = <" + ( imageVO == null ? "null" : imageVO.toString() ) + "> \n" );
72      buf.append( " accountVO       = <" + ( accountVO == null ? "null" : accountVO.toString() ) + "> \n" );
73      buf.append( " tmTypeVO        = <" + ( tmTypeVO == null ? "null" : tmTypeVO.toString() ) + "> \n" );
74      buf.append( " interceptionVO  = <" + ( interceptionVO == null ? "null" : interceptionVO.toString() ) + "> \n" );
75  
76      // List listInterceptionVO
77      if( listInterceptionVO == null || listInterceptionVO.size() == 0 )
78      {
79        buf.append( " listInterceptionVO    = <keine>\n" );
80      }
81      else
82      {
83        tmp = new StringBuffer();
84  
85        for( int i = 0; i < listInterceptionVO.size(); i++ )
86        {
87          tmp.append( listInterceptionVO.get( i ).toString() + "\n" );
88        }
89        buf.append( " listInterceptionVO   \n" + tmp.toString() );
90      }
91  
92      // List listPriorityVO
93      if( listPriorityVO == null || listPriorityVO.size() == 0 )
94      {
95        buf.append( " listPriorityVO        = <keine>\n" );
96      }
97      else
98      {
99        tmp = new StringBuffer();
100 
101       for( int i = 0; i < listPriorityVO.size(); i++ )
102       {
103         tmp.append( listPriorityVO.get( i ).toString() + "\n" );
104       }
105       buf.append( " listPriorityVO       \n" + tmp.toString() );
106     }
107 
108     // List listTMKindVO
109     if( listTMKindVO == null || listTMKindVO.size() == 0 )
110     {
111       buf.append( " listTMKindVO          = <keine>\n" );
112     }
113     else
114     {
115       tmp = new StringBuffer();
116 
117       for( int i = 0; i < listTMKindVO.size(); i++ )
118       {
119         tmp.append( listTMKindVO.get( i ).toString() + "\n" );
120       }
121       buf.append( " listTMKindVO         \n" + tmp.toString() );
122     }
123 
124     // List listAddressVO
125     if( listAddressVO == null || listAddressVO.size() == 0 )
126     {
127       buf.append( " listAddressVO         = <keine>\n" );
128     }
129     else
130     {
131       tmp = new StringBuffer();
132 
133       for( int i = 0; i < listAddressVO.size(); i++ )
134       {
135         tmp.append( listAddressVO.get( i ).toString() + "\n" );
136       }
137       buf.append( " listAddressVO         \n" + tmp.toString() );
138     }
139 
140     // List listRoleAdrDossierVO
141     if( listRoleAdrDossierVO == null || listRoleAdrDossierVO.size() == 0 )
142     {
143       buf.append( " listRoleAdrDossierVO  = <keine>\n" );
144     }
145     else
146     {
147       tmp = new StringBuffer();
148 
149       for( int i = 0; i < listRoleAdrDossierVO.size(); i++ )
150       {
151         tmp.append( listRoleAdrDossierVO.get( i ).toString() + "\n" );
152       }
153       buf.append( " listRoleAdrDossierVO     \n" + tmp.toString() );
154     }
155 
156     // List listAdrAgent
157     if( listAdrAgent == null || listAdrAgent.size() == 0 )
158     {
159       buf.append( " listAdrAgent          = <keine>\n" );
160     }
161     else
162     {
163       tmp = new StringBuffer();
164 
165       for( int i = 0; i < listAdrAgent.size(); i++ )
166       {
167         tmp.append( listAdrAgent.get( i ).toString() + "\n" );
168       }
169       buf.append( " listAdrAgent         \n" + tmp.toString() );
170     }
171 
172     // List listAdrMasterAgent
173     if( listAdrMasterAgent == null || listAdrMasterAgent.size() == 0 )
174     {
175       buf.append( " listAdrMasterAgent          = <keine>\n" );
176     }
177     else
178     {
179       tmp = new StringBuffer();
180 
181       for( int i = 0; i < listAdrMasterAgent.size(); i++ )
182       {
183         tmp.append( listAdrMasterAgent.get( i ).toString() + "\n" );
184       }
185       buf.append( " listAdrMasterAgent         \n" + tmp.toString() );
186     }
187 
188     // List listAdrBailor
189     if( listAdrBailor == null || listAdrBailor.size() == 0 )
190     {
191       buf.append( " listAdrBailor          = <keine>\n" );
192     }
193     else
194     {
195       tmp = new StringBuffer();
196 
197       for( int i = 0; i < listAdrBailor.size(); i++ )
198       {
199         tmp.append( listAdrBailor.get( i ).toString() + "\n" );
200       }
201       buf.append( " listAdrBailor         \n" + tmp.toString() );
202     }
203 
204     return buf.toString();
205   }
206 
207   /*******************************************************************************************************************
208      G E T T E R - / S E T T E R - M E T H O D E N
209    *******************************************************************************************************************/
210 
211   public int getDossierId()
212   {
213     return dossierId;
214   }
215 
216   public void setDossierId( int dossierId )
217   {
218     this.dossierId = dossierId;
219   }
220 
221   public int getAccountId()
222   {
223     return accountId;
224   }
225 
226   public void setAccountId( int accountId )
227   {
228     this.accountId = accountId;
229   }
230 
231   public int getTmtypeId()
232   {
233     return tmtypeId;
234   }
235 
236   public void setTmtypeId( int tmtypeId )
237   {
238     this.tmtypeId = tmtypeId;
239   }
240 
241   public int getLanguageCd()
242   {
243     return languageCd;
244   }
245 
246   public void setLanguageCd( int languageCd )
247   {
248     this.languageCd = languageCd;
249   }
250 
251   public String getRequestNr()
252   {
253     return requestNr;
254   }
255 
256   public void setRequestNr( String requestNr )
257   {
258     this.requestNr = requestNr;
259   }
260 
261   public String getGuardNr()
262   {
263     return guardNr;
264   }
265 
266   public void setGuardNr( String guardNr )
267   {
268     this.guardNr = guardNr;
269   }
270 
271   public String getDescription()
272   {
273     return description;
274   }
275 
276   public void setDescription( String description )
277   {
278     this.description = description;
279   }
280 
281   public Date getBeginDat()
282   {
283     return beginDat;
284   }
285 
286   public void setBeginDat( Date beginDat )
287   {
288     this.beginDat = beginDat;
289   }
290 
291   public String getReference()
292   {
293     return reference;
294   }
295 
296   public void setReference( String reference )
297   {
298     this.reference = reference;
299   }
300 
301   public String getColorclaim()
302   {
303     return colorclaim;
304   }
305 
306   public void setColorclaim( String colorclaim )
307   {
308     this.colorclaim = colorclaim;
309   }
310 
311   public Date getCreatedDat()
312   {
313     return createdDat;
314   }
315 
316   public Date getChangedDat()
317   {
318     return changedDat;
319   }
320 
321   public TMTypeVO getTmTypeVO()
322   {
323     return tmTypeVO;
324   }
325 
326   public void setTmTypeVO( TMTypeVO tmTypeVO )
327   {
328     this.tmTypeVO = tmTypeVO;
329   }
330 
331   public AccountVO getAccountVO()
332   {
333     return accountVO;
334   }
335 
336   public void setAccountVO( AccountVO accountVO )
337   {
338     this.accountVO = accountVO;
339   }
340 
341   public void setChangedDat( Date changedDat )
342   {
343     this.changedDat = changedDat;
344   }
345 
346   public void setCreatedDat( Date createdDat )
347   {
348     this.createdDat = createdDat;
349   }
350 
351   public List getListInterceptionVO()
352   {
353     return listInterceptionVO;
354   }
355 
356   public List getListPriorityVO()
357   {
358     return listPriorityVO;
359   }
360 
361   public List getListTMKindVO()
362   {
363     return listTMKindVO;
364   }
365 
366   public void setListTMKindVO( List listTMKindVO )
367   {
368     this.listTMKindVO = listTMKindVO;
369   }
370 
371   public void setListPriorityVO( List listPriorityVO )
372   {
373     this.listPriorityVO = listPriorityVO;
374   }
375 
376   public void setListInterceptionVO( List listInterceptionVO )
377   {
378     this.listInterceptionVO = listInterceptionVO;
379   }
380 
381   public List getListAdrAgent()
382   {
383     return listAdrAgent;
384   }
385 
386   public List getListAdrBailor()
387   {
388     return listAdrBailor;
389   }
390 
391   public List getListAdrMasterAgent()
392   {
393     return listAdrMasterAgent;
394   }
395 
396   public void setListAdrMasterAgent( List listAdrMasterAgent )
397   {
398     this.listAdrMasterAgent = listAdrMasterAgent;
399   }
400 
401   public void setListAdrBailor( List listAdrBailor )
402   {
403     this.listAdrBailor = listAdrBailor;
404   }
405 
406   public void setListAdrAgent( List listAdrAgent )
407   {
408     this.listAdrAgent = listAdrAgent;
409   }
410 
411   public int getStateId()
412   {
413     return stateId;
414   }
415 
416   public void setStateId( int stateId )
417   {
418     this.stateId = stateId;
419   }
420 
421   public String getLanguage()
422   {
423     return language;
424   }
425 
426   public void setLanguage( String language )
427   {
428     this.language = language;
429   }
430 
431   public ImageVO getImageVO()
432   {
433     return imageVO;
434   }
435 
436   public void setImageVO( ImageVO imageVO )
437   {
438     this.imageVO = imageVO;
439   }
440 
441   public InterceptionVO getInterceptionVO()
442   {
443     return interceptionVO;
444   }
445 
446   public void setInterceptionVO( InterceptionVO interceptionVO )
447   {
448     this.interceptionVO = interceptionVO;
449   }
450 
451   public List getListAddressVO()
452   {
453     return listAddressVO;
454   }
455 
456   public void setListAddressVO( List listAddressVO )
457   {
458     this.listAddressVO = listAddressVO;
459   }
460 
461   public void setListRoleAdrDossierVO( List listRoleAdrDossierVO )
462   {
463     this.listRoleAdrDossierVO = listRoleAdrDossierVO;
464   }
465 
466   public List getListRoleAdrDossierVO()
467   {
468     return listRoleAdrDossierVO;
469   }
470 }
471