public class OutboundRow extends Object implements Map<org.springframework.data.relational.core.sql.SqlIdentifier,Parameter>, Cloneable
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.SqlIdentifier
,
Parameter
Constructor and Description |
---|
OutboundRow()
Creates an empty
OutboundRow instance. |
OutboundRow(Map<String,Parameter> map)
Creates a new
OutboundRow from a Map . |
OutboundRow(org.springframework.data.relational.core.sql.SqlIdentifier key,
Parameter value)
Create a
OutboundRow instance initialized with the given key/value pair. |
OutboundRow(String key,
Parameter value)
Create a
OutboundRow instance initialized with the given key/value pair. |
Modifier and Type | Method and Description |
---|---|
OutboundRow |
append(org.springframework.data.relational.core.sql.SqlIdentifier key,
Parameter value)
Put the given key/value pair into this
OutboundRow and return this. |
OutboundRow |
append(String key,
Parameter value)
Put the given key/value pair into this
OutboundRow and return this. |
void |
clear() |
protected OutboundRow |
clone() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<org.springframework.data.relational.core.sql.SqlIdentifier,Parameter>> |
entrySet() |
boolean |
equals(Object o) |
void |
forEach(BiConsumer<? super org.springframework.data.relational.core.sql.SqlIdentifier,? super Parameter> action) |
Parameter |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<org.springframework.data.relational.core.sql.SqlIdentifier> |
keySet() |
Parameter |
put(org.springframework.data.relational.core.sql.SqlIdentifier key,
Parameter value) |
Parameter |
put(String key,
Parameter value) |
void |
putAll(Map<? extends org.springframework.data.relational.core.sql.SqlIdentifier,? extends Parameter> m) |
Parameter |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<Parameter> |
values() |
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public OutboundRow()
OutboundRow
instance.public OutboundRow(Map<String,Parameter> map)
OutboundRow
from a Map
.map
- the map used to initialize the OutboundRow
.public OutboundRow(String key, Parameter value)
OutboundRow
instance initialized with the given key/value pair.key
- key.value
- value.SqlIdentifier.unquoted(String)
public OutboundRow(org.springframework.data.relational.core.sql.SqlIdentifier key, Parameter value)
OutboundRow
instance initialized with the given key/value pair.key
- key.value
- value.public OutboundRow append(String key, Parameter value)
OutboundRow
and return this. Useful for chaining puts in a single
expression:
row.append("a", 1).append("b", 2)}
key
- key.value
- value.SqlIdentifier.unquoted(String)
public OutboundRow append(org.springframework.data.relational.core.sql.SqlIdentifier key, Parameter value)
OutboundRow
and return this. Useful for chaining puts in a single
expression:
row.append("a", 1).append("b", 2)}
key
- key.value
- value.public int size()
public boolean isEmpty()
protected OutboundRow clone()
public boolean containsKey(Object key)
containsKey
in interface Map<org.springframework.data.relational.core.sql.SqlIdentifier,Parameter>
public boolean containsValue(Object value)
containsValue
in interface Map<org.springframework.data.relational.core.sql.SqlIdentifier,Parameter>
public Parameter put(org.springframework.data.relational.core.sql.SqlIdentifier key, Parameter value)
public void putAll(Map<? extends org.springframework.data.relational.core.sql.SqlIdentifier,? extends Parameter> m)
public void clear()
public Set<org.springframework.data.relational.core.sql.SqlIdentifier> keySet()
public Collection<Parameter> values()
public Set<Map.Entry<org.springframework.data.relational.core.sql.SqlIdentifier,Parameter>> entrySet()
public boolean equals(Object o)
public int hashCode()
public void forEach(BiConsumer<? super org.springframework.data.relational.core.sql.SqlIdentifier,? super Parameter> action)
Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.