LinkT
- The type of this link.EntityT
- The type of the entity.SubEntityT
- The type of the subentity.public class EntityLink<LinkT extends EntityLink<LinkT,EntityT,SubEntityT>,EntityT extends VdmObject<?>,SubEntityT extends VdmObject<?>> extends Object implements EntitySelectable<EntityT>
Modifier | Constructor and Description |
---|---|
protected |
EntityLink(EntityLink<LinkT,EntityT,SubEntityT> toCopy) |
|
EntityLink(String fieldName) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<String> |
getExpansions() |
String |
getFieldName()
Get the field name of OData entity property.
|
List<String> |
getSelections()
Get the select expression that represents the OData entity property.
|
int |
hashCode() |
LinkT |
select(EntitySelectable<SubEntityT>... selectors)
Used in combination with
FluentHelperRead.select when expanding a
navigation property to specify which fields of that navigation property to select, and which navigation
properties of that navigation property to expand. |
String |
toString() |
protected LinkT |
translateLinkType(EntityLink<LinkT,EntityT,SubEntityT> link) |
protected EntityLink(@Nonnull EntityLink<LinkT,EntityT,SubEntityT> toCopy)
@SafeVarargs @Nonnull public final LinkT select(@Nonnull EntitySelectable<SubEntityT>... selectors)
FluentHelperRead.select
when expanding a
navigation property to specify which fields of that navigation property to select, and which navigation
properties of that navigation property to expand.selectors
- Array of fields to select and/or navigation properties to expand.FluentHelperRead.select
.@Nonnull public List<String> getSelections()
EntitySelectable
getSelections
in interface EntitySelectable<EntityT extends VdmObject<?>>
@Nonnull protected LinkT translateLinkType(EntityLink<LinkT,EntityT,SubEntityT> link)
@Nonnull public String getFieldName()
EntitySelectable
getFieldName
in interface EntitySelectable<EntityT extends VdmObject<?>>
Copyright © 2021 SAP SE. All rights reserved.