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() {
4242 }
4343
4444 @ Override
45- public void setFetchSize (int fetchSize ) {
45+ public OutputBuffer setFetchSize (int fetchSize ) {
4646 this .fetchSize = fetchSize ;
47+ return this ;
4748 }
4849
4950 /**
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ public Reporter getReporter() {
2727 }
2828
2929 @ Override
30- public void setFetchSize (int fetchSize ) {
31-
30+ public OutputBuffer setFetchSize (int fetchSize ) {
31+ return this ;
3232 }
3333
3434 @ Override
Original file line number Diff line number Diff line change @@ -15,8 +15,9 @@ public interface OutputBuffer {
1515 /** Override the fetchSize of the OutputBuffer
1616 *
1717 * @param fetchSize the ResultSet fetch-size.
18+ * @return this Output-Buffer
1819 */
19- void setFetchSize ( int fetchSize );
20+ OutputBuffer setFetchSize ( int fetchSize );
2021
2122 /**
2223 * 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 {
5959 printStreams .add (System .out );
6060 printStreams .add (new PrintStream (fileOutStream ));
6161
62- reporter .getOutputBuffer ().setFetchSize (1 );
63- reporter .getOutputBuffer ().printAvailable (newConnection (), printStreams );
62+ reporter .getOutputBuffer ()
63+ .setFetchSize (1 )
64+ .printAvailable (newConnection (), printStreams );
6465
6566 return Boolean .TRUE ;
6667 } catch (SQLException e ) {
You can’t perform that action at this time.
0 commit comments