File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
src/main/java/io/github/utplsql/api/reporter Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 3
3
import io .github .utplsql .api .CustomTypes ;
4
4
5
5
import java .sql .SQLException ;
6
+ import java .sql .SQLInput ;
7
+ import java .sql .SQLOutput ;
6
8
7
9
public class DocumentationReporter extends Reporter {
8
10
11
+ private int lvl ;
12
+ private int failed ;
13
+
14
+ public DocumentationReporter () {
15
+ this .lvl = 0 ;
16
+ this .failed = 0 ;
17
+ }
18
+
19
+ public int getLvl () {
20
+ return lvl ;
21
+ }
22
+
23
+ public void setLvl (int lvl ) {
24
+ this .lvl = lvl ;
25
+ }
26
+
27
+ public int getFailed () {
28
+ return failed ;
29
+ }
30
+
31
+ public void setFailed (int failed ) {
32
+ this .failed = failed ;
33
+ }
34
+
9
35
@ Override
10
36
public String getSQLTypeName () throws SQLException {
11
37
return CustomTypes .UT_DOCUMENTATION_REPORTER ;
12
38
}
13
39
40
+ @ Override
41
+ public void readSQL (SQLInput stream , String typeName ) throws SQLException {
42
+ super .readSQL (stream , typeName );
43
+ setLvl (stream .readInt ());
44
+ setFailed (stream .readInt ());
45
+ }
46
+
47
+ @ Override
48
+ public void writeSQL (SQLOutput stream ) throws SQLException {
49
+ super .writeSQL (stream );
50
+ stream .writeInt (getLvl ());
51
+ stream .writeInt (getFailed ());
52
+ }
53
+
14
54
}
You can’t perform that action at this time.
0 commit comments