Coverage Report - org.kuali.rice.kew.routeheader.DocumentStatusTransition
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentStatusTransition
0%
0/23
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 org.hibernate.annotations.GenericGenerator;
 19  
 import org.hibernate.annotations.Parameter;
 20  
 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
 21  
 
 22  
 import javax.persistence.*;
 23  
 import java.sql.Timestamp;
 24  
 
 25  
 
 26  
 /**
 27  
  * Model bean representing the valid application document statuses for a document type
 28  
  * 
 29  
  * @author Kuali Rice Team (kuali-rice@googlegroups.com)
 30  
  *
 31  
  */
 32  
 @Entity
 33  
 @Table(name="KREW_APP_DOC_STAT_TRAN_T")
 34  
 public class DocumentStatusTransition extends PersistableBusinessObjectBase {
 35  
         private static final long serialVersionUID = -2212481684546954746L;
 36  
 
 37  
         @Id
 38  
         @GeneratedValue(generator="KREW_DOC_HDR_S")
 39  
         @GenericGenerator(name="KREW_DOC_HDR_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={
 40  
                         @Parameter(name="sequence_name",value="KREW_DOC_HDR_S"),
 41  
                         @Parameter(name="value_column",value="id")
 42  
         })
 43  
         @Column(name="APP_DOC_STAT_TRAN_ID")
 44  
         private String statusTransitionId;
 45  
         
 46  
         @Column(name="DOC_HDR_ID")
 47  
         private String documentId;
 48  
          
 49  
         @Column(name="APP_DOC_STAT_FROM")
 50  
         private String oldAppDocStatus;
 51  
         
 52  
         @Column(name="APP_DOC_STAT_TO")
 53  
         private String newAppDocStatus;
 54  
         
 55  
         @Column(name="STAT_TRANS_DATE")
 56  
         private java.sql.Timestamp statusTransitionDate;
 57  
         
 58  0
     public DocumentStatusTransition() {
 59  0
     }
 60  
 
 61  0
     public DocumentStatusTransition(String documentId, String oldStatus, String newStatus) {
 62  0
             this.documentId = documentId;
 63  0
             this.oldAppDocStatus = oldStatus;
 64  0
             this.newAppDocStatus = newStatus;
 65  0
             this.statusTransitionDate = new Timestamp(System.currentTimeMillis());
 66  0
     }
 67  
 
 68  
         public String getStatusTransitionId() {
 69  0
                 return this.statusTransitionId;
 70  
         }
 71  
 
 72  
         public void setStatusTransitionId(String statusTransitionId) {
 73  0
                 this.statusTransitionId = statusTransitionId;
 74  0
         }
 75  
 
 76  
         public String getDocumentId() {
 77  0
                 return this.documentId;
 78  
         }
 79  
 
 80  
         public void setDocumentId(String documentId) {
 81  0
                 this.documentId = documentId;
 82  0
         }
 83  
 
 84  
         public String getOldAppDocStatus() {
 85  0
                 return this.oldAppDocStatus;
 86  
         }
 87  
 
 88  
         public void setOldAppDocStatus(String oldAppDocStatus) {
 89  0
                 this.oldAppDocStatus = oldAppDocStatus;
 90  0
         }
 91  
 
 92  
         public String getNewAppDocStatus() {
 93  0
                 return this.newAppDocStatus;
 94  
         }
 95  
 
 96  
         public void setNewAppDocStatus(String newAppDocStatus) {
 97  0
                 this.newAppDocStatus = newAppDocStatus;
 98  0
         }
 99  
 
 100  
         public java.sql.Timestamp getStatusTransitionDate() {
 101  0
                 return this.statusTransitionDate;
 102  
         }
 103  
 
 104  
         public void setStatusTransitionDate(java.sql.Timestamp statusTransitionDate) {
 105  0
                 this.statusTransitionDate = statusTransitionDate;
 106  0
         }
 107  
 }