Coverage Report - org.kuali.rice.kew.routeheader.DocumentStatusTransition
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentStatusTransition
0%
0/29
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2010 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.kew.routeheader;
 17  
 
 18  
 import java.sql.Timestamp;
 19  
 import java.util.LinkedHashMap;
 20  
 
 21  
 import javax.persistence.Column;
 22  
 import javax.persistence.Entity;
 23  
 import javax.persistence.Id;
 24  
 import javax.persistence.IdClass;
 25  
 import javax.persistence.Table;
 26  
 
 27  
 import org.kuali.rice.kew.bo.KewPersistableBusinessObjectBase;
 28  
 
 29  
 
 30  
 /**
 31  
  * Model bean representing the valid application document statuses for a document type
 32  
  * 
 33  
  * @author Kuali Rice Team (kuali-rice@googlegroups.com)
 34  
  *
 35  
  */
 36  
 @Entity
 37  
 @Table(name="KREW_APP_DOC_STAT_TRAN_T")
 38  
 public class DocumentStatusTransition extends KewPersistableBusinessObjectBase {
 39  
         private static final long serialVersionUID = -2212481684546954746L;
 40  
 
 41  
         @Id
 42  
         @Column(name="APP_DOC_STAT_TRAN_ID")
 43  
         private Long statusTransitionId;
 44  
         
 45  
         @Column(name="DOC_HDR_ID")
 46  
         private Long routeHeaderId;
 47  
          
 48  
         @Column(name="APP_DOC_STAT_FROM")
 49  
         private String oldAppDocStatus;
 50  
         
 51  
         @Column(name="APP_DOC_STAT_TO")
 52  
         private String newAppDocStatus;
 53  
         
 54  
         @Column(name="STAT_TRANS_DATE")
 55  
         private java.sql.Timestamp statusTransitionDate;
 56  
         
 57  0
     public DocumentStatusTransition() {
 58  0
     }
 59  
 
 60  0
     public DocumentStatusTransition(Long routeHeaderId, String oldStatus, String newStatus) {
 61  0
             this.routeHeaderId = routeHeaderId;
 62  0
             this.oldAppDocStatus = oldStatus;
 63  0
             this.newAppDocStatus = newStatus;
 64  0
             this.statusTransitionDate = new Timestamp(System.currentTimeMillis());
 65  0
     }
 66  
     /**
 67  
          * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
 68  
          */
 69  
         @Override
 70  
         protected LinkedHashMap toStringMapper() {
 71  0
         LinkedHashMap m = new LinkedHashMap();
 72  0
         m.put("routeHeaderId", this.routeHeaderId);
 73  0
         m.put("oldAppDocStatus", this.oldAppDocStatus);
 74  0
         m.put("newAppDocStatus", this.newAppDocStatus);
 75  0
         m.put("statusTransitionDate", this.statusTransitionDate);
 76  0
                 return m;
 77  
         }
 78  
 
 79  
         public Long getStatusTransitionId() {
 80  0
                 return this.statusTransitionId;
 81  
         }
 82  
 
 83  
         public void setStatusTransitionId(Long statusTransitionId) {
 84  0
                 this.statusTransitionId = statusTransitionId;
 85  0
         }
 86  
 
 87  
         public Long getRouteHeaderId() {
 88  0
                 return this.routeHeaderId;
 89  
         }
 90  
 
 91  
         public void setRouteHeaderId(Long headerId) {
 92  0
                 this.routeHeaderId = headerId;
 93  0
         }
 94  
 
 95  
         public String getOldAppDocStatus() {
 96  0
                 return this.oldAppDocStatus;
 97  
         }
 98  
 
 99  
         public void setOldAppDocStatus(String oldAppDocStatus) {
 100  0
                 this.oldAppDocStatus = oldAppDocStatus;
 101  0
         }
 102  
 
 103  
         public String getNewAppDocStatus() {
 104  0
                 return this.newAppDocStatus;
 105  
         }
 106  
 
 107  
         public void setNewAppDocStatus(String newAppDocStatus) {
 108  0
                 this.newAppDocStatus = newAppDocStatus;
 109  0
         }
 110  
 
 111  
         public java.sql.Timestamp getStatusTransitionDate() {
 112  0
                 return this.statusTransitionDate;
 113  
         }
 114  
 
 115  
         public void setStatusTransitionDate(java.sql.Timestamp statusTransitionDate) {
 116  0
                 this.statusTransitionDate = statusTransitionDate;
 117  0
         }
 118  
 }