java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<FixedAssetAcquisitionLedger>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.fixedassetpostassetacquisition.FixedAssetAcquisitionLedger
All Implemented Interfaces:
VdmEntitySet

public class FixedAssetAcquisitionLedger extends VdmEntity<FixedAssetAcquisitionLedger> implements VdmEntitySet
Ledger for Fixed Asset Acqn Posting

Original entity name from the Odata EDM: FixedAssetAcquisitionLedger_Type

  • Field Details

  • Constructor Details

    • FixedAssetAcquisitionLedger

      public FixedAssetAcquisitionLedger()
    • FixedAssetAcquisitionLedger

      public FixedAssetAcquisitionLedger(@Nullable UUID fixedAssetPostingUUID, @Nullable String referenceDocumentItem, @Nullable String ledger, @Nullable FixedAssetAcquisition to_FixedAssetPosting, List<FixedAssetAcqnValuation> to_FixedAssetPostingValuation)
  • Method Details

    • getType

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

      public void setFixedAssetPostingUUID(@Nullable UUID fixedAssetPostingUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: FixedAssetPostingUUID

      Parameters:
      fixedAssetPostingUUID - Fixed Asset Posting: UUID
    • setReferenceDocumentItem

      public void setReferenceDocumentItem(@Nullable String referenceDocumentItem)
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: ReferenceDocumentItem

      Parameters:
      referenceDocumentItem - Reference Document Line Item
    • setLedger

      public void setLedger(@Nullable String ledger)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Ledger

      Parameters:
      ledger - Ledger in General Ledger Accounting
    • getEntityCollection

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

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<FixedAssetAcquisitionLedger>
    • toMapOfFields

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

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

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

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

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

      If the navigation property for an entity FixedAssetAcquisitionLedger 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 _FixedAssetPosting is already loaded, the result will contain the FixedAssetAcquisition entity. If not, an Option with result state empty is returned.
    • setFixedAssetPosting

      public void setFixedAssetPosting(FixedAssetAcquisition value)
      Overwrites the associated FixedAssetAcquisition entity for the loaded navigation property _FixedAssetPosting.
      Parameters:
      value - New FixedAssetAcquisition entity.
    • getFixedAssetPostingValuationIfPresent

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

      If the navigation property for an entity FixedAssetAcquisitionLedger 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 _FixedAssetPostingValuation is already loaded, the result will contain the FixedAssetAcqnValuation entities. If not, an Option with result state empty is returned.
    • setFixedAssetPostingValuation

      public void setFixedAssetPostingValuation(@Nonnull List<FixedAssetAcqnValuation> value)
      Overwrites the list of associated FixedAssetAcqnValuation entities for the loaded navigation property _FixedAssetPostingValuation.

      If the navigation property _FixedAssetPostingValuation of a queried FixedAssetAcquisitionLedger 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 FixedAssetAcqnValuation entities.
    • addFixedAssetPostingValuation

      public void addFixedAssetPostingValuation(FixedAssetAcqnValuation... entity)
      Adds elements to the list of associated FixedAssetAcqnValuation entities. This corresponds to the OData navigation property _FixedAssetPostingValuation.

      If the navigation property _FixedAssetPostingValuation of a queried FixedAssetAcquisitionLedger 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 FixedAssetAcqnValuation entities.
    • builder

    • getFixedAssetPostingUUID

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

      Original property name from the Odata EDM: FixedAssetPostingUUID

      Returns:
      Fixed Asset Posting: UUID
    • getReferenceDocumentItem

      @Nullable public String getReferenceDocumentItem()
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: ReferenceDocumentItem

      Returns:
      Reference Document Line Item
    • getLedger

      @Nullable public String getLedger()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Ledger

      Returns:
      Ledger in General Ledger Accounting
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<FixedAssetAcquisitionLedger>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<FixedAssetAcquisitionLedger>