Package org.jxls.jdbc

Class CaseInsensitiveHashMap

All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class CaseInsensitiveHashMap extends LinkedHashMap<String,Object>
This class is taken from Apache Commons DbUtils library (https://commons.apache.org/proper/commons-dbutils/) 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()
 
See Also: