1 |
|
package org.kuali.db.jdbc; |
2 |
|
|
3 |
|
import java.util.Date; |
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
|
|
| 0% |
Uncovered Elements: 49 (49) |
Complexity: 22 |
Complexity Density: 0.81 |
|
8 |
|
public class SQLEvent { |
9 |
|
String message; |
10 |
|
MessagePriority priority; |
11 |
|
Date timestamp; |
12 |
|
Throwable exception; |
13 |
|
Transaction transaction; |
14 |
|
int totalStatements; |
15 |
|
int successfulStatements; |
16 |
|
String sql; |
17 |
|
int updateCountTotal; |
18 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
19 |
0
|
public SQLEvent() {... |
20 |
0
|
this(null); |
21 |
|
} |
22 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
23 |
0
|
public SQLEvent(String message) {... |
24 |
0
|
this(message, MessagePriority.INFO); |
25 |
|
} |
26 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
27 |
0
|
public SQLEvent(String message, MessagePriority priority) {... |
28 |
0
|
this(message, priority, new Date(), null, null); |
29 |
|
} |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
31 |
0
|
public SQLEvent(String message, MessagePriority priority, Date timestamp, Throwable exception,... |
32 |
|
Transaction transaction) { |
33 |
0
|
super(); |
34 |
0
|
this.message = message; |
35 |
0
|
this.priority = priority; |
36 |
0
|
this.timestamp = timestamp; |
37 |
0
|
this.exception = exception; |
38 |
0
|
this.transaction = transaction; |
39 |
|
} |
40 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
41 |
0
|
public String getMessage() {... |
42 |
0
|
return message; |
43 |
|
} |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
45 |
0
|
public void setMessage(String message) {... |
46 |
0
|
this.message = message; |
47 |
|
} |
48 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
49 |
0
|
public MessagePriority getPriority() {... |
50 |
0
|
return priority; |
51 |
|
} |
52 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
53 |
0
|
public void setPriority(MessagePriority priority) {... |
54 |
0
|
this.priority = priority; |
55 |
|
} |
56 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
0
|
public Date getTimestamp() {... |
58 |
0
|
return timestamp; |
59 |
|
} |
60 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
0
|
public void setTimestamp(Date timestamp) {... |
62 |
0
|
this.timestamp = timestamp; |
63 |
|
} |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
0
|
public Throwable getException() {... |
66 |
0
|
return exception; |
67 |
|
} |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
0
|
public void setException(Throwable exception) {... |
70 |
0
|
this.exception = exception; |
71 |
|
} |
72 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
73 |
0
|
public Transaction getTransaction() {... |
74 |
0
|
return transaction; |
75 |
|
} |
76 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
0
|
public void setTransaction(Transaction transaction) {... |
78 |
0
|
this.transaction = transaction; |
79 |
|
} |
80 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
81 |
0
|
public int getTotalStatements() {... |
82 |
0
|
return totalStatements; |
83 |
|
} |
84 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
0
|
public void setTotalStatements(int totalStatements) {... |
86 |
0
|
this.totalStatements = totalStatements; |
87 |
|
} |
88 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
89 |
0
|
public int getSuccessfulStatements() {... |
90 |
0
|
return successfulStatements; |
91 |
|
} |
92 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
93 |
0
|
public void setSuccessfulStatements(int successfulStatements) {... |
94 |
0
|
this.successfulStatements = successfulStatements; |
95 |
|
} |
96 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
97 |
0
|
public String getSql() {... |
98 |
0
|
return sql; |
99 |
|
} |
100 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
101 |
0
|
public void setSql(String sql) {... |
102 |
0
|
this.sql = sql; |
103 |
|
} |
104 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
105 |
0
|
public int getUpdateCountTotal() {... |
106 |
0
|
return updateCountTotal; |
107 |
|
} |
108 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
109 |
0
|
public void setUpdateCountTotal(int updateCountTotal) {... |
110 |
0
|
this.updateCountTotal = updateCountTotal; |
111 |
|
} |
112 |
|
} |