comparison src/main/java/org/monetdb/jdbc/MonetDriver.java.in @ 708:5022a57f9d97

Resolve javadoc errors.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 15 Dec 2022 15:45:32 +0100 (2022-12-15)
parents ee1f3b3ff5fd
children bdeabbd46ec6
comparison
equal deleted inserted replaced
707:7752e15b6a23 708:5022a57f9d97
381 // when it is a new type (not yet added in the above typeMap) or 381 // when it is a new type (not yet added in the above typeMap) or
382 // when type name is: any or geometry or geometrya or mbr or ptr or table. 382 // when type name is: any or geometry or geometrya or mbr or ptr or table.
383 return Types.OTHER; 383 return Types.OTHER;
384 } 384 }
385 385
386 private static String TypeMapppingSQL; // cache to optimise getSQLTypeMap()
386 /** 387 /**
387 * Returns a String usable in an SQL statement to map the server types 388 * Returns a String usable in an SQL statement to map the server types
388 * to values of java.sql.Types using the global static type map. 389 * to values of java.sql.Types using the global static type map.
389 * The returned string will be a SQL CASE x statement where the x is 390 * The returned string will be a SQL CASE x statement where the x is
390 * replaced with the given column name (or expression) string. 391 * replaced with the given column name (or expression) string.
391 * 392 *
392 * @param column a String representing the value that should be evaluated 393 * @param column a String representing the value that should be evaluated
393 * in the SQL CASE statement 394 * in the SQL CASE statement
394 * @return a SQL CASE statement 395 * @return a SQL CASE statement
395 */ 396 */
396 private static String TypeMapppingSQL; // cache to optimise getSQLTypeMap()
397 static final String getSQLTypeMap(final String column) { 397 static final String getSQLTypeMap(final String column) {
398 if (TypeMapppingSQL == null) { 398 if (TypeMapppingSQL == null) {
399 // first time, compose TypeMappping SQL string 399 // first time, compose TypeMappping SQL string
400 final StringBuilder val = new StringBuilder((typeMap.size() * (7 + 7 + 7 + 4)) + 14); 400 final StringBuilder val = new StringBuilder((typeMap.size() * (7 + 7 + 7 + 4)) + 14);
401 for (Entry<String, Integer> entry : typeMap.entrySet()) { 401 for (Entry<String, Integer> entry : typeMap.entrySet()) {