| 构造器和说明 |
|---|
MapRowMapper() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Map<String,Object> |
createColumnMap(int columnCount) |
protected String |
getColumnKey(String columnName)
Determine the key to use for the given column in the column Map.
|
protected Object |
getColumnValue(ResultSet rs,
int index)
Retrieve a JDBC object value for the specified column.
|
Map<String,Object> |
mapping(ResultSet row,
int currentRowIndex,
ResultSetDescription resultSetDescription) |
public Map<String,Object> mapping(ResultSet row, int currentRowIndex, ResultSetDescription resultSetDescription)
protected String getColumnKey(String columnName)
columnName - the column name as returned by the ResultSetResultSetMetaData.getColumnName(int)@Nullable protected Object getColumnValue(ResultSet rs, int index) throws RuntimeException
The default implementation uses the getObject method.
Additionally, this implementation includes a "hack" to get around Oracle
returning a non standard object for their TIMESTAMP datatype.
rs - is the ResultSet holding the dataindex - is the column indexRuntimeExceptionCopyright © 2021. All rights reserved.