Class DatabaseRow
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Serializable>
-
- de.codecentric.reedelk.database.internal.type.DatabaseRow
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Serializable>
public class DatabaseRow extends HashMap<String,Serializable>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description DatabaseRow(Map<String,Integer> columnNameIndexMap, Map<Integer,String> columnIndexNameMap, List<Serializable> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,Serializable>>entrySet()Serializableget(int columnIndex)Serializableget(Object key)IntegergetColumnIndex(String columnName)StringgetColumnName(int columnIndex)booleanisEmpty()Set<String>keySet()Serializableput(String key, Serializable value)voidputAll(Map<? extends String,? extends Serializable> m)Serializableremove(Object key)intsize()Collection<Serializable>values()-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
getColumnName
public String getColumnName(int columnIndex)
-
get
public Serializable get(int columnIndex)
-
size
public int size()
- Specified by:
sizein interfaceMap<String,Serializable>- Overrides:
sizein classHashMap<String,Serializable>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceMap<String,Serializable>- Overrides:
isEmptyin classHashMap<String,Serializable>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,Serializable>- Overrides:
containsKeyin classHashMap<String,Serializable>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<String,Serializable>- Overrides:
containsValuein classHashMap<String,Serializable>
-
get
public Serializable get(Object key)
- Specified by:
getin interfaceMap<String,Serializable>- Overrides:
getin classHashMap<String,Serializable>
-
put
public Serializable put(String key, Serializable value)
- Specified by:
putin interfaceMap<String,Serializable>- Overrides:
putin classHashMap<String,Serializable>
-
remove
public Serializable remove(Object key)
- Specified by:
removein interfaceMap<String,Serializable>- Overrides:
removein classHashMap<String,Serializable>
-
putAll
public void putAll(Map<? extends String,? extends Serializable> m)
- Specified by:
putAllin interfaceMap<String,Serializable>- Overrides:
putAllin classHashMap<String,Serializable>
-
clear
public void clear()
- Specified by:
clearin interfaceMap<String,Serializable>- Overrides:
clearin classHashMap<String,Serializable>
-
keySet
public Set<String> keySet()
- Specified by:
keySetin interfaceMap<String,Serializable>- Overrides:
keySetin classHashMap<String,Serializable>
-
values
public Collection<Serializable> values()
- Specified by:
valuesin interfaceMap<String,Serializable>- Overrides:
valuesin classHashMap<String,Serializable>
-
entrySet
public Set<Map.Entry<String,Serializable>> entrySet()
- Specified by:
entrySetin interfaceMap<String,Serializable>- Overrides:
entrySetin classHashMap<String,Serializable>
-
-