| java.lang.Object liquibase.database.template.ColumnMapRowMapper
ColumnMapRowMapper | class ColumnMapRowMapper implements RowMapper(Code) | | RowMapper implementation that creates a java.util.Map
for each row, representing all columns as key-value pairs: one
entry for each column, with the column name as key.
The Map implementation to use and the key to use for each column
in the column Map can be customized through overriding
ColumnMapRowMapper.createColumnMap and
ColumnMapRowMapper.getColumnKey , respectively.
author: Spring Framework |
createColumnMap | protected Map createColumnMap(int columnCount)(Code) | | Create a Map instance to be used as column map.
Parameters: columnCount - the column count, to be used as initialcapacity for the Map the new Map instance |
getColumnValue | protected Object getColumnValue(ResultSet rs, int index) throws SQLException(Code) | | Retrieve a JDBC object value for the specified column.
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.
Parameters: rs - is the ResultSet holding the data Parameters: index - is the column index the Object returned |
|
|