1 |
|
|
2 |
|
package pl.magot.vetch.ancal.database; |
3 |
|
|
4 |
|
|
5 |
|
|
|
|
| 81,8% |
Uncovered Elements: 4 (22) |
Complexity: 6 |
Complexity Density: 0,38 |
|
6 |
|
public class DataRowAlarm extends DataRow |
7 |
|
{ |
8 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
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 |
|
|
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 |
|
|
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 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
37 |
35
|
public DataRowAlarm(Database userdb)... |
38 |
|
{ |
39 |
35
|
super(userdb); |
40 |
35
|
SetTableDefinition(TableDef); |
41 |
|
} |
42 |
|
|
43 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
0
|
@Override... |
45 |
|
public String toString() |
46 |
|
{ |
47 |
0
|
return ""; |
48 |
|
} |
49 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
0
|
@Override... |
51 |
|
public boolean Validate() |
52 |
|
{ |
53 |
0
|
return true; |
54 |
|
} |
55 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0,17 |
|
56 |
3
|
@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 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0,2 |
|
68 |
7
|
@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 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
78 |
58
|
@Override... |
79 |
|
public String GetTableName() |
80 |
|
{ |
81 |
58
|
return Database.sTableNameAlarms; |
82 |
|
} |
83 |
|
|
84 |
|
} |