KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jetspeed > om > apps > email > EmailInbox


1 /*
2  * Copyright 2000-2001,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
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.apache.jetspeed.om.apps.email;
17
18 import org.apache.commons.lang.ObjectUtils;
19
20 import org.apache.torque.om.Persistent;
21
22 /**
23  * The skeleton for this class was autogenerated by Torque on:
24  *
25  * [Wed Mar 10 18:18:45 PST 2004]
26  *
27  * You should add additional methods to this class to meet the
28  * application requirements. This class will only be generated as
29  * long as it does not already exist in the output directory.
30  *
31  * @author <a HREF="mailto:taylor@apache.org">David Sean Taylor</a>
32  * @version $Id: EmailInbox.java,v 1.1 2004/03/11 18:32:05 taylor Exp $
33  *
34  */

35 public class EmailInbox
36     extends org.apache.jetspeed.om.apps.email.BaseEmailInbox
37     implements Persistent
38 {
39     /**
40      * The value for the attachment field
41      */

42     private byte[] attachment;
43     
44     /**
45      * Get the Attachment
46      *
47      * @return byte[]
48      */

49     public byte[] getAttachment()
50     {
51         return attachment;
52     }
53
54                                         
55     /**
56      * Set the value of Attachment
57      *
58      * @param v new value
59      */

60     public void setAttachment(byte[] v)
61     {
62         if (!ObjectUtils.equals(this.attachment, v))
63         {
64             this.attachment = v;
65             setModified(true);
66         }
67     }
68
69     
70     
71 }
72
Popular Tags