1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.jdbc;
17
18 public class ExecutionResult {
19
20 long updateCount;
21 long startTimeMillis;
22 long stopTimeMillis;
23 long elapsed;
24
25 public ExecutionResult() {
26 this(0, 0, 0);
27 }
28
29 public ExecutionResult(long updateCount, long startTimeMillis, long stopTimeMillis) {
30 super();
31 this.updateCount = updateCount;
32 this.startTimeMillis = startTimeMillis;
33 this.stopTimeMillis = stopTimeMillis;
34 this.elapsed = stopTimeMillis - startTimeMillis;
35 }
36
37 public long getUpdateCount() {
38 return updateCount;
39 }
40
41 public void setUpdateCount(long updateCount) {
42 this.updateCount = updateCount;
43 }
44
45 public long getStartTimeMillis() {
46 return startTimeMillis;
47 }
48
49 public void setStartTimeMillis(long startTimeMillis) {
50 this.startTimeMillis = startTimeMillis;
51 }
52
53 public long getStopTimeMillis() {
54 return stopTimeMillis;
55 }
56
57 public void setStopTimeMillis(long stopTimeMillis) {
58 this.stopTimeMillis = stopTimeMillis;
59 }
60
61 public long getElapsed() {
62 return elapsed;
63 }
64
65 public void setElapsed(long elapsed) {
66 this.elapsed = elapsed;
67 }
68
69 }