Coverage Report - org.kuali.rice.kew.engine.node.BranchState
 
Classes in this File Line Coverage Branch Coverage Complexity
BranchState
0%
0/12
N/A
1
 
 1  
 /*
 2  
  * Copyright 2005-2007 The Kuali Foundation
 3  
  * 
 4  
  * 
 5  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 6  
  * you may not use this file except in compliance with the License.
 7  
  * You may obtain a copy of the License at
 8  
  * 
 9  
  * http://www.opensource.org/licenses/ecl2.php
 10  
  * 
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.kuali.rice.kew.engine.node;
 18  
 
 19  
 import javax.persistence.*;
 20  
 
 21  
 /**
 22  
  * A piece of state on a {@link Branch} stored as a key-value pair of Strings.
 23  
  *
 24  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 25  
  */
 26  
 @Entity
 27  
 @Table(name="KREW_RTE_BRCH_ST_T")
 28  
 @AttributeOverride(name="stateId", column=@Column(name="RTE_BRCH_ST_ID"))
 29  
 public class BranchState extends State {
 30  
     /**
 31  
      * Prefix under which "variables" are stored in the branch state table, to distinguish
 32  
      * them from non-variable key/value pairs.
 33  
      */
 34  
     public static final String VARIABLE_PREFIX = "var::";
 35  
 
 36  
     private static final long serialVersionUID = -7642477013444817952L;
 37  
 
 38  
     @ManyToOne(fetch=FetchType.EAGER)
 39  
         @JoinColumn(name="RTE_BRCH_ID")
 40  
         private Branch branch;
 41  
     @Version
 42  
         @Column(name="VER_NBR")
 43  
         private Integer lockVerNbr;
 44  
     
 45  0
     public BranchState() {}
 46  
     
 47  
     public BranchState(String key, String value) {
 48  0
             super(key, value);
 49  0
     }
 50  
     
 51  
     public Branch getBranch() {
 52  0
         return branch;
 53  
     }
 54  
 
 55  
     public void setBranch(Branch branch) {
 56  0
         this.branch = branch;
 57  0
     }
 58  
 
 59  
     public String getBranchStateId() {
 60  0
         return getStateId();
 61  
     }
 62  
 
 63  
     public void setBranchStateId(String branchStateId) {
 64  0
         setStateId(branchStateId);
 65  0
     }
 66  
 
 67  
     public Integer getLockVerNbr() {
 68  0
         return lockVerNbr;
 69  
     }
 70  
 
 71  
     public void setLockVerNbr(Integer lockVerNbr) {
 72  0
         this.lockVerNbr = lockVerNbr;
 73  0
     }
 74  
 }
 75