1   package ch.ige.edossier.web.vo;
2   
3   import java.io.Serializable;
4   import java.sql.Date;
5   
6   /**
7    * B32.03 - eDossier-Interceptions - Diplomarbeit an der Software-Schule Schweiz<br>
8    * Value-Object: Kapselt die Daten der Tabelle Interception
9    * <p>
10   * Copyright (c) 2004, Eidgenössisches Institut für Geistiges Eigentum
11   * @author    Anita Rueegsegger, Marc Bouquet
12   * @version   $Id: InterceptionVO.java,v 1.9 2004/10/22 01:58:20 bouquet Exp $
13   */
14  public class InterceptionVO implements Serializable
15  {
16    public static final int STATUS_NEW = 1;
17    public static final int STATUS_READ = 2;
18    public static final int STATUS_ANSWERD = 3;
19    public static final int STATUS_FINISHED = 4;
20  
21    private int interceptionId = 0;
22    private int dossierId = 0;
23    private int stateId = 0;
24    private String titel = null; // Clob in DB
25    private String text = null; // Clob in DB
26    private byte[] pdf = null; // Blob in DB
27    private Date letterDat = null;
28    private Date answerDat = null;
29    private Date expireDat = null;
30    private int eventIdat = 0;
31    private String maName = null;
32    private String maVname = null;
33    private String maEmail = null;
34    private String maTel = null;
35    private Date createdDat = null;
36    private Date changedDat = null;
37  
38    private AnswerVO answerVO = null;
39  
40  //  private StandardtextVO standardtextVO = null;
41  //  private StateVO stateVO = null;
42  
43    /**
44     * Gibt den Inhalt des ValueObject InterceptionVO zurück
45     * @return Inhalt von InterceptionVO
46     */
47    public String toString()
48    {
49      StringBuffer buf = new StringBuffer();
50  
51      buf.append( " interceptionId  = <" + this.interceptionId + ">\n" );
52      buf.append( " dossierId       = <" + this.dossierId + ">\n" );
53      buf.append( " stateId         = <" + this.stateId + ">\n" );
54      buf.append( " titel           = <" + this.titel + ">\n" );
55      buf.append( " text            = <" + this.text + ">\n" );
56      buf.append( " pdf             = <" + this.pdf + ">\n" );
57      buf.append( " letterDat       = <" + this.letterDat + ">\n" );
58      buf.append( " answerDat       = <" + this.answerDat + ">\n" );
59      buf.append( " expireDat       = <" + this.expireDat + ">\n" );
60      buf.append( " eventIdat       = <" + this.eventIdat + ">\n" );
61      buf.append( " maName          = <" + this.maName + ">\n" );
62      buf.append( " maVname         = <" + this.maVname + ">\n" );
63      buf.append( " maEmail         = <" + this.maEmail + ">\n" );
64      buf.append( " maTel           = <" + this.maTel + ">\n" );
65      buf.append( " createdDat      = <" + this.createdDat + "> \n" );
66      buf.append( " changedDat      = <" + this.changedDat + "> \n" );
67  
68      buf.append( " answerVO       = <" + ( this.answerVO == null ? "null" : answerVO.toString() ) + "> \n" );
69  //    buf.append( " standardtextVO = <" + (this.standardtextVO == null ? "null" : standardtextVO.toString()) + "> \n" );
70  //    buf.append( " stateVO        = <" + (this.stateVO == null ? "null" : stateVO.toString()) + "> \n" );
71  
72      return buf.toString();
73    }
74  
75    /*******************************************************************************************************************
76       G E T T E R - / S E T T E R - M E T H O D E N
77     *******************************************************************************************************************/
78  
79    public int getInterceptionId()
80    {
81      return interceptionId;
82    }
83  
84    public void setInterceptionId( int interceptionId )
85    {
86      this.interceptionId = interceptionId;
87    }
88  
89    public int getDossierId()
90    {
91      return dossierId;
92    }
93  
94    public void setDossierId( int dossierId )
95    {
96      this.dossierId = dossierId;
97    }
98  
99    public int getStateId()
100   {
101     return stateId;
102   }
103 
104   public void setStateId( int stateId )
105   {
106     this.stateId = stateId;
107   }
108 
109   public String getTitel()
110   {
111     return titel;
112   }
113 
114   public void setTitel( String titel )
115   {
116     this.titel = titel;
117   }
118 
119   public String getText()
120   {
121     return text;
122   }
123 
124   public void setText( String text )
125   {
126     this.text = text;
127   }
128 
129   public byte[] getPdf()
130   {
131     return pdf;
132   }
133 
134   public void setPdf( byte[] pdf )
135   {
136     this.pdf = pdf;
137   }
138 
139   public Date getLetterDat()
140   {
141     return letterDat;
142   }
143 
144   public void setLetterDat( Date letterDat )
145   {
146     this.letterDat = letterDat;
147   }
148 
149   public Date getAnswerDat()
150   {
151     return answerDat;
152   }
153 
154   public void setAnswerDat( Date answerDat )
155   {
156     this.answerDat = answerDat;
157   }
158 
159   public Date getExpireDat()
160   {
161     return expireDat;
162   }
163 
164   public void setExpireDat( Date expireDat )
165   {
166     this.expireDat = expireDat;
167   }
168 
169   public int getEventIdat()
170   {
171     return eventIdat;
172   }
173 
174   public void setEventIdat( int eventIdat )
175   {
176     this.eventIdat = eventIdat;
177   }
178 
179   public String getMaName()
180   {
181     return maName;
182   }
183 
184   public void setMaName( String maName )
185   {
186     this.maName = maName;
187   }
188 
189   public String getMaVname()
190   {
191     return maVname;
192   }
193 
194   public void setMaVname( String maVname )
195   {
196     this.maVname = maVname;
197   }
198 
199   public String getMaEmail()
200   {
201     return maEmail;
202   }
203 
204   public void setMaEmail( String maEmail )
205   {
206     this.maEmail = maEmail;
207   }
208 
209   public String getMaTel()
210   {
211     return maTel;
212   }
213 
214   public void setMaTel( String maTel )
215   {
216     this.maTel = maTel;
217   }
218 
219   public Date getCreatedDat()
220   {
221     return createdDat;
222   }
223 
224   public Date getChangedDat()
225   {
226     return changedDat;
227   }
228 
229   public AnswerVO getAnswerVO()
230   {
231     return answerVO;
232   }
233 
234   public void setAnswerVO( AnswerVO answerVO )
235   {
236     this.answerVO = answerVO;
237   }
238 
239   public void setChangedDat( Date changedDat )
240   {
241     this.changedDat = changedDat;
242   }
243 
244   public void setCreatedDat( Date createdDat )
245   {
246     this.createdDat = createdDat;
247   }
248 }
249