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 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
(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.append
(SqlIdentifier key, Parameter value) 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 SqlIdentifier, ? super Parameter> action) @Nullable Parameter
int
hashCode()
boolean
isEmpty()
keySet()
put
(SqlIdentifier key, Parameter value) void
putAll
(Map<? extends SqlIdentifier, ? extends Parameter> m) int
size()
toString()
values()
Methods inherited from interface 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:
-
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:
-
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
- Since:
- 1.1
-
size
public int size()- Specified by:
size
in interfaceMap<SqlIdentifier, Parameter>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMap<SqlIdentifier, Parameter>
-
clone
-
containsKey
- Specified by:
containsKey
in interfaceMap<SqlIdentifier, Parameter>
-
containsValue
- Specified by:
containsValue
in interfaceMap<SqlIdentifier, Parameter>
-
get
-
put
-
put
- Specified by:
put
in interfaceMap<SqlIdentifier, Parameter>
-
remove
-
putAll
- Specified by:
putAll
in interfaceMap<SqlIdentifier, Parameter>
-
clear
public void clear()- Specified by:
clear
in interfaceMap<SqlIdentifier, Parameter>
-
keySet
- Specified by:
keySet
in interfaceMap<SqlIdentifier, Parameter>
-
values
- Specified by:
values
in interfaceMap<SqlIdentifier, Parameter>
-
entrySet
- Specified by:
entrySet
in interfaceMap<SqlIdentifier, Parameter>
-
equals
-
hashCode
-
toString
-
forEach
- Specified by:
forEach
in interfaceMap<SqlIdentifier, Parameter>
-