Class BasicRowProcessor.CaseInsensitiveHashMap

java.lang.Object
java.util.AbstractMap<String,Object>
java.util.HashMap<String,Object>
java.util.LinkedHashMap<String,Object>
org.apache.commons.dbutils.BasicRowProcessor.CaseInsensitiveHashMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>
Enclosing class:
BasicRowProcessor

private static final class BasicRowProcessor.CaseInsensitiveHashMap extends LinkedHashMap<String,Object>
A Map that converts all keys to lowercase Strings for case insensitive lookups. This is needed for the toMap() implementation because databases don't consistently handle the casing of column names.

The keys are stored as they are given [BUG #DBUTILS-34], so we maintain an internal mapping from lowercase keys to the real keys in order to achieve the case insensitive lookup.

Note: This implementation does not allow null for key, whereas LinkedHashMap does, because of the code:

 key.toString().toLowerCase()