comparison src/main/java/nl/cwi/monetdb/jdbc/MonetConnection.java @ 288:f412032e3b43

Correcting typo
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Wed, 31 Jul 2019 14:19:43 +0200 (2019-07-31)
parents d430f8adbf1b
children b127164342c4
comparison
equal deleted inserted replaced
286:d430f8adbf1b 288:f412032e3b43
1872 * or additional lines are not allowed. 1872 * or additional lines are not allowed.
1873 */ 1873 */
1874 public abstract String addLine(String line, int linetype); 1874 public abstract String addLine(String line, int linetype);
1875 1875
1876 /** 1876 /**
1877 * Returns whether this Reponse expects more lines to be added 1877 * Returns whether this Response expects more lines to be added
1878 * to it. 1878 * to it.
1879 * 1879 *
1880 * @return true if a next line should be added, false otherwise 1880 * @return true if a next line should be added, false otherwise
1881 */ 1881 */
1882 public abstract boolean wantsMore(); 1882 public abstract boolean wantsMore();
2379 // all is well 2379 // all is well
2380 return null; 2380 return null;
2381 } 2381 }
2382 2382
2383 /** 2383 /**
2384 * Returns whether this Reponse expects more lines to be added 2384 * Returns whether this Response expects more lines to be added
2385 * to it. 2385 * to it.
2386 * 2386 *
2387 * @return true if a next line should be added, false otherwise 2387 * @return true if a next line should be added, false otherwise
2388 */ 2388 */
2389 @Override 2389 @Override
2607 return responses.get(curResponse); 2607 return responses.get(curResponse);
2608 } 2608 }
2609 } 2609 }
2610 2610
2611 /** 2611 /**
2612 * Closes the Reponse at index i, if not null. 2612 * Closes the Response at index i, if not null.
2613 * 2613 *
2614 * @param i the index position of the header to close 2614 * @param i the index position of the header to close
2615 */ 2615 */
2616 void closeResponse(int i) { 2616 void closeResponse(int i) {
2617 if (i < 0 || i >= responses.size()) 2617 if (i < 0 || i >= responses.size())
2808 } 2808 }
2809 } 2809 }
2810 if (error != null) 2810 if (error != null)
2811 break; 2811 break;
2812 2812
2813 // it is of no use to store DataBlockReponses, you never want to 2813 // it is of no use to store DataBlockResponses, you never want to
2814 // retrieve them directly anyway 2814 // retrieve them directly anyway
2815 if (!(res instanceof DataBlockResponse)) 2815 if (!(res instanceof DataBlockResponse))
2816 responses.add(res); 2816 responses.add(res);
2817 2817
2818 // read the next line (can be prompt, new result, error, etc.) 2818 // read the next line (can be prompt, new result, error, etc.)