Skip to content

Commit 98298fd

Browse files
convert PostEvent to Java
1 parent 845bcdd commit 98298fd

1 file changed

Lines changed: 71 additions & 18 deletions

File tree

sqldev/src/main/java/org/utplsql/sqldev/model/runner/PostEvent.java

Lines changed: 71 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,74 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.utplsql.sqldev.model.runner
17-
18-
import org.eclipse.xtend.lib.annotations.Accessors
19-
20-
@Accessors
21-
abstract class PostEvent extends RealtimeReporterEvent {
22-
String startTime
23-
String endTime
24-
Double executionTime
25-
Counter counter
26-
String errorStack
27-
String serverOutput
28-
String warnings
29-
30-
new() {
31-
counter = new Counter
32-
}
33-
}
16+
package org.utplsql.sqldev.model.runner;
17+
18+
public abstract class PostEvent extends RealtimeReporterEvent {
19+
private String startTime;
20+
private String endTime;
21+
private Double executionTime;
22+
private Counter counter;
23+
private String errorStack;
24+
private String serverOutput;
25+
private String warnings;
26+
27+
public PostEvent() {
28+
counter = new Counter();
29+
}
30+
31+
public String getStartTime() {
32+
return startTime;
33+
}
34+
35+
public void setStartTime(final String startTime) {
36+
this.startTime = startTime;
37+
}
38+
39+
public String getEndTime() {
40+
return endTime;
41+
}
42+
43+
public void setEndTime(final String endTime) {
44+
this.endTime = endTime;
45+
}
46+
47+
public Double getExecutionTime() {
48+
return executionTime;
49+
}
50+
51+
public void setExecutionTime(final Double executionTime) {
52+
this.executionTime = executionTime;
53+
}
54+
55+
public Counter getCounter() {
56+
return counter;
57+
}
58+
59+
public void setCounter(final Counter counter) {
60+
this.counter = counter;
61+
}
62+
63+
public String getErrorStack() {
64+
return errorStack;
65+
}
66+
67+
public void setErrorStack(final String errorStack) {
68+
this.errorStack = errorStack;
69+
}
70+
71+
public String getServerOutput() {
72+
return serverOutput;
73+
}
74+
75+
public void setServerOutput(final String serverOutput) {
76+
this.serverOutput = serverOutput;
77+
}
78+
79+
public String getWarnings() {
80+
return warnings;
81+
}
82+
83+
public void setWarnings(final String warnings) {
84+
this.warnings = warnings;
85+
}
86+
}

0 commit comments

Comments
 (0)