View Javadoc

1   /**
2    * Copyright 2005-2012 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.rice.krad.bo;
17  
18  import javax.persistence.Column;
19  import javax.persistence.Lob;
20  import javax.persistence.MappedSuperclass;
21  
22  /**
23   * This is a description of what this class does - chitra07 don't forget to fill this in. 
24   * 
25   * @author Kuali Rice Team (rice.collab@kuali.org)
26   *
27   */
28  @MappedSuperclass
29  public class PersistableAttachmentBase extends PersistableBusinessObjectBase implements PersistableAttachment {
30  	@Lob
31  	@Column(name="ATT_CNTNT")
32      private byte[] attachmentContent;
33  	@Column(name="FILE_NM")
34      private String fileName;
35  	@Column(name="CNTNT_TYP")
36      private String contentType;
37  
38      /**
39       * This overridden method ...
40       * 
41       * @see PersistableAttachment#getAttachmentContent()
42       */
43      public byte[] getAttachmentContent() {
44          return this.attachmentContent;
45      }
46  
47      /**
48       * This overridden method ...
49       * 
50       * @see PersistableAttachment#setAttachmentContent(byte[])
51       */
52      public void setAttachmentContent(byte[] attachmentContent) {
53          this.attachmentContent = attachmentContent;
54      }
55  
56      /**
57       * This overridden method ...
58       * 
59       * @see PersistableAttachment#getFileName()
60       */
61      public String getFileName() {
62          return fileName;
63      }
64  
65      /**
66       * This overridden method ...
67       * 
68       * @see PersistableAttachment#setFileName(java.lang.String)
69       */
70      public void setFileName(String fileName) {
71          this.fileName = fileName;
72      }
73  
74      /**
75       * This overridden method ...
76       * 
77       * @see PersistableAttachment#getContentType()
78       */
79      public String getContentType() {
80          return contentType;
81      }
82  
83      /**
84       * This overridden method ...
85       * 
86       * @see PersistableAttachment#setContentType(java.lang.String)
87       */
88      public void setContentType(String contentType) {
89          this.contentType = contentType;
90      }
91  }