public static class AbstractReverseTupleToEntityTransformer.OverridableHashMap extends HashMap<Integer,Mapper>
Map
that can provide a Primary Map and an override where it maybe applicable based on the order of precedence mentioned in AbstractEntityToTupleTransformer.transform(Object)
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
OverridableHashMap(Map primaryOrigMap,
Map overrideMap) |
Modifier and Type | Method and Description |
---|---|
Mapper |
get(Object key) |
Map<Integer,String> |
getColumnNumberToFieldNameMap() |
Map<String,Integer> |
getFieldNameToColumnNumberMap() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public Mapper get(Object key)
get
in interface Map<Integer,Mapper>
get
in class HashMap<Integer,Mapper>
key
- as Object, which is expected to be an Integer as the keys will come from this (primary origin map of type AbstractTupleToEntityTransformer
).Mapper
is required from overrideMap then the key would need to be a filed-name; so internally from the override map
we will have to derive the override-key (FieldName) from the key (Column number integer)Copyright © 2018. All rights reserved.