Class OutboundRow
java.lang.Object
org.springframework.data.r2dbc.mapping.OutboundRow
- All Implemented Interfaces:
Cloneable
,Map<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>
public class OutboundRow
extends Object
implements Map<SqlIdentifier,org.springframework.r2dbc.core.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, org.springframework.r2dbc.core.Parameter value) Create aOutboundRow
instance initialized with the given key/value pair.OutboundRow
(Map<String, org.springframework.r2dbc.core.Parameter> map) Creates a newOutboundRow
from aMap
.OutboundRow
(SqlIdentifier key, org.springframework.r2dbc.core.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, org.springframework.r2dbc.core.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) Set<Map.Entry<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>> entrySet()
boolean
void
forEach
(BiConsumer<? super SqlIdentifier, ? super org.springframework.r2dbc.core.Parameter> action) org.springframework.r2dbc.core.Parameter
int
hashCode()
boolean
isEmpty()
keySet()
org.springframework.r2dbc.core.Parameter
org.springframework.r2dbc.core.Parameter
put
(SqlIdentifier key, org.springframework.r2dbc.core.Parameter value) void
putAll
(Map<? extends SqlIdentifier, ? extends org.springframework.r2dbc.core.Parameter> m) org.springframework.r2dbc.core.Parameter
int
size()
toString()
Collection<org.springframework.r2dbc.core.Parameter>
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:
-
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,
org.springframework.r2dbc.core.Parameter>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>
-
clone
-
containsKey
- Specified by:
containsKey
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>
-
containsValue
- Specified by:
containsValue
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>
-
get
- Specified by:
get
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>
-
put
public org.springframework.r2dbc.core.Parameter put(String key, org.springframework.r2dbc.core.Parameter value) -
put
public org.springframework.r2dbc.core.Parameter put(SqlIdentifier key, org.springframework.r2dbc.core.Parameter value) - Specified by:
put
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>
-
remove
- Specified by:
remove
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>
-
putAll
public void putAll(Map<? extends SqlIdentifier, ? extends org.springframework.r2dbc.core.Parameter> m) - Specified by:
putAll
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>
-
clear
public void clear()- Specified by:
clear
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>
-
keySet
- Specified by:
keySet
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>
-
values
- Specified by:
values
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>
-
entrySet
- Specified by:
entrySet
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>
-
equals
- Specified by:
equals
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter> - Overrides:
equals
in classObject
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter> - Overrides:
hashCode
in classObject
-
toString
-
forEach
public void forEach(BiConsumer<? super SqlIdentifier, ? super org.springframework.r2dbc.core.Parameter> action) - Specified by:
forEach
in interfaceMap<SqlIdentifier,
org.springframework.r2dbc.core.Parameter>
-