Clover Coverage Report - KS LUM 1.2.1-SNAPSHOT (Aggregated)
Coverage timestamp: Wed Nov 2 2011 05:59:10 EST
../../../../../../../img/srcFileCovDistChart0.png 47% of files have more coverage
17   132   16   1.13
2   83   0.94   7.5
15     1.07  
2    
 
  MetaInfoHelper       Line # 25 15 0% 14 30 0% 0.0
  MetaInfoHelper.Properties       Line # 29 2 0% 2 4 0% 0.0
 
No Tests
 
1    /*
2    * Copyright 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.osedu.org/licenses/ECL-2.0
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.student.lum.common.client.lo;
17   
18   
19    import java.util.Date;
20   
21    import org.kuali.student.common.assembly.data.Data;
22    import org.kuali.student.common.assembly.helper.PropertyEnum;
23   
24   
 
25    public class MetaInfoHelper
26    {
27    private static final long serialVersionUID = 1;
28   
 
29    public enum Properties implements PropertyEnum
30    {
31    VERSION_IND ("versionInd"),
32    CREATE_TIME ("createTime"),
33    CREATE_ID ("createId"),
34    UPDATE_TIME ("updateTime"),
35    UPDATE_ID ("updateId");
36   
37    private final String key;
38   
 
39  0 toggle private Properties (final String key)
40    {
41  0 this.key = key;
42    }
43   
 
44  0 toggle @Override
45    public String getKey ()
46    {
47  0 return this.key;
48    }
49    }
50    private Data data;
51   
 
52  0 toggle private MetaInfoHelper (Data data)
53    {
54  0 this.data = data;
55    }
56   
 
57  0 toggle public static MetaInfoHelper wrap (Data data)
58    {
59  0 if (data == null)
60    {
61  0 return null;
62    }
63  0 return new MetaInfoHelper (data);
64    }
65   
 
66  0 toggle public Data getData ()
67    {
68  0 return data;
69    }
70   
71   
 
72  0 toggle public void setVersionInd (String value)
73    {
74  0 data.set (Properties.VERSION_IND.getKey (), value);
75    }
76   
77   
 
78  0 toggle public String getVersionInd ()
79    {
80  0 return (String) data.get (Properties.VERSION_IND.getKey ());
81    }
82   
83   
 
84  0 toggle public void setCreateTime (Date value)
85    {
86  0 data.set (Properties.CREATE_TIME.getKey (), value);
87    }
88   
89   
 
90  0 toggle public Date getCreateTime ()
91    {
92  0 return (Date) data.get (Properties.CREATE_TIME.getKey ());
93    }
94   
95   
 
96  0 toggle public void setCreateId (String value)
97    {
98  0 data.set (Properties.CREATE_ID.getKey (), value);
99    }
100   
101   
 
102  0 toggle public String getCreateId ()
103    {
104  0 return (String) data.get (Properties.CREATE_ID.getKey ());
105    }
106   
107   
 
108  0 toggle public void setUpdateTime (Date value)
109    {
110  0 data.set (Properties.UPDATE_TIME.getKey (), value);
111    }
112   
113   
 
114  0 toggle public Date getUpdateTime ()
115    {
116  0 return (Date) data.get (Properties.UPDATE_TIME.getKey ());
117    }
118   
119   
 
120  0 toggle public void setUpdateId (String value)
121    {
122  0 data.set (Properties.UPDATE_ID.getKey (), value);
123    }
124   
125   
 
126  0 toggle public String getUpdateId ()
127    {
128  0 return (String) data.get (Properties.UPDATE_ID.getKey ());
129    }
130   
131    }
132