Clover Coverage Report - AnCal Coverage Report
Coverage timestamp: gio dic 18 2014 12:18:42 EST
../../../../../img/srcFileCovDistChart9.png 40% of files have more coverage
16   84   6   2,67
0   65   0,38   3
6     1  
2    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  DataRowAlarm       Line # 6 16 6 81,8% 0.8181818
  DataRowAlarm.fid       Line # 9 0 0 - -1.0
 
No Tests
 
1   
2    package pl.magot.vetch.ancal.database;
3   
4   
5    //TaskData class
 
6    public class DataRowAlarm extends DataRow
7    {
8    //Table field indexes for field select speedup
 
9    public static class fid
10    {
11    public static final int ID = 0;
12    public static final int Type = 1;
13    public static final int RefID = 2;
14    public static final int ActionClear = 3;
15    public static final int ActionSnooze = 4;
16    public static final int SnoozeCount = 5;
17    };
18   
19    //Table definition
20    private final DataField[] TableDef = {
21    new DataField(fid.ID, "_ID", DataField.Type.INT, true, true),
22    new DataField(fid.Type, "Type", DataField.Type.TEXT, true, false),
23    new DataField(fid.RefID, "RefID", DataField.Type.INT, true, false),
24    new DataField(fid.ActionClear, "ActionClear", DataField.Type.INT, true, false),
25    new DataField(fid.ActionSnooze, "ActionSnooze", DataField.Type.INT, true, false),
26    new DataField(fid.SnoozeCount, "ActionSnoozeCount", DataField.Type.INT, true, false),
27    };
28   
29    //fields
30    public long lType = 0;
31    public long lRefID = 0;
32    public long lActionClear = 0;
33    public long lActionSnooze = 0;
34    public long lSnoozeCount = 0;
35   
36    //methods
 
37  35 toggle public DataRowAlarm(Database userdb)
38    {
39  35 super(userdb);
40  35 SetTableDefinition(TableDef);
41    }
42   
43    //methods
 
44  0 toggle @Override
45    public String toString()
46    {
47  0 return "";
48    }
49   
 
50  0 toggle @Override
51    public boolean Validate()
52    {
53  0 return true;
54    }
55   
 
56  3 toggle @Override
57    public void SetValuesForDataRow()
58    {
59  3 ClearContentValues();
60   
61  3 Value(fid.Type).set(lType);
62  3 Value(fid.RefID).set(lRefID);
63  3 Value(fid.ActionClear).set(lActionClear);
64  3 Value(fid.ActionSnooze).set(lActionSnooze);
65  3 Value(fid.SnoozeCount).set(lSnoozeCount);
66    }
67   
 
68  7 toggle @Override
69    public void GetValuesFromDataRow()
70    {
71  7 lType = Value(fid.Type).asLong();
72  7 lRefID = Value(fid.RefID).asLong();
73  7 lActionClear = Value(fid.ActionClear).asLong();
74  7 lActionSnooze = Value(fid.ActionSnooze).asLong();
75  7 lSnoozeCount = Value(fid.SnoozeCount).asLong();
76    }
77   
 
78  58 toggle @Override
79    public String GetTableName()
80    {
81  58 return Database.sTableNameAlarms;
82    }
83   
84    }