Class VarCnfObjDependencySourceCode

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

public class VarCnfObjDependencySourceCode extends VdmEntity<VarCnfObjDependencySourceCode> implements VdmEntitySet
Dependency Source Codes

Original entity name from the Odata EDM: VarCnfObjDependencySourceCode_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setObjectDependencyName(@Nullable String objectDependencyName)
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ObjectDependencyName

      Parameters:
      objectDependencyName - Name of Dependency
    • setChangeNumber

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

      Original property name from the Odata EDM: ChangeNumber

      Parameters:
      changeNumber - Change Number
    • setValidityStartDate

      public void setValidityStartDate(@Nullable LocalDate validityStartDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Valid-From Date
    • setValidityEndDate

      public void setValidityEndDate(@Nullable LocalDate validityEndDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - Valid-to date
    • setIsDeleted

      public void setIsDeleted(@Nullable Boolean isDeleted)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsDeleted

      Parameters:
      isDeleted - Deletion Indicator
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity VarCnfObjDependencySourceCode 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 _ObjectDependency is already loaded, the result will contain the VarConfignObjectDependency entity. If not, an Option with result state empty is returned.
    • setObjectDependency

      public void setObjectDependency(VarConfignObjectDependency value)
      Overwrites the associated VarConfignObjectDependency entity for the loaded navigation property _ObjectDependency.
      Parameters:
      value - New VarConfignObjectDependency entity.
    • getSourceCodeLineIfPresent

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

      If the navigation property for an entity VarCnfObjDependencySourceCode 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 _SourceCodeLine is already loaded, the result will contain the VarCnfObjDpndcySourceCodeLine entities. If not, an Option with result state empty is returned.
    • setSourceCodeLine

      public void setSourceCodeLine(@Nonnull List<VarCnfObjDpndcySourceCodeLine> value)
      Overwrites the list of associated VarCnfObjDpndcySourceCodeLine entities for the loaded navigation property _SourceCodeLine.

      If the navigation property _SourceCodeLine of a queried VarCnfObjDependencySourceCode 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 VarCnfObjDpndcySourceCodeLine entities.
    • addSourceCodeLine

      public void addSourceCodeLine(VarCnfObjDpndcySourceCodeLine... entity)
      Adds elements to the list of associated VarCnfObjDpndcySourceCodeLine entities. This corresponds to the OData navigation property _SourceCodeLine.

      If the navigation property _SourceCodeLine of a queried VarCnfObjDependencySourceCode 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 VarCnfObjDpndcySourceCodeLine entities.
    • builder

    • getObjectDependencyName

      @Nullable public String getObjectDependencyName()
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ObjectDependencyName

      Returns:
      Name of Dependency
    • getChangeNumber

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

      Original property name from the Odata EDM: ChangeNumber

      Returns:
      Change Number
    • getValidityStartDate

      @Nullable public LocalDate getValidityStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Valid-From Date
    • getValidityEndDate

      @Nullable public LocalDate getValidityEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      Valid-to date
    • getIsDeleted

      @Nullable public Boolean getIsDeleted()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsDeleted

      Returns:
      Deletion Indicator
    • toString

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

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

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

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

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