001/**
002 * Copyright 2005-2016 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.krad.bo;
017
018import javax.persistence.Column;
019import javax.persistence.Lob;
020import javax.persistence.MappedSuperclass;
021
022/**
023 * This is a description of what this class does - chitra07 don't forget to fill this in. 
024 * 
025 * @author Kuali Rice Team (rice.collab@kuali.org)
026 *
027 */
028@MappedSuperclass
029public class PersistableAttachmentBase extends PersistableBusinessObjectBase implements PersistableAttachment {
030        @Lob
031        @Column(name="ATT_CNTNT")
032    private byte[] attachmentContent;
033        @Column(name="FILE_NM")
034    private String fileName;
035        @Column(name="CNTNT_TYP")
036    private String contentType;
037
038    /**
039     * This overridden method ...
040     * 
041     * @see PersistableAttachment#getAttachmentContent()
042     */
043    public byte[] getAttachmentContent() {
044        return this.attachmentContent;
045    }
046
047    /**
048     * This overridden method ...
049     * 
050     * @see PersistableAttachment#setAttachmentContent(byte[])
051     */
052    public void setAttachmentContent(byte[] attachmentContent) {
053        this.attachmentContent = attachmentContent;
054    }
055
056    /**
057     * This overridden method ...
058     * 
059     * @see PersistableAttachment#getFileName()
060     */
061    public String getFileName() {
062        return fileName;
063    }
064
065    /**
066     * This overridden method ...
067     * 
068     * @see PersistableAttachment#setFileName(java.lang.String)
069     */
070    public void setFileName(String fileName) {
071        this.fileName = fileName;
072    }
073
074    /**
075     * This overridden method ...
076     * 
077     * @see PersistableAttachment#getContentType()
078     */
079    public String getContentType() {
080        return contentType;
081    }
082
083    /**
084     * This overridden method ...
085     * 
086     * @see PersistableAttachment#setContentType(java.lang.String)
087     */
088    public void setContentType(String contentType) {
089        this.contentType = contentType;
090    }
091}