Class OutboundRow
java.lang.Object
org.springframework.data.r2dbc.mapping.OutboundRow
- All Implemented Interfaces:
Cloneable,Map<SqlIdentifier,Parameter>
Representation of a
Row to be written through a INSERT or UPDATE statement. Row keys are
represented as SqlIdentifier. String key names are translated to
unquoted identifiers when adding or querying for entries.- Author:
- Mark Paluch
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an emptyOutboundRowinstance.OutboundRow(String key, Parameter value) Create aOutboundRowinstance initialized with the given key/value pair.OutboundRow(Map<String, Parameter> map) Creates a newOutboundRowfrom aMap.OutboundRow(SqlIdentifier key, Parameter value) Create aOutboundRowinstance initialized with the given key/value pair. -
Method Summary
Modifier and TypeMethodDescriptionPut the given key/value pair into thisOutboundRowand return this.append(SqlIdentifier key, Parameter value) Put the given key/value pair into thisOutboundRowand return this.voidclear()protected OutboundRowclone()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanvoidforEach(BiConsumer<? super SqlIdentifier, ? super Parameter> action) inthashCode()booleanisEmpty()keySet()put(SqlIdentifier key, Parameter value) voidputAll(Map<? extends SqlIdentifier, ? extends Parameter> m) intsize()toString()values()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
OutboundRow
public OutboundRow()Creates an emptyOutboundRowinstance. -
OutboundRow
Creates a newOutboundRowfrom aMap.- Parameters:
map- the map used to initialize theOutboundRow.
-
OutboundRow
Create aOutboundRowinstance initialized with the given key/value pair.- Parameters:
key- key.value- value.- See Also:
-
OutboundRow
Create aOutboundRowinstance initialized with the given key/value pair.- Parameters:
key- key.value- value.- Since:
- 1.1
-
-
Method Details
-
append
Put the given key/value pair into thisOutboundRowand return this. Useful for chaining puts in a single expression:row.append("a", 1).append("b", 2)}- Parameters:
key- key.value- value.- Returns:
- this
- See Also:
-
append
Put the given key/value pair into thisOutboundRowand return this. Useful for chaining puts in a single expression:row.append("a", 1).append("b", 2)}- Parameters:
key- key.value- value.- Returns:
- this
- Since:
- 1.1
-
size
public int size()- Specified by:
sizein interfaceMap<SqlIdentifier,Parameter>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap<SqlIdentifier,Parameter>
-
clone
-
containsKey
- Specified by:
containsKeyin interfaceMap<SqlIdentifier,Parameter>
-
containsValue
- Specified by:
containsValuein interfaceMap<SqlIdentifier,Parameter>
-
get
- Specified by:
getin interfaceMap<SqlIdentifier,Parameter>
-
put
-
put
- Specified by:
putin interfaceMap<SqlIdentifier,Parameter>
-
remove
- Specified by:
removein interfaceMap<SqlIdentifier,Parameter>
-
putAll
- Specified by:
putAllin interfaceMap<SqlIdentifier,Parameter>
-
clear
public void clear()- Specified by:
clearin interfaceMap<SqlIdentifier,Parameter>
-
keySet
- Specified by:
keySetin interfaceMap<SqlIdentifier,Parameter>
-
values
- Specified by:
valuesin interfaceMap<SqlIdentifier,Parameter>
-
entrySet
- Specified by:
entrySetin interfaceMap<SqlIdentifier,Parameter>
-
equals
-
hashCode
public int hashCode() -
toString
-
forEach
- Specified by:
forEachin interfaceMap<SqlIdentifier,Parameter>
-