Mercurial > hg > monetdb-java
diff src/main/java/org/monetdb/jdbc/MonetPreparedStatement.java @ 451:3dfcd06fd8ba
Correcting typos in documentation text. Also improved the readability of the generated javadoc documents.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 04 Mar 2021 18:57:51 +0100 (2021-03-04) |
parents | b9f82064fe0c |
children | 6a6c86ac3232 |
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetPreparedStatement.java +++ b/src/main/java/org/monetdb/jdbc/MonetPreparedStatement.java @@ -41,6 +41,7 @@ import java.util.Calendar; import java.util.Map; /** + *<pre> * A {@link PreparedStatement} suitable for the MonetDB database. * * This implementation of the PreparedStatement interface uses the @@ -49,7 +50,6 @@ import java.util.Map; * returns the types it expects for them. * * An example of a server response on a prepare query is: - * <pre> * % prepare select name from tables where id > ? and id < ?; * &5 0 2 3 2 * # prepare, prepare, prepare # table_name @@ -58,7 +58,7 @@ import java.util.Map; * # 0, 0, 0 # length * [ "int", 9, 0 ] * [ "int", 9, 0 ] - * </pre> + *</pre> * * @author Fabian Groffen * @author Martin van Dinther @@ -2719,9 +2719,12 @@ public class MonetPreparedStatement } /** - * @return the prepared SQL statement including parameter types and parameter values that were already set. + * Return the prepared SQL statement including parameter types and parameter values that were set. + * + * @return a String representing this Object */ - public String toString​() { + @Override + public String toString() { final StringBuilder sb = new StringBuilder(256); sb.append("Prepared SQL: ").append(sqlStatement).append("\n"); int param = 1; @@ -2818,7 +2821,6 @@ public class MonetPreparedStatement return buf.toString(); } - /** * Small helper method that formats the "Invalid Parameter Index number ..." message * and creates a new SQLDataException object whose SQLState is set