Coverage Report - org.kuali.rice.krad.bo.SessionDocument
 
Classes in this File Line Coverage Branch Coverage Complexity
SessionDocument
0%
0/23
N/A
1
 
 1  
 /*
 2  
  * Copyright 2005-2008 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.Entity;
 20  
 import javax.persistence.Id;
 21  
 import javax.persistence.IdClass;
 22  
 import javax.persistence.Lob;
 23  
 import javax.persistence.Table;
 24  
 
 25  
 import org.hibernate.annotations.Type;
 26  
 
 27  
 import java.sql.Timestamp;
 28  
 
 29  
 /*
 30  
  * Defines methods a business object should implement.
 31  
  */
 32  
 @IdClass(org.kuali.rice.krad.bo.SessionDocumentId.class)
 33  
 @Entity
 34  
 @Table(name="KRNS_SESN_DOC_T")
 35  0
 public class SessionDocument extends PersistableBusinessObjectBase{
 36  
     
 37  
         private static final long serialVersionUID = 2866566562262830639L;
 38  
         
 39  
         @Id
 40  
         protected String documentNumber;
 41  
         @Id
 42  
         protected String sessionId;
 43  
         @Column(name="LAST_UPDT_DT")
 44  
         protected Timestamp lastUpdatedDate;
 45  
         @Lob
 46  
         @Column(name="SERIALZD_DOC_FRM")
 47  
         protected byte[] serializedDocumentForm;
 48  
         //private KualiDocumentFormBase serializedDocumentForm;
 49  0
         @Type(type="yes_no")
 50  
         @Column(name="CONTENT_ENCRYPTED_IND")
 51  
         protected boolean encrypted = false;
 52  
         @Id
 53  
         protected String principalId;
 54  
         @Id
 55  
         protected String ipAddress;
 56  
         
 57  
         
 58  
         /**
 59  
          * @return the serializedDocumentForm
 60  
          */
 61  
         public byte[] getSerializedDocumentForm() {
 62  0
                 return this.serializedDocumentForm;
 63  
         }
 64  
 
 65  
         /**
 66  
          * @param serializedDocumentForm the serializedDocumentForm to set
 67  
          */
 68  
         public void setSerializedDocumentForm(byte[] serializedDocumentForm) {
 69  0
                 this.serializedDocumentForm = serializedDocumentForm;
 70  0
         }
 71  
 
 72  
 
 73  
         /**
 74  
          * @return the sessionId
 75  
          */
 76  
         public String getSessionId() {
 77  0
                 return this.sessionId;
 78  
         }
 79  
 
 80  
         /**
 81  
          * @param sessionId the sessionId to set
 82  
          */
 83  
         public void setSessionId(String sessionId) {
 84  0
                 this.sessionId = sessionId;
 85  0
         }
 86  
 
 87  
         
 88  
         /**
 89  
          * @return the lastUpdatedDate
 90  
          */
 91  
         public Timestamp getLastUpdatedDate() {
 92  0
                 return this.lastUpdatedDate;
 93  
         }
 94  
 
 95  
         /**
 96  
          * @param lastUpdatedDate the lastUpdatedDate to set
 97  
          */
 98  
         public void setLastUpdatedDate(Timestamp lastUpdatedDate) {
 99  0
                 this.lastUpdatedDate = lastUpdatedDate;
 100  0
         }
 101  
 
 102  
         /**
 103  
          * @return the documentNumber
 104  
          */
 105  
         public String getDocumentNumber() {
 106  0
                 return this.documentNumber;
 107  
         }
 108  
 
 109  
         /**
 110  
          * @param documentNumber the documentNumber to set
 111  
          */
 112  
         public void setDocumentNumber(String documentNumber) {
 113  0
                 this.documentNumber = documentNumber;
 114  0
         }
 115  
 
 116  
         
 117  
         
 118  
         /**
 119  
          * @return the principalId
 120  
          */
 121  
         public String getPrincipalId() {
 122  0
                 return this.principalId;
 123  
         }
 124  
 
 125  
         /**
 126  
          * @param principalId the principalId to set
 127  
          */
 128  
         public void setPrincipalId(String principalId) {
 129  0
                 this.principalId = principalId;
 130  0
         }
 131  
 
 132  
         /**
 133  
          * @return the ipAddress
 134  
          */
 135  
         public String getIpAddress() {
 136  0
                 return this.ipAddress;
 137  
         }
 138  
 
 139  
         /**
 140  
          * @param ipAddress the ipAddress to set
 141  
          */
 142  
         public void setIpAddress(String ipAddress) {
 143  0
                 this.ipAddress = ipAddress;
 144  0
         }
 145  
 
 146  
         public boolean isEncrypted() {
 147  0
                 return this.encrypted;
 148  
         }
 149  
 
 150  
         public void setEncrypted(boolean encrypted) {
 151  0
                 this.encrypted = encrypted;
 152  0
         }
 153  
                 
 154  
 }