Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/jdbc/MonetStatement.java @ 943:ff075ed5ce81
Spell check.
author | Sjoerd Mullender <sjoerd@acm.org> |
---|---|
date | Thu, 09 Jan 2025 10:56:14 +0100 (3 months ago) |
parents | d416e9b6b3d0 |
children | 5cc071c5c170 |
comparison
equal
deleted
inserted
replaced
942:45c26b1a0677 | 943:ff075ed5ce81 |
---|---|
132 } | 132 } |
133 | 133 |
134 //== methods of interface Statement | 134 //== methods of interface Statement |
135 | 135 |
136 /** | 136 /** |
137 * Adds the given SQL command to the current list of commmands for this | 137 * Adds the given SQL command to the current list of commands for this |
138 * Statement object. The commands in this list can be executed as a | 138 * Statement object. The commands in this list can be executed as a |
139 * batch by calling the method executeBatch. | 139 * batch by calling the method executeBatch. |
140 * | 140 * |
141 * @param sql typically this is a static SQL INSERT or UPDATE statement | 141 * @param sql typically this is a static SQL INSERT or UPDATE statement |
142 * @throws SQLException so the PreparedStatement can throw this exception | 142 * @throws SQLException so the PreparedStatement can throw this exception |
356 * The execute method executes an SQL statement and indicates the | 356 * The execute method executes an SQL statement and indicates the |
357 * form of the first result. You must then use the methods | 357 * form of the first result. You must then use the methods |
358 * getResultSet or getUpdateCount to retrieve the result, and | 358 * getResultSet or getUpdateCount to retrieve the result, and |
359 * getMoreResults to move to any subsequent result(s). | 359 * getMoreResults to move to any subsequent result(s). |
360 * | 360 * |
361 * MonetDB only supports returing the generated key for one column, | 361 * MonetDB only supports returning the generated key for one column, |
362 * which will be the first column that has a serial. Hence, this | 362 * which will be the first column that has a serial. Hence, this |
363 * method cannot work as required and the driver will fall back to | 363 * method cannot work as required and the driver will fall back to |
364 * executing with request to the database to return the generated | 364 * executing with request to the database to return the generated |
365 * key, if any. | 365 * key, if any. |
366 * | 366 * |
400 * The execute method executes an SQL statement and indicates the | 400 * The execute method executes an SQL statement and indicates the |
401 * form of the first result. You must then use the methods | 401 * form of the first result. You must then use the methods |
402 * getResultSet or getUpdateCount to retrieve the result, and | 402 * getResultSet or getUpdateCount to retrieve the result, and |
403 * getMoreResults to move to any subsequent result(s). | 403 * getMoreResults to move to any subsequent result(s). |
404 * | 404 * |
405 * MonetDB only supports returing the generated key for one column, | 405 * MonetDB only supports returning the generated key for one column, |
406 * which will be the first column that has a serial. Hence, this | 406 * which will be the first column that has a serial. Hence, this |
407 * method cannot work as required and the driver will fall back to | 407 * method cannot work as required and the driver will fall back to |
408 * executing with request to the database to return the generated | 408 * executing with request to the database to return the generated |
409 * key, if any. | 409 * key, if any. |
410 * | 410 * |
542 * Executes the given SQL statement and signals the driver that the | 542 * Executes the given SQL statement and signals the driver that the |
543 * auto-generated keys indicated in the given array should be made | 543 * auto-generated keys indicated in the given array should be made |
544 * available for retrieval. The driver will ignore the array if the | 544 * available for retrieval. The driver will ignore the array if the |
545 * SQL statement is not an INSERT statement. | 545 * SQL statement is not an INSERT statement. |
546 * | 546 * |
547 * MonetDB only supports returing the generated key for one column, | 547 * MonetDB only supports returning the generated key for one column, |
548 * which will be the first column that has a serial. Hence, this | 548 * which will be the first column that has a serial. Hence, this |
549 * method cannot work as required and the driver will fall back to | 549 * method cannot work as required and the driver will fall back to |
550 * executing with request to the database to return the generated | 550 * executing with request to the database to return the generated |
551 * key, if any. | 551 * key, if any. |
552 * | 552 * |
573 * Executes the given SQL statement and signals the driver that the | 573 * Executes the given SQL statement and signals the driver that the |
574 * auto-generated keys indicated in the given array should be made | 574 * auto-generated keys indicated in the given array should be made |
575 * available for retrieval. The driver will ignore the array if the | 575 * available for retrieval. The driver will ignore the array if the |
576 * SQL statement is not an INSERT statement. | 576 * SQL statement is not an INSERT statement. |
577 * | 577 * |
578 * MonetDB only supports returing the generated key for one column, | 578 * MonetDB only supports returning the generated key for one column, |
579 * which will be the first column that has a serial. Hence, this | 579 * which will be the first column that has a serial. Hence, this |
580 * method cannot work as required and the driver will fall back to | 580 * method cannot work as required and the driver will fall back to |
581 * executing with request to the database to return the generated | 581 * executing with request to the database to return the generated |
582 * key, if any. | 582 * key, if any. |
583 * | 583 * |
746 * an update count or there are no more results | 746 * an update count or there are no more results |
747 * @throws SQLException if a database access error occurs | 747 * @throws SQLException if a database access error occurs |
748 */ | 748 */ |
749 @Override | 749 @Override |
750 public boolean getMoreResults(final int current) throws SQLException { | 750 public boolean getMoreResults(final int current) throws SQLException { |
751 // protect against people calling this on an unitialised state | 751 // protect against people calling this on an uninitialized state |
752 if (lastResponseList == null) { | 752 if (lastResponseList == null) { |
753 header = null; | 753 header = null; |
754 return false; | 754 return false; |
755 } | 755 } |
756 | 756 |
1050 } | 1050 } |
1051 | 1051 |
1052 /** | 1052 /** |
1053 * Requests that a Statement be pooled or not pooled. The value | 1053 * Requests that a Statement be pooled or not pooled. The value |
1054 * specified is a hint to the statement pool implementation | 1054 * specified is a hint to the statement pool implementation |
1055 * indicating whether the applicaiton wants the statement to be | 1055 * indicating whether the application wants the statement to be |
1056 * pooled. It is up to the statement pool manager as to whether the | 1056 * pooled. It is up to the statement pool manager as to whether the |
1057 * hint is used. | 1057 * hint is used. |
1058 * | 1058 * |
1059 * The poolable value of a statement is applicable to both internal | 1059 * The poolable value of a statement is applicable to both internal |
1060 * statement caches implemented by the driver and external statement | 1060 * statement caches implemented by the driver and external statement |
1411 * | 1411 * |
1412 * This method should be used when the returned row count may exceed Integer.MAX_VALUE. | 1412 * This method should be used when the returned row count may exceed Integer.MAX_VALUE. |
1413 * Note: This method cannot be called on a PreparedStatement or CallableStatement. | 1413 * Note: This method cannot be called on a PreparedStatement or CallableStatement. |
1414 * The default implementation will throw SQLFeatureNotSupportedException | 1414 * The default implementation will throw SQLFeatureNotSupportedException |
1415 * | 1415 * |
1416 * MonetDB only supports returing the generated key for one column, | 1416 * MonetDB only supports returning the generated key for one column, |
1417 * which will be the first column that has a serial. Hence, this | 1417 * which will be the first column that has a serial. Hence, this |
1418 * method cannot work as required and the driver will fall back to | 1418 * method cannot work as required and the driver will fall back to |
1419 * executing with request to the database to return the generated | 1419 * executing with request to the database to return the generated |
1420 * key, if any. | 1420 * key, if any. |
1421 * | 1421 * |
1448 * | 1448 * |
1449 * This method should be used when the returned row count may exceed Integer.MAX_VALUE. | 1449 * This method should be used when the returned row count may exceed Integer.MAX_VALUE. |
1450 * Note: This method cannot be called on a PreparedStatement or CallableStatement. | 1450 * Note: This method cannot be called on a PreparedStatement or CallableStatement. |
1451 * The default implementation will throw SQLFeatureNotSupportedException | 1451 * The default implementation will throw SQLFeatureNotSupportedException |
1452 * | 1452 * |
1453 * MonetDB only supports returing the generated key for one column, | 1453 * MonetDB only supports returning the generated key for one column, |
1454 * which will be the first column that has a serial. Hence, this | 1454 * which will be the first column that has a serial. Hence, this |
1455 * method cannot work as required and the driver will fall back to | 1455 * method cannot work as required and the driver will fall back to |
1456 * executing with request to the database to return the generated | 1456 * executing with request to the database to return the generated |
1457 * key, if any. | 1457 * key, if any. |
1458 * | 1458 * |