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 33import io .github .utplsql .api .CustomTypes ;
44
55import java .sql .SQLException ;
6+ import java .sql .SQLInput ;
7+ import java .sql .SQLOutput ;
68
79public class DocumentationReporter extends Reporter {
810
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+
935 @ Override
1036 public String getSQLTypeName () throws SQLException {
1137 return CustomTypes .UT_DOCUMENTATION_REPORTER ;
1238 }
1339
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+
1454}
You can’t perform that action at this time.
0 commit comments