Package com.sap.cds
Interface Row
- All Superinterfaces:
CdsData,JSONizable,Map<String,Object>
Represents a single result data set of the
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sap.cds.CdsData
CdsData.Factory -
Field Summary
-
Method Summary
Modifier and TypeMethodDescription<T> TReturns thisRowmapped to the giventype.ref()Returns a reference to the entity this row originates from.default StructuredType<?>Returns a reference from the entity this row originates from along the given path.Methods inherited from interface com.sap.cds.CdsData
containsPath, forRemoval, forRemoval, get, getMetadata, getPath, getPathOrDefault, isForRemoval, putMetadata, putPath, putPathIfAbsent, removePathMethods inherited from interface com.sap.cds.JSONizable
toJsonMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
as
Returns thisRowmapped to the giventype.- Type Parameters:
T- the return type- Parameters:
type- the type thisRowis mapped to- Returns:
- this
Rowmapped to typeT
-
ref
StructuredType<?> ref()Returns a reference to the entity this row originates from.- Returns:
- the entity reference
- Throws:
CdsException- if this row does not reference an entity
-
to
Returns a reference from the entity this row originates from along the given path.- Parameters:
path- a path of association names separated by '.'- Returns:
- the entity reference
- Throws:
CdsException- if this row does not reference an entity
-