comparison src/main/java/org/monetdb/jdbc/MonetDriver.java.in @ 414:1e278695fe54

Small improvements: adding some final keywords, removing unnecesary initialisations, improve comments.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 14 Jan 2021 22:44:56 +0100 (2021-01-14)
parents bf9f6b6ecf40
children 50e43af49d47
comparison
equal deleted inserted replaced
413:f0dfd2003aff 414:1e278695fe54
390 * 390 *
391 * @param column a String representing the value that should be evaluated 391 * @param column a String representing the value that should be evaluated
392 * in the SQL CASE statement 392 * in the SQL CASE statement
393 * @return a SQL CASE statement 393 * @return a SQL CASE statement
394 */ 394 */
395 private static String TypeMapppingSQL = null; // cache to optimise getSQLTypeMap() 395 private static String TypeMapppingSQL; // cache to optimise getSQLTypeMap()
396 static final String getSQLTypeMap(final String column) { 396 static final String getSQLTypeMap(final String column) {
397 if (TypeMapppingSQL == null) { 397 if (TypeMapppingSQL == null) {
398 // first time, compose TypeMappping SQL string 398 // first time, compose TypeMappping SQL string
399 final StringBuilder val = new StringBuilder((typeMap.size() * (7 + 7 + 7 + 4)) + 14); 399 final StringBuilder val = new StringBuilder((typeMap.size() * (7 + 7 + 7 + 4)) + 14);
400 for (Entry<String, Integer> entry : typeMap.entrySet()) { 400 for (Entry<String, Integer> entry : typeMap.entrySet()) {