public interface Row extends CdsData
CdsDataStore
. It can be
accessed as a Map
or, via the as
method, in a typed way by an
accessor interface. Moreover, it can be serialized to JSON.Modifier and Type | Method and Description |
---|---|
<T> T |
as(Class<T> type)
Returns this
Row mapped to the given type . |
StructuredType<?> |
ref()
Returns a reference to the entity this row originates from.
|
default StructuredType<?> |
to(String path)
Returns a reference from the entity this row originates from along the given
path.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
toJson
<T> T as(Class<T> type)
Row
mapped to the given type
.T
- the return typetype
- the type this Row
is mapped toRow
mapped to type T
StructuredType<?> ref()
CdsException
- if this row does not reference an entitydefault StructuredType<?> to(String path)
path
- a path of association names separated by '.'CdsException
- if this row does not reference an entityCopyright © 2021 SAP. All rights reserved.