@Beta public class ODataEntityKey extends Object
Constructor and Description |
---|
ODataEntityKey() |
Modifier and Type | Method and Description |
---|---|
<PrimitiveT> |
addKeyProperty(String propertyName,
PrimitiveT value)
Add an entity property to this composite key.
|
String |
toString()
Serializes key properties into an OData URL format for entity keys.
|
public <PrimitiveT> void addKeyProperty(@Nonnull String propertyName, @Nonnull PrimitiveT value)
PrimitiveT
- Type of the primitive value.propertyName
- Name of the property (derived from the EDMX)value
- Property value, assumed to be a primitive.IllegalArgumentException
- When there is no mapping found for the provided Java literal.Copyright © 2020 SAP SE. All rights reserved.