File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
main/java/org/utplsql/api/outputBuffer
test/java/org/utplsql/api Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,9 @@ public Reporter getReporter() {
42
42
}
43
43
44
44
@ Override
45
- public void setFetchSize (int fetchSize ) {
45
+ public OutputBuffer setFetchSize (int fetchSize ) {
46
46
this .fetchSize = fetchSize ;
47
+ return this ;
47
48
}
48
49
49
50
/**
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ public Reporter getReporter() {
27
27
}
28
28
29
29
@ Override
30
- public void setFetchSize (int fetchSize ) {
31
-
30
+ public OutputBuffer setFetchSize (int fetchSize ) {
31
+ return this ;
32
32
}
33
33
34
34
@ Override
Original file line number Diff line number Diff line change @@ -15,8 +15,9 @@ public interface OutputBuffer {
15
15
/** Override the fetchSize of the OutputBuffer
16
16
*
17
17
* @param fetchSize the ResultSet fetch-size.
18
+ * @return this Output-Buffer
18
19
*/
19
- void setFetchSize ( int fetchSize );
20
+ OutputBuffer setFetchSize ( int fetchSize );
20
21
21
22
/**
22
23
* Print the lines as soon as they are produced and write to a PrintStream.
Original file line number Diff line number Diff line change @@ -59,8 +59,9 @@ public void printAvailableLines() throws SQLException {
59
59
printStreams .add (System .out );
60
60
printStreams .add (new PrintStream (fileOutStream ));
61
61
62
- reporter .getOutputBuffer ().setFetchSize (1 );
63
- reporter .getOutputBuffer ().printAvailable (newConnection (), printStreams );
62
+ reporter .getOutputBuffer ()
63
+ .setFetchSize (1 )
64
+ .printAvailable (newConnection (), printStreams );
64
65
65
66
return Boolean .TRUE ;
66
67
} catch (SQLException e ) {
You can’t perform that action at this time.
0 commit comments