edu.internet2.middleware.grouperClient.jdbc
Class GcCaseIgnoreHashMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<java.lang.String,java.lang.Object>
              extended by edu.internet2.middleware.grouperClient.jdbc.GcCaseIgnoreHashMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public class GcCaseIgnoreHashMap
extends java.util.LinkedHashMap<java.lang.String,java.lang.Object>

Map with string key which ignores key case and has some convenience methods.

Author:
harveycg
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
GcCaseIgnoreHashMap()
           
 
Method Summary
 java.lang.Object get(java.lang.Object key)
          Get an object from the map.
 java.sql.Date getDate(java.lang.Object key)
          Get a date from the map.
 java.lang.Double getDouble(java.lang.Object key)
          Get a date from the map.
 java.lang.Integer getInteger(java.lang.Object key)
          Get an integer from the map.
 java.lang.Long getLong(java.lang.Object key)
          Get a long from the map.
 java.lang.String getString(java.lang.Object key)
          Get a string from the map.
 java.sql.Timestamp getTimestamp(java.lang.Object key)
          Get a timestamp from the map.
static void loadBoundDataConversion(GcBoundDataConversion _boundDataConversion)
          This is the helper to convert data to and from Oracle, which has a default of BoundDataConversionImpl.
 java.lang.Object put(java.lang.String key, java.lang.Object value)
          Put an object into the map.
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, putAll, remove, size, values
 

Constructor Detail

GcCaseIgnoreHashMap

public GcCaseIgnoreHashMap()
Method Detail

loadBoundDataConversion

public static void loadBoundDataConversion(GcBoundDataConversion _boundDataConversion)
This is the helper to convert data to and from Oracle, which has a default of BoundDataConversionImpl. If you encounter errors getting and setting data from oracle to java, you may need to override the default and set your version here. Otherwise, nothing is needed.

Parameters:
_boundDataConversion - the boundDataConversion to set.

put

public java.lang.Object put(java.lang.String key,
                            java.lang.Object value)
Put an object into the map.

Specified by:
put in interface java.util.Map<java.lang.String,java.lang.Object>
Overrides:
put in class java.util.HashMap<java.lang.String,java.lang.Object>

get

public java.lang.Object get(java.lang.Object key)
Get an object from the map.

Specified by:
get in interface java.util.Map<java.lang.String,java.lang.Object>
Overrides:
get in class java.util.LinkedHashMap<java.lang.String,java.lang.Object>

getString

public java.lang.String getString(java.lang.Object key)
Get a string from the map.

Parameters:
key - is the key of the object.
Returns:
the object.

getLong

public java.lang.Long getLong(java.lang.Object key)
Get a long from the map.

Parameters:
key - is the key of the object.
Returns:
the object.

getInteger

public java.lang.Integer getInteger(java.lang.Object key)
Get an integer from the map.

Parameters:
key - is the key of the object.
Returns:
the object.

getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.Object key)
Get a timestamp from the map.

Parameters:
key - is the key of the object.
Returns:
the object.

getDate

public java.sql.Date getDate(java.lang.Object key)
Get a date from the map.

Parameters:
key - is the key of the object.
Returns:
the object.

getDouble

public java.lang.Double getDouble(java.lang.Object key)
Get a date from the map.

Parameters:
key - is the key of the object.
Returns:
the object.