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

public class CADocBPItemBusLock extends VdmEntity<CADocBPItemBusLock> implements VdmEntitySet
Document Bus.Part. Item Business Lock

Original entity name from the Odata EDM: CADocBPItemBusLock_Type

  • Field Details

  • Constructor Details

    • CADocBPItemBusLock

      public CADocBPItemBusLock()
    • CADocBPItemBusLock

      public CADocBPItemBusLock(@Nullable String cADocumentNumber, @Nullable String cARepetitionItemNumber, @Nullable String cABPItemNumber, @Nullable String cASubItemNumber, @Nullable String cABusinessProcess, @Nullable String cABusinessLockReason, @Nullable LocalDate cABusinessLockValidFrom, @Nullable LocalDate cABusinessLockValidTo, @Nullable CADocBPItem to_BPItem, @Nullable CADocHeader to_DocHeader)
  • Method Details

    • getType

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

      public void setCADocumentNumber(@Nullable String cADocumentNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CADocumentNumber

      Parameters:
      cADocumentNumber - Document
    • setCARepetitionItemNumber

      public void setCARepetitionItemNumber(@Nullable String cARepetitionItemNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CARepetitionItemNumber

      Parameters:
      cARepetitionItemNumber - Repetition Item in FI-CA Document
    • setCABPItemNumber

      public void setCABPItemNumber(@Nullable String cABPItemNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CABPItemNumber

      Parameters:
      cABPItemNumber - Item Number in FI-CA Document
    • setCASubItemNumber

      public void setCASubItemNumber(@Nullable String cASubItemNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CASubItemNumber

      Parameters:
      cASubItemNumber - Subitem for a Partial Clearing in Document
    • setCABusinessProcess

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

      Original property name from the Odata EDM: CABusinessProcess

      Parameters:
      cABusinessProcess - Process Code (Example: Dunning, Payment)
    • setCABusinessLockReason

      public void setCABusinessLockReason(@Nullable String cABusinessLockReason)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: CABusinessLockReason

      Parameters:
      cABusinessLockReason - Lock Reason
    • setCABusinessLockValidFrom

      public void setCABusinessLockValidFrom(@Nullable LocalDate cABusinessLockValidFrom)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: CABusinessLockValidFrom

      Parameters:
      cABusinessLockValidFrom - Lock valid from
    • setCABusinessLockValidTo

      public void setCABusinessLockValidTo(@Nullable LocalDate cABusinessLockValidTo)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: CABusinessLockValidTo

      Parameters:
      cABusinessLockValidTo - Lock valid to
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity CADocBPItemBusLock 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 _BPItem is already loaded, the result will contain the CADocBPItem entity. If not, an Option with result state empty is returned.
    • setBPItem

      public void setBPItem(CADocBPItem value)
      Overwrites the associated CADocBPItem entity for the loaded navigation property _BPItem.
      Parameters:
      value - New CADocBPItem entity.
    • getDocHeaderIfPresent

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

      If the navigation property for an entity CADocBPItemBusLock 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 _DocHeader is already loaded, the result will contain the CADocHeader entity. If not, an Option with result state empty is returned.
    • setDocHeader

      public void setDocHeader(CADocHeader value)
      Overwrites the associated CADocHeader entity for the loaded navigation property _DocHeader.
      Parameters:
      value - New CADocHeader entity.
    • builder

      @Nonnull public static CADocBPItemBusLock.CADocBPItemBusLockBuilder builder()
    • getCADocumentNumber

      @Nullable public String getCADocumentNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CADocumentNumber

      Returns:
      Document
    • getCARepetitionItemNumber

      @Nullable public String getCARepetitionItemNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CARepetitionItemNumber

      Returns:
      Repetition Item in FI-CA Document
    • getCABPItemNumber

      @Nullable public String getCABPItemNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CABPItemNumber

      Returns:
      Item Number in FI-CA Document
    • getCASubItemNumber

      @Nullable public String getCASubItemNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CASubItemNumber

      Returns:
      Subitem for a Partial Clearing in Document
    • getCABusinessProcess

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

      Original property name from the Odata EDM: CABusinessProcess

      Returns:
      Process Code (Example: Dunning, Payment)
    • getCABusinessLockReason

      @Nullable public String getCABusinessLockReason()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: CABusinessLockReason

      Returns:
      Lock Reason
    • getCABusinessLockValidFrom

      @Nullable public LocalDate getCABusinessLockValidFrom()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: CABusinessLockValidFrom

      Returns:
      Lock valid from
    • getCABusinessLockValidTo

      @Nullable public LocalDate getCABusinessLockValidTo()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: CABusinessLockValidTo

      Returns:
      Lock valid to
    • toString

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

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

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

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

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