Mercurial > hg > monetdb-java
diff src/main/java/org/monetdb/jdbc/MonetCallableStatement.java @ 709:bdeabbd46ec6
Resolve javac and javadoc warnings when compiled with JDK19.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 15 Dec 2022 19:31:53 +0100 (2022-12-15) |
parents | 5022a57f9d97 |
children | aeb268156580 |
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetCallableStatement.java +++ b/src/main/java/org/monetdb/jdbc/MonetCallableStatement.java @@ -79,6 +79,7 @@ public final class MonetCallableStatemen * @param connection the connection that created this Statement * @param resultSetType type of {@link java.sql.ResultSet} to produce * @param resultSetConcurrency concurrency of ResultSet to produce + * @param resultSetHoldability holdability of ResultSet to produce * @param callQuery - an SQL CALL statement that may contain one or more '?' parameter placeholders. * Typically this statement is specified using JDBC call escape syntax: * { call procedure_name [(?,?, ...)] } @@ -107,6 +108,9 @@ public final class MonetCallableStatemen /** parse call query string on * { [?=] call <procedure-name> [(<arg1>,<arg2>, ...)] } * and remove the JDBC escapes pairs: { and } + * + * @param query the SQL call statement + * @return query without the escape characters: { and } */ final private static String removeEscapes(final String query) { if (query == null) @@ -147,9 +151,13 @@ public final class MonetCallableStatemen return buf.toString(); } - /** utility method to convert a parameter name to an int (which represents the parameter index) - * this will only succeed for strings like: "1", "2", "3", etc - * throws SQLException if it cannot convert the string to an integer number + /** + * utility method to convert a parameter name to an int (which represents the parameter index) + * this will only succeed for strings like: "1", "2", "3", etc + * + * @param parameterName the name (a number value) of the parameter + * @return the converted index number + * @throws SQLException if it cannot convert the string to an integer number */ final private int nameToIndex(final String parameterName) throws SQLException { if (parameterName == null)