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() |
List<String> |
getSelections() |
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()
getSelections
in interface EntitySelectable<EntityT extends VdmObject<?>>
@Nonnull protected LinkT translateLinkType(EntityLink<LinkT,EntityT,SubEntityT> link)
protected boolean canEqual(Object other)
@Nonnull public String getFieldName()
getFieldName
in interface EntitySelectable<EntityT extends VdmObject<?>>
Copyright © 2020 SAP SE. All rights reserved.