Skip to content

Commit b4ece73

Browse files
committed
Added new member-function has_output to easily check
whether a reporter has an output to buffer or not. The way with types is too cumbersome from java side
1 parent 83e4b0b commit b4ece73

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

source/core/types/ut_output_reporter_base.tpb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ create or replace type body ut_output_reporter_base is
2828
self.set_reporter_id(self.output_buffer.output_id);
2929
end;
3030

31+
overriding member function has_output return int is
32+
begin
33+
return 1;
34+
end;
35+
3136
overriding member procedure set_reporter_id(self in out nocopy ut_output_reporter_base, a_reporter_id raw) is
3237
begin
3338
self.id := a_reporter_id;

source/core/types/ut_output_reporter_base.tps

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ create or replace type ut_output_reporter_base under ut_reporter_base(
1818
output_buffer ut_output_buffer_base,
1919
constructor function ut_output_reporter_base(self in out nocopy ut_output_reporter_base) return self as result,
2020
member procedure init(self in out nocopy ut_output_reporter_base, a_self_type varchar2, a_output_buffer ut_output_buffer_base := null),
21+
overriding member function has_output return int,
2122
overriding member procedure set_reporter_id(self in out nocopy ut_output_reporter_base, a_reporter_id raw),
2223
overriding member procedure before_calling_run(self in out nocopy ut_output_reporter_base, a_run in ut_run),
2324

source/core/types/ut_reporter_base.tpb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ create or replace type body ut_reporter_base is
3333
return self.id;
3434
end;
3535

36+
member function has_output return int is
37+
begin
38+
return 0;
39+
end;
40+
3641
-- run hooks
3742
member procedure before_calling_run(self in out nocopy ut_reporter_base, a_run in ut_run) is
3843
begin

source/core/types/ut_reporter_base.tps

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ create or replace type ut_reporter_base authid current_user as object(
2020
final member procedure init(self in out nocopy ut_reporter_base, a_self_type varchar2),
2121
member procedure set_reporter_id(self in out nocopy ut_reporter_base, a_reporter_id raw),
2222
member function get_reporter_id return raw,
23+
member function has_output return int,
2324

2425
-- run hooks
2526
member procedure before_calling_run(self in out nocopy ut_reporter_base, a_run in ut_run),

0 commit comments

Comments
 (0)