java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<KanbanDelivery>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.kanbancontrolcyclev2.KanbanDelivery

public class KanbanDelivery extends VdmEntity<KanbanDelivery>
Kanban Deliveries

Original entity name from the Odata EDM: A_KanbanDeliveryType

  • Field Details

    • ALL_FIELDS

      public static final KanbanDeliverySelectable ALL_FIELDS
      Selector for all available fields of KanbanDelivery.
    • KANBAN_CONTAINER

      public static final KanbanDeliveryField<String> KANBAN_CONTAINER
      Use with available fluent helpers to apply the KanbanContainer field to query operations.
    • SOLD_TO_PARTY

      public static final KanbanDeliveryField<String> SOLD_TO_PARTY
      Use with available fluent helpers to apply the SoldToParty field to query operations.
    • CUSTOMER_REFERENCE_NUMBER

      public static final KanbanDeliveryField<String> CUSTOMER_REFERENCE_NUMBER
      Use with available fluent helpers to apply the CustomerReferenceNumber field to query operations.
    • DELIVERY_DOCUMENT

      public static final KanbanDeliveryField<String> DELIVERY_DOCUMENT
      Use with available fluent helpers to apply the DeliveryDocument field to query operations.
    • DELIVERY_DOCUMENT_ITEM

      public static final KanbanDeliveryField<String> DELIVERY_DOCUMENT_ITEM
      Use with available fluent helpers to apply the DeliveryDocumentItem field to query operations.
    • PLANT

      public static final KanbanDeliveryField<String> PLANT
      Use with available fluent helpers to apply the Plant field to query operations.
    • LAST_CHANGE_DATE_TIME

      public static final KanbanDeliveryField<ZonedDateTime> LAST_CHANGE_DATE_TIME
      Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
    • KANBAN_CONTROL_CYCLE

      public static final KanbanDeliveryField<String> KANBAN_CONTROL_CYCLE
      Use with available fluent helpers to apply the KanbanControlCycle field to query operations.
    • TO_KANBAN_CONTAINER

      public static final KanbanDeliveryOneToOneLink<KanbanContainer> TO_KANBAN_CONTAINER
      Use with available fluent helpers to apply the to_KanbanContainer navigation property to query operations.
    • TO_KANBAN_CONTROL_CYCLE

      public static final KanbanDeliveryOneToOneLink<KanbanControlCycle> TO_KANBAN_CONTROL_CYCLE
      Use with available fluent helpers to apply the to_KanbanControlCycle navigation property to query operations.
  • Constructor Details

    • KanbanDelivery

      public KanbanDelivery()
    • KanbanDelivery

      public KanbanDelivery(@Nullable String kanbanContainer, @Nullable String soldToParty, @Nullable String customerReferenceNumber, @Nullable String deliveryDocument, @Nullable String deliveryDocumentItem, @Nullable String plant, @Nullable ZonedDateTime lastChangeDateTime, @Nullable String kanbanControlCycle, @Nullable KanbanContainer toKanbanContainer, @Nullable KanbanControlCycle toKanbanControlCycle)
  • Method Details

    • getType

      @Nonnull public Class<KanbanDelivery> getType()
      Specified by:
      getType in class VdmObject<KanbanDelivery>
    • setKanbanContainer

      public void setKanbanContainer(@Nullable String kanbanContainer)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: KanbanContainer

      Parameters:
      kanbanContainer - Kanban Identification Number
    • setSoldToParty

      public void setSoldToParty(@Nullable String soldToParty)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SoldToParty

      Parameters:
      soldToParty - Sold-to Party
    • setCustomerReferenceNumber

      public void setCustomerReferenceNumber(@Nullable String customerReferenceNumber)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: CustomerReferenceNumber

      Parameters:
      customerReferenceNumber - Customer Reference
    • setDeliveryDocument

      public void setDeliveryDocument(@Nullable String deliveryDocument)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: DeliveryDocument

      Parameters:
      deliveryDocument - Delivery
    • setDeliveryDocumentItem

      public void setDeliveryDocumentItem(@Nullable String deliveryDocumentItem)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: DeliveryDocumentItem

      Parameters:
      deliveryDocumentItem - Delivery Item
    • setPlant

      public void setPlant(@Nullable String plant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable ZonedDateTime lastChangeDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Date and Time of Last Change
    • setKanbanControlCycle

      public void setKanbanControlCycle(@Nullable String kanbanControlCycle)
      Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: KanbanControlCycle

      Parameters:
      kanbanControlCycle - Kanban Control Cycle
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<KanbanDelivery>
    • getKey

      @Nonnull protected Map<String,Object> getKey()
      Overrides:
      getKey in class VdmObject<KanbanDelivery>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<KanbanDelivery>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<KanbanDelivery>
    • field

      @Nonnull public static <T> KanbanDeliveryField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> KanbanDeliveryField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<KanbanDelivery>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<KanbanDelivery>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<KanbanDelivery>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<KanbanDelivery>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<KanbanDelivery>
    • fetchKanbanContainer

      @Nullable public KanbanContainer fetchKanbanContainer()
      Fetches the KanbanContainer entity (one to one) associated with this entity. This corresponds to the OData navigation property to_KanbanContainer.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated KanbanContainer entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getKanbanContainerOrFetch

      @Nullable public KanbanContainer getKanbanContainerOrFetch()
      Retrieval of associated KanbanContainer entity (one to one). This corresponds to the OData navigation property to_KanbanContainer.

      If the navigation property to_KanbanContainer of a queried KanbanDelivery is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Returns:
      List of associated KanbanContainer entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getKanbanContainerIfPresent

      @Nonnull public io.vavr.control.Option<KanbanContainer> getKanbanContainerIfPresent()
      Retrieval of associated KanbanContainer entity (one to one). This corresponds to the OData navigation property to_KanbanContainer.

      If the navigation property for an entity KanbanDelivery has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property to_KanbanContainer is already loaded, the result will contain the KanbanContainer entity. If not, an Option with result state empty is returned.
    • setKanbanContainer

      public void setKanbanContainer(KanbanContainer value)
      Overwrites the associated KanbanContainer entity for the loaded navigation property to_KanbanContainer.
      Parameters:
      value - New KanbanContainer entity.
    • fetchKanbanControlCycle

      @Nullable public KanbanControlCycle fetchKanbanControlCycle()
      Fetches the KanbanControlCycle entity (one to one) associated with this entity. This corresponds to the OData navigation property to_KanbanControlCycle.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated KanbanControlCycle entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getKanbanControlCycleOrFetch

      @Nullable public KanbanControlCycle getKanbanControlCycleOrFetch()
      Retrieval of associated KanbanControlCycle entity (one to one). This corresponds to the OData navigation property to_KanbanControlCycle.

      If the navigation property to_KanbanControlCycle of a queried KanbanDelivery is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Returns:
      List of associated KanbanControlCycle entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getKanbanControlCycleIfPresent

      @Nonnull public io.vavr.control.Option<KanbanControlCycle> getKanbanControlCycleIfPresent()
      Retrieval of associated KanbanControlCycle entity (one to one). This corresponds to the OData navigation property to_KanbanControlCycle.

      If the navigation property for an entity KanbanDelivery has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property to_KanbanControlCycle is already loaded, the result will contain the KanbanControlCycle entity. If not, an Option with result state empty is returned.
    • setKanbanControlCycle

      public void setKanbanControlCycle(KanbanControlCycle value)
      Overwrites the associated KanbanControlCycle entity for the loaded navigation property to_KanbanControlCycle.
      Parameters:
      value - New KanbanControlCycle entity.
    • builder

      @Nonnull public static KanbanDelivery.KanbanDeliveryBuilder builder()
    • getKanbanContainer

      @Nullable public String getKanbanContainer()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: KanbanContainer

      Returns:
      Kanban Identification Number
    • getSoldToParty

      @Nullable public String getSoldToParty()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SoldToParty

      Returns:
      Sold-to Party
    • getCustomerReferenceNumber

      @Nullable public String getCustomerReferenceNumber()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: CustomerReferenceNumber

      Returns:
      Customer Reference
    • getDeliveryDocument

      @Nullable public String getDeliveryDocument()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: DeliveryDocument

      Returns:
      Delivery
    • getDeliveryDocumentItem

      @Nullable public String getDeliveryDocumentItem()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: DeliveryDocumentItem

      Returns:
      Delivery Item
    • getPlant

      @Nullable public String getPlant()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getLastChangeDateTime

      @Nullable public ZonedDateTime getLastChangeDateTime()
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Date and Time of Last Change
    • getKanbanControlCycle

      @Nullable public String getKanbanControlCycle()
      Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: KanbanControlCycle

      Returns:
      Kanban Control Cycle
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<KanbanDelivery>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<KanbanDelivery>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<KanbanDelivery>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<KanbanDelivery>