[ 
https://issues.apache.org/jira/browse/DBUTILS-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13996110#comment-13996110
 ] 

Michael Osipov edited comment on DBUTILS-114 at 5/13/14 6:11 AM:
-----------------------------------------------------------------

Actually, there are two options:

1. {{CaseInsensitiveMap}}
2. {{CaseInsensitiveLinkedHashMap}}

I favor the first because it describes the contract but the actual 
implementation is not of interest, in my opinion.

Have a look at [Commons 
Collections|http://commons.apache.org/proper/commons-collections/javadocs/api-release/org/apache/commons/collections4/map/CaseInsensitiveMap.html].


was (Author: michael-o):
Actually, there are two options:

1. {{CaseInsensitiveMap}}
2. {{CaseInsensitiveLinkedHashMap}}

I favor the first because it describes the contract but the actual 
implementation is not of interest, in my opinion.

> Order of columns not retained in BasicRowProcessor with HashMap
> ---------------------------------------------------------------
>
>                 Key: DBUTILS-114
>                 URL: https://issues.apache.org/jira/browse/DBUTILS-114
>             Project: Commons DbUtils
>          Issue Type: Bug
>    Affects Versions: 1.5, 1.6
>            Reporter: Michael Osipov
>         Attachments: DBUTILS-114.patch
>
>
> The {{CaseInsensitiveHashMap}} extends {{HashMap}}. This means that the order 
> of columns defined in a select query is not retained when one wants to 
> iterate over the entry set. This be changed to {{LinkedHashMap}}.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to