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

public class ProdAllocationSequence extends VdmEntity<ProdAllocationSequence>
Product Allocation Sequence

Original entity name from the Odata EDM: A_ProdAllocationSequenceType

  • Field Details

    • ALL_FIELDS

      public static final ProdAllocationSequenceSelectable ALL_FIELDS
      Selector for all available fields of ProdAllocationSequence.
    • PROD_ALLOC_SQNC_ASSGMT_TP_OC

      public static final ProdAllocationSequenceField<Boolean> PROD_ALLOC_SQNC_ASSGMT_TP_OC
      Use with available fluent helpers to apply the to_ProdAllocSqncAssgmtTP_oc field to query operations.
    • PRODUCT_ALLOCATION_SEQUENCE_UUID

      public static final ProdAllocationSequenceField<UUID> PRODUCT_ALLOCATION_SEQUENCE_UUID
      Use with available fluent helpers to apply the ProductAllocationSequenceUUID field to query operations.
    • PRODUCT_ALLOCATION_SEQUENCE_TEXT

      public static final ProdAllocationSequenceField<String> PRODUCT_ALLOCATION_SEQUENCE_TEXT
      Use with available fluent helpers to apply the ProductAllocationSequence_Text field to query operations.
    • PRODUCT_ALLOCATION_SEQUENCE

      public static final ProdAllocationSequenceField<String> PRODUCT_ALLOCATION_SEQUENCE
      Use with available fluent helpers to apply the ProductAllocationSequence field to query operations.
    • PROD_ALLOC_SQNC_CONSUMPTION_UNIT

      public static final ProdAllocationSequenceField<String> PROD_ALLOC_SQNC_CONSUMPTION_UNIT
      Use with available fluent helpers to apply the ProdAllocSqncConsumptionUnit field to query operations.
    • CREATION_DATE_TIME

      public static final ProdAllocationSequenceField<ZonedDateTime> CREATION_DATE_TIME
      Use with available fluent helpers to apply the CreationDateTime field to query operations.
    • CREATED_BY_USER

      public static final ProdAllocationSequenceField<String> CREATED_BY_USER
      Use with available fluent helpers to apply the CreatedByUser field to query operations.
    • LAST_CHANGE_DATE_TIME

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

      public static final ProdAllocationSequenceField<String> LAST_CHANGED_BY_USER
      Use with available fluent helpers to apply the LastChangedByUser field to query operations.
    • TO_PROD_ALLOC_SEQUENCE_TTP

      public static final ProdAllocationSequenceLink<ProdAllocSequenceT> TO_PROD_ALLOC_SEQUENCE_TTP
      Use with available fluent helpers to apply the to_ProdAllocSequenceTTP navigation property to query operations.
    • TO_PROD_ALLOC_SQNC_ASSGMT_TP

      public static final ProdAllocationSequenceLink<ProdAllocSqncAssgmt> TO_PROD_ALLOC_SQNC_ASSGMT_TP
      Use with available fluent helpers to apply the to_ProdAllocSqncAssgmtTP navigation property to query operations.
  • Constructor Details

    • ProdAllocationSequence

      public ProdAllocationSequence()
    • ProdAllocationSequence

      public ProdAllocationSequence(@Nullable Boolean prodAllocSqncAssgmtTP_oc, @Nullable UUID productAllocationSequenceUUID, @Nullable String productAllocationSequence_Text, @Nullable String productAllocationSequence, @Nullable String prodAllocSqncConsumptionUnit, @Nullable ZonedDateTime creationDateTime, @Nullable String createdByUser, @Nullable ZonedDateTime lastChangeDateTime, @Nullable String lastChangedByUser, List<ProdAllocSequenceT> toProdAllocSequenceTTP, List<ProdAllocSqncAssgmt> toProdAllocSqncAssgmtTP)
  • Method Details

    • getType

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

      public void setProdAllocSqncAssgmtTP_oc(@Nullable Boolean prodAllocSqncAssgmtTP_oc)
      Constraints: none

      Original property name from the Odata EDM: to_ProdAllocSqncAssgmtTP_oc

      Parameters:
      prodAllocSqncAssgmtTP_oc - Dynamic CbA-Control
    • setProductAllocationSequenceUUID

      public void setProductAllocationSequenceUUID(@Nullable UUID productAllocationSequenceUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ProductAllocationSequenceUUID

      Parameters:
      productAllocationSequenceUUID - Product Allocation Sequence UUID
    • setProductAllocationSequence_Text

      public void setProductAllocationSequence_Text(@Nullable String productAllocationSequence_Text)
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: ProductAllocationSequence_Text

      Parameters:
      productAllocationSequence_Text - Product Allocation Sequence Description
    • setProductAllocationSequence

      public void setProductAllocationSequence(@Nullable String productAllocationSequence)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProductAllocationSequence

      Parameters:
      productAllocationSequence - Product Allocation Sequence
    • setProdAllocSqncConsumptionUnit

      public void setProdAllocSqncConsumptionUnit(@Nullable String prodAllocSqncConsumptionUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ProdAllocSqncConsumptionUnit

      Parameters:
      prodAllocSqncConsumptionUnit - Product Allocation Sequence Consumption Unit
    • setCreationDateTime

      public void setCreationDateTime(@Nullable ZonedDateTime creationDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Creation Date Time
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Created by User
    • setLastChangeDateTime

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

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Last Change Date Time
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Last Changed by User
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ProdAllocationSequenceField<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> ProdAllocationSequenceField<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<ProdAllocationSequence>
    • setServicePathForFetch

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

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

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

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

      @Nonnull public List<ProdAllocSequenceT> fetchProdAllocSequenceTTP()
      Fetches the ProdAllocSequenceT entities (one to many) associated with this entity. This corresponds to the OData navigation property to_ProdAllocSequenceTTP.

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

      Returns:
      List containing one or more associated ProdAllocSequenceT entities. If no entities are associated then an empty list is returned.
      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.
    • getProdAllocSequenceTTPOrFetch

      @Nonnull public List<ProdAllocSequenceT> getProdAllocSequenceTTPOrFetch()
      Retrieval of associated ProdAllocSequenceT entities (one to many). This corresponds to the OData navigation property to_ProdAllocSequenceTTP.

      If the navigation property to_ProdAllocSequenceTTP of a queried ProdAllocationSequence 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 ProdAllocSequenceT entities.
      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.
    • getProdAllocSequenceTTPIfPresent

      @Nonnull public io.vavr.control.Option<List<ProdAllocSequenceT>> getProdAllocSequenceTTPIfPresent()
      Retrieval of associated ProdAllocSequenceT entities (one to many). This corresponds to the OData navigation property to_ProdAllocSequenceTTP.

      If the navigation property for an entity ProdAllocationSequence 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_ProdAllocSequenceTTP is already loaded, the result will contain the ProdAllocSequenceT entities. If not, an Option with result state empty is returned.
    • setProdAllocSequenceTTP

      public void setProdAllocSequenceTTP(@Nonnull List<ProdAllocSequenceT> value)
      Overwrites the list of associated ProdAllocSequenceT entities for the loaded navigation property to_ProdAllocSequenceTTP.

      If the navigation property to_ProdAllocSequenceTTP of a queried ProdAllocationSequence 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.

      Parameters:
      value - List of ProdAllocSequenceT entities.
    • addProdAllocSequenceTTP

      public void addProdAllocSequenceTTP(ProdAllocSequenceT... entity)
      Adds elements to the list of associated ProdAllocSequenceT entities. This corresponds to the OData navigation property to_ProdAllocSequenceTTP.

      If the navigation property to_ProdAllocSequenceTTP of a queried ProdAllocationSequence 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.

      Parameters:
      entity - Array of ProdAllocSequenceT entities.
    • fetchProdAllocSqncAssgmtTP

      @Nonnull public List<ProdAllocSqncAssgmt> fetchProdAllocSqncAssgmtTP()
      Fetches the ProdAllocSqncAssgmt entities (one to many) associated with this entity. This corresponds to the OData navigation property to_ProdAllocSqncAssgmtTP.

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

      Returns:
      List containing one or more associated ProdAllocSqncAssgmt entities. If no entities are associated then an empty list is returned.
      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.
    • getProdAllocSqncAssgmtTPOrFetch

      @Nonnull public List<ProdAllocSqncAssgmt> getProdAllocSqncAssgmtTPOrFetch()
      Retrieval of associated ProdAllocSqncAssgmt entities (one to many). This corresponds to the OData navigation property to_ProdAllocSqncAssgmtTP.

      If the navigation property to_ProdAllocSqncAssgmtTP of a queried ProdAllocationSequence 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 ProdAllocSqncAssgmt entities.
      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.
    • getProdAllocSqncAssgmtTPIfPresent

      @Nonnull public io.vavr.control.Option<List<ProdAllocSqncAssgmt>> getProdAllocSqncAssgmtTPIfPresent()
      Retrieval of associated ProdAllocSqncAssgmt entities (one to many). This corresponds to the OData navigation property to_ProdAllocSqncAssgmtTP.

      If the navigation property for an entity ProdAllocationSequence 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_ProdAllocSqncAssgmtTP is already loaded, the result will contain the ProdAllocSqncAssgmt entities. If not, an Option with result state empty is returned.
    • setProdAllocSqncAssgmtTP

      public void setProdAllocSqncAssgmtTP(@Nonnull List<ProdAllocSqncAssgmt> value)
      Overwrites the list of associated ProdAllocSqncAssgmt entities for the loaded navigation property to_ProdAllocSqncAssgmtTP.

      If the navigation property to_ProdAllocSqncAssgmtTP of a queried ProdAllocationSequence 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.

      Parameters:
      value - List of ProdAllocSqncAssgmt entities.
    • addProdAllocSqncAssgmtTP

      public void addProdAllocSqncAssgmtTP(ProdAllocSqncAssgmt... entity)
      Adds elements to the list of associated ProdAllocSqncAssgmt entities. This corresponds to the OData navigation property to_ProdAllocSqncAssgmtTP.

      If the navigation property to_ProdAllocSqncAssgmtTP of a queried ProdAllocationSequence 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.

      Parameters:
      entity - Array of ProdAllocSqncAssgmt entities.
    • builder

      @Nonnull public static ProdAllocationSequence.ProdAllocationSequenceBuilder builder()
    • getProdAllocSqncAssgmtTP_oc

      @Nullable public Boolean getProdAllocSqncAssgmtTP_oc()
      Constraints: none

      Original property name from the Odata EDM: to_ProdAllocSqncAssgmtTP_oc

      Returns:
      Dynamic CbA-Control
    • getProductAllocationSequenceUUID

      @Nullable public UUID getProductAllocationSequenceUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ProductAllocationSequenceUUID

      Returns:
      Product Allocation Sequence UUID
    • getProductAllocationSequence_Text

      @Nullable public String getProductAllocationSequence_Text()
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: ProductAllocationSequence_Text

      Returns:
      Product Allocation Sequence Description
    • getProductAllocationSequence

      @Nullable public String getProductAllocationSequence()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProductAllocationSequence

      Returns:
      Product Allocation Sequence
    • getProdAllocSqncConsumptionUnit

      @Nullable public String getProdAllocSqncConsumptionUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ProdAllocSqncConsumptionUnit

      Returns:
      Product Allocation Sequence Consumption Unit
    • getCreationDateTime

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

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Creation Date Time
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created by User
    • getLastChangeDateTime

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

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Last Change Date Time
    • getLastChangedByUser

      @Nullable public String getLastChangedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Last Changed by User
    • toString

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

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

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

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