Coverage Report - org.restafarian.core.beans.PersistentBeanBase
 
Classes in this File Line Coverage Branch Coverage Complexity
PersistentBeanBase
76%
13/17
N/A
1
 
 1  
 package org.restafarian.core.beans;
 2  
 
 3  
 import java.io.Serializable;
 4  
 import java.util.Date;
 5  
 
 6  
 /**
 7  
  * <p>This abstract class defines the base elements common to all
 8  
  * entity beans.</p>
 9  
  */
 10  2
 public abstract class PersistentBeanBase implements Serializable {
 11  
         private static final long serialVersionUID = 1;
 12  2
         private Date creationDate = null;
 13  2
         private String createdBy = null;
 14  2
         private Date lastUpdate = null;
 15  2
         private String lastUpdateBy = null;
 16  
 
 17  
         /**
 18  
          * <p>Returns the createdBy.</p>
 19  
          * 
 20  
          * @return the createdBy
 21  
          */
 22  
         public String getCreatedBy() {
 23  0
                 return createdBy;
 24  
         }
 25  
 
 26  
         /**
 27  
          * <p>Sets the createdBy.</p>
 28  
          * 
 29  
          * @param createdBy the createdBy to set
 30  
          */
 31  
         public void setCreatedBy(String createdBy) {
 32  2
                 this.createdBy = createdBy;
 33  2
         }
 34  
 
 35  
         /**
 36  
          * <p>Returns the creationDate.</p>
 37  
          * 
 38  
          * @return the creationDate
 39  
          */
 40  
         public Date getCreationDate() {
 41  0
                 return creationDate;
 42  
         }
 43  
 
 44  
         /**
 45  
          * <p>Sets the creationDate.</p>
 46  
          * 
 47  
          * @param creationDate the creationDate to set
 48  
          */
 49  
         public void setCreationDate(Date creationDate) {
 50  2
                 this.creationDate = creationDate;
 51  2
         }
 52  
 
 53  
         /**
 54  
          * <p>Returns the lastUpdate.</p>
 55  
          * 
 56  
          * @return the lastUpdate
 57  
          */
 58  
         public Date getLastUpdate() {
 59  0
                 return lastUpdate;
 60  
         }
 61  
 
 62  
         /**
 63  
          * <p>Sets the lastUpdate.</p>
 64  
          * 
 65  
          * @param lastUpdate the lastUpdate to set
 66  
          */
 67  
         public void setLastUpdate(Date lastUpdate) {
 68  2
                 this.lastUpdate = lastUpdate;
 69  2
         }
 70  
 
 71  
         /**
 72  
          * <p>Returns the lastUpdateBy.</p>
 73  
          * 
 74  
          * @return the lastUpdateBy
 75  
          */
 76  
         public String getLastUpdateBy() {
 77  0
                 return lastUpdateBy;
 78  
         }
 79  
 
 80  
         /**
 81  
          * <p>Sets the lastUpdateBy.</p>
 82  
          * 
 83  
          * @param lastUpdateBy the lastUpdateBy to set
 84  
          */
 85  
         public void setLastUpdateBy(String lastUpdateBy) {
 86  2
                 this.lastUpdateBy = lastUpdateBy;
 87  2
         }
 88  
 }