Skip to content

Documentation Reporter Identation and Small Fixes #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 9, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix documentation reporter identation
  • Loading branch information
viniciusam committed Jun 9, 2017
commit a7a24a1fb2ee3caacea2820609257506f2ced0cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,52 @@
import io.github.utplsql.api.CustomTypes;

import java.sql.SQLException;
import java.sql.SQLInput;
import java.sql.SQLOutput;

public class DocumentationReporter extends Reporter {

private int lvl;
private int failed;

public DocumentationReporter() {
this.lvl = 0;
this.failed = 0;
}

public int getLvl() {
return lvl;
}

public void setLvl(int lvl) {
this.lvl = lvl;
}

public int getFailed() {
return failed;
}

public void setFailed(int failed) {
this.failed = failed;
}

@Override
public String getSQLTypeName() throws SQLException {
return CustomTypes.UT_DOCUMENTATION_REPORTER;
}

@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {
super.readSQL(stream, typeName);
setLvl(stream.readInt());
setFailed(stream.readInt());
}

@Override
public void writeSQL(SQLOutput stream) throws SQLException {
super.writeSQL(stream);
stream.writeInt(getLvl());
stream.writeInt(getFailed());
}

}