Coverage Report - org.kuali.rice.kns.bo.SessionDocumentId
 
Classes in this File Line Coverage Branch Coverage Complexity
SessionDocumentId
0%
0/19
N/A
1
 
 1  
 /*
 2  
  * Copyright 2006-2011 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  
 
 17  
 package org.kuali.rice.kns.bo;
 18  
 
 19  
 import org.kuali.rice.core.framework.persistence.jpa.CompositePrimaryKeyBase;
 20  
 
 21  
 import javax.persistence.Column;
 22  
 import javax.persistence.Id;
 23  
 
 24  
 /**
 25  
  * PK for SessionDocument.  'Cause we love the JPAness. 
 26  
  * 
 27  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 28  
  *
 29  
  */
 30  
 public class SessionDocumentId extends CompositePrimaryKeyBase {
 31  
         @Id
 32  
         @Column(name="DOC_HDR_ID")
 33  
         protected String documentNumber;
 34  
         @Id
 35  
         @Column(name="SESN_DOC_ID")
 36  
         protected String sessionId;
 37  
         @Id
 38  
         @Column(name="PRNCPL_ID")
 39  
         protected String principalId;
 40  
         @Id
 41  
         @Column(name="IP_ADDR")
 42  
         protected String ipAddress;
 43  
         
 44  0
         public SessionDocumentId() {}
 45  
         
 46  0
         public SessionDocumentId(String documentNumber, String sessionId, String principalId, String ipAddress) {
 47  0
                 this.documentNumber = documentNumber;
 48  0
                 this.sessionId = sessionId;
 49  0
                 this.principalId = principalId;
 50  0
                 this.ipAddress = ipAddress;
 51  0
         }
 52  
         
 53  
         /**
 54  
          * @return the documentNumber
 55  
          */
 56  
         public String getDocumentNumber() {
 57  0
                 return this.documentNumber;
 58  
         }
 59  
         /**
 60  
          * @return the sessionId
 61  
          */
 62  
         public String getSessionId() {
 63  0
                 return this.sessionId;
 64  
         }
 65  
         /**
 66  
          * @return the principalId
 67  
          */
 68  
         public String getPrincipalId() {
 69  0
                 return this.principalId;
 70  
         }
 71  
         /**
 72  
          * @return the ipAddress
 73  
          */
 74  
         public String getIpAddress() {
 75  0
                 return this.ipAddress;
 76  
         }
 77  
         /**
 78  
          * @param documentNumber the documentNumber to set
 79  
          */
 80  
         public void setDocumentNumber(String documentNumber) {
 81  0
                 this.documentNumber = documentNumber;
 82  0
         }
 83  
         /**
 84  
          * @param sessionId the sessionId to set
 85  
          */
 86  
         public void setSessionId(String sessionId) {
 87  0
                 this.sessionId = sessionId;
 88  0
         }
 89  
         /**
 90  
          * @param principalId the principalId to set
 91  
          */
 92  
         public void setPrincipalId(String principalId) {
 93  0
                 this.principalId = principalId;
 94  0
         }
 95  
         /**
 96  
          * @param ipAddress the ipAddress to set
 97  
          */
 98  
         public void setIpAddress(String ipAddress) {
 99  0
                 this.ipAddress = ipAddress;
 100  0
         }
 101  
         
 102  
 }