1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
31
31
* entry for each column, with the column name as key.
32
32
*
33
33
* <p>The Map implementation to use and the key to use for each column
34
- * in the column Map can be customized through overriding
35
- * {@link #createColumnMap} and {@link #getColumnKey}, respectively.
34
+ * in the column Map can be customized by overriding {@link #createColumnMap}
35
+ * and {@link #getColumnKey}, respectively.
36
36
*
37
37
* <p><b>Note:</b> By default, {@code ColumnMapRowMapper} will try to build a linked Map
38
38
* with case-insensitive keys, to preserve column order as well as allow any
@@ -71,6 +71,7 @@ protected Map<String, Object> createColumnMap(int columnCount) {
71
71
72
72
/**
73
73
* Determine the key to use for the given column in the column Map.
74
+ * <p>By default, the supplied column name will be returned unmodified.
74
75
* @param columnName the column name as returned by the ResultSet
75
76
* @return the column key to use
76
77
* @see java.sql.ResultSetMetaData#getColumnName
@@ -83,9 +84,9 @@ protected String getColumnKey(String columnName) {
83
84
* Retrieve a JDBC object value for the specified column.
84
85
* <p>The default implementation uses the {@code getObject} method.
85
86
* Additionally, this implementation includes a "hack" to get around Oracle
86
- * returning a non standard object for their TIMESTAMP datatype .
87
- * @param rs is the ResultSet holding the data
88
- * @param index is the column index
87
+ * returning a non standard object for their TIMESTAMP data type .
88
+ * @param rs the ResultSet holding the data
89
+ * @param index the column index
89
90
* @return the Object returned
90
91
* @see org.springframework.jdbc.support.JdbcUtils#getResultSetValue
91
92
*/
0 commit comments