Represents a link from one entity to one other linked entity (as opposed to a list of linked entities). In OData v2 a
OneToOneLink can be used to filter and order a selection on an entity based on filters and orders on a linked entity.
Creates an instance of Link.
Name of the linking field to be used in the OData request.
Constructor type of the entity the field belongs to
Constructor type of the linked entity
List of selectables on the linked entity.
Filterables to apply to the given entity based on the linked entity.
List of criteria of the linked entity to order the given entity by with descending priority.
Create order statements for the OData request based on the linked entity. The given statements have descending priority.
Entity.requestBuilder() .getAll() .orderBy(Entity.TO_LINKED_ENTITY.orderBy(asc(LinkedEntity.PROPERTY1), desc(LinkedEntity.PROPERTY2)));
Criteria to order by
Newly created order link
See also, Selectable
Selection of fields or links on a linked entity
The link itself, to facilitate method chaining