Class RowDocument
java.lang.Object
org.springframework.data.relational.domain.RowDocument
Represents a tabular structure as document to enable hierarchical traversal of SQL results.
- Since:
- 3.2
- Author:
- Mark Paluch
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppends a new entry (or overwrites an existing value atkey).voidclear()compute(String key, BiFunction<? super String, ? super Object, ?> remappingFunction) computeIfAbsent(String key, Function<? super String, ?> mappingFunction) computeIfPresent(String key, BiFunction<? super String, ? super Object, ?> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanvoidforEach(BiConsumer<? super String, ? super Object> action) getDocument(String key) Retrieve the value atkeyasRowDocument.Retrieve the value atkeyasList.Retrieve the value atkeyasMap.getOrDefault(Object key, Object defaultValue) inthashCode()booleanisEmpty()keySet()static RowDocumentFactory method to create a RowDocument from a field and value.voidputIfAbsent(String key, Object value) booleanbooleanvoidreplaceAll(BiFunction<? super String, ? super Object, ?> function) intsize()toString()values()
-
Constructor Details
-
RowDocument
public RowDocument() -
RowDocument
public RowDocument(int expectedSize) -
RowDocument
-
-
Method Details
-
of
Factory method to create a RowDocument from a field and value.- Parameters:
field- the file name to use.value- the value to use, can be null.- Returns:
-
getList
Retrieve the value atkeyasList.- Parameters:
key-- Returns:
- the value or null.
- Throws:
ClassCastException- ifkeyholds a value that is not aList.
-
getMap
Retrieve the value atkeyasMap.- Parameters:
key-- Returns:
- the value or null.
- Throws:
ClassCastException- ifkeyholds a value that is not aMap.
-
getDocument
Retrieve the value atkeyasRowDocument.- Parameters:
key-- Returns:
- the value or null.
- Throws:
ClassCastException- ifkeyholds a value that is not aRowDocument.
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object>
-
get
-
put
-
append
Appends a new entry (or overwrites an existing value atkey).- Parameters:
key-value-- Returns:
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode() -
getOrDefault
- Specified by:
getOrDefaultin interfaceMap<String,Object>
-
forEach
-
replaceAll
- Specified by:
replaceAllin interfaceMap<String,Object>
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<String,Object>
-
remove
-
replace
-
replace
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceMap<String,Object>
-
computeIfPresent
public Object computeIfPresent(String key, BiFunction<? super String, ? super Object, ?> remappingFunction) - Specified by:
computeIfPresentin interfaceMap<String,Object>
-
compute
-
merge
-
toString
-