Class OutboundRow
java.lang.Object
org.springframework.data.r2dbc.mapping.OutboundRow
- All Implemented Interfaces:
Cloneable
,Map<org.springframework.data.relational.core.sql.SqlIdentifier,
Parameter>
public class OutboundRow
extends Object
implements Map<org.springframework.data.relational.core.sql.SqlIdentifier,Parameter>, Cloneable
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:
-
SqlIdentifier
Parameter
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCreates an emptyOutboundRow
instance.OutboundRow
(String key, Parameter value) Create aOutboundRow
instance initialized with the given key/value pair.OutboundRow
(Map<String, Parameter> map) Creates a newOutboundRow
from aMap
.OutboundRow
(org.springframework.data.relational.core.sql.SqlIdentifier key, Parameter value) Create aOutboundRow
instance initialized with the given key/value pair. -
Method Summary
Modifier and TypeMethodDescriptionPut the given key/value pair into thisOutboundRow
and return this.Put the given key/value pair into thisOutboundRow
and return this.void
clear()
protected OutboundRow
clone()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
void
forEach
(BiConsumer<? super org.springframework.data.relational.core.sql.SqlIdentifier, ? super Parameter> action) int
hashCode()
boolean
isEmpty()
Set<org.springframework.data.relational.core.sql.SqlIdentifier>
keySet()
void
putAll
(Map<? extends org.springframework.data.relational.core.sql.SqlIdentifier, ? extends Parameter> m) int
size()
toString()
values()
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
OutboundRow
public OutboundRow()Creates an emptyOutboundRow
instance. -
OutboundRow
Creates a newOutboundRow
from aMap
.- Parameters:
map
- the map used to initialize theOutboundRow
.
-
OutboundRow
Create aOutboundRow
instance initialized with the given key/value pair.- Parameters:
key
- key.value
- value.- See Also:
-
SqlIdentifier.unquoted(String)
-
OutboundRow
Create aOutboundRow
instance 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 thisOutboundRow
and 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:
-
SqlIdentifier.unquoted(String)
-
append
public OutboundRow append(org.springframework.data.relational.core.sql.SqlIdentifier key, Parameter value) Put the given key/value pair into thisOutboundRow
and 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() -
isEmpty
public boolean isEmpty() -
clone
-
containsKey
- Specified by:
containsKey
in interfaceMap<org.springframework.data.relational.core.sql.SqlIdentifier,
Parameter>
-
containsValue
- Specified by:
containsValue
in interfaceMap<org.springframework.data.relational.core.sql.SqlIdentifier,
Parameter>
-
get
-
put
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode() -
toString
-
forEach
public void forEach(BiConsumer<? super org.springframework.data.relational.core.sql.SqlIdentifier, ? super Parameter> action)
-