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

public class SrvcDocumentItemCategory extends VdmEntity<SrvcDocumentItemCategory> implements VdmEntitySet
Service Item Category

Original entity name from the Odata EDM: SrvcDocumentItemCategory_Type

  • Field Details

  • Constructor Details

    • SrvcDocumentItemCategory

      public SrvcDocumentItemCategory()
    • SrvcDocumentItemCategory

      public SrvcDocumentItemCategory(@Nullable String serviceDocItemCategory, @Nullable String serviceObjectType, @Nullable String businessObjectTypeName, @Nullable String serviceDocItemCategoryName, List<SrvcDocumentItemCategoryText> to_SrvcDocumentItemCategoryText)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ServiceDocItemCategory

      Parameters:
      serviceDocItemCategory - Item Category
    • setServiceObjectType

      public void setServiceObjectType(@Nullable String serviceObjectType)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ServiceObjectType

      Parameters:
      serviceObjectType - Service Item Object Type
    • setBusinessObjectTypeName

      public void setBusinessObjectTypeName(@Nullable String businessObjectTypeName)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: BusinessObjectTypeName

      Parameters:
      businessObjectTypeName - Name
    • setServiceDocItemCategoryName

      public void setServiceDocItemCategoryName(@Nullable String serviceDocItemCategoryName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ServiceDocItemCategoryName

      Parameters:
      serviceDocItemCategoryName - Item Category Text
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SrvcDocumentItemCategory 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 _SrvcDocumentItemCategoryText is already loaded, the result will contain the SrvcDocumentItemCategoryText entities. If not, an Option with result state empty is returned.
    • setSrvcDocumentItemCategoryText

      public void setSrvcDocumentItemCategoryText(@Nonnull List<SrvcDocumentItemCategoryText> value)
      Overwrites the list of associated SrvcDocumentItemCategoryText entities for the loaded navigation property _SrvcDocumentItemCategoryText.

      If the navigation property _SrvcDocumentItemCategoryText of a queried SrvcDocumentItemCategory 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 SrvcDocumentItemCategoryText entities.
    • addSrvcDocumentItemCategoryText

      public void addSrvcDocumentItemCategoryText(SrvcDocumentItemCategoryText... entity)
      Adds elements to the list of associated SrvcDocumentItemCategoryText entities. This corresponds to the OData navigation property _SrvcDocumentItemCategoryText.

      If the navigation property _SrvcDocumentItemCategoryText of a queried SrvcDocumentItemCategory 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 SrvcDocumentItemCategoryText entities.
    • builder

    • getServiceDocItemCategory

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

      Original property name from the Odata EDM: ServiceDocItemCategory

      Returns:
      Item Category
    • getServiceObjectType

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

      Original property name from the Odata EDM: ServiceObjectType

      Returns:
      Service Item Object Type
    • getBusinessObjectTypeName

      @Nullable public String getBusinessObjectTypeName()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: BusinessObjectTypeName

      Returns:
      Name
    • getServiceDocItemCategoryName

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

      Original property name from the Odata EDM: ServiceDocItemCategoryName

      Returns:
      Item Category Text
    • toString

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

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

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

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

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