Class LegalContextParentCategory

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

public class LegalContextParentCategory extends VdmEntity<LegalContextParentCategory> implements VdmEntitySet
Legal Context Parent Category

Original entity name from the Odata EDM: LegalContextParentCategory_Type

  • Field Details

  • Constructor Details

    • LegalContextParentCategory

      public LegalContextParentCategory()
    • LegalContextParentCategory

      public LegalContextParentCategory(@Nullable UUID lglCntntMCntxtParCategoryUUID, @Nullable UUID lglCntntMCntxtCatGroupUUID, @Nullable UUID lglCntntMContextUUID, @Nullable String lglCntntMParentCategory, @Nullable Boolean lglCntntMIsMandatory, @Nullable LegalContextCategoryGroup to_LCMContextCategoryGroupTP, List<LegalContextCategory> to_LCMContextCategoryTP, @Nullable LegalContext to_LCMContextTP)
  • Method Details

    • getType

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

      public void setLglCntntMCntxtParCategoryUUID(@Nullable UUID lglCntntMCntxtParCategoryUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: LglCntntMCntxtParCategoryUUID

      Parameters:
      lglCntntMCntxtParCategoryUUID - Universal Unique Identifier
    • setLglCntntMCntxtCatGroupUUID

      public void setLglCntntMCntxtCatGroupUUID(@Nullable UUID lglCntntMCntxtCatGroupUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: LglCntntMCntxtCatGroupUUID

      Parameters:
      lglCntntMCntxtCatGroupUUID - Universal Unique Identifier
    • setLglCntntMContextUUID

      public void setLglCntntMContextUUID(@Nullable UUID lglCntntMContextUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: LglCntntMContextUUID

      Parameters:
      lglCntntMContextUUID - Universal Unique Identifier
    • setLglCntntMParentCategory

      public void setLglCntntMParentCategory(@Nullable String lglCntntMParentCategory)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: LglCntntMParentCategory

      Parameters:
      lglCntntMParentCategory - Parent Category ID
    • setLglCntntMIsMandatory

      public void setLglCntntMIsMandatory(@Nullable Boolean lglCntntMIsMandatory)
      Constraints: Not nullable

      Original property name from the Odata EDM: LglCntntMIsMandatory

      Parameters:
      lglCntntMIsMandatory - Mandatory
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity LegalContextParentCategory 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 _LCMContextCategoryGroupTP is already loaded, the result will contain the LegalContextCategoryGroup entity. If not, an Option with result state empty is returned.
    • setLCMContextCategoryGroupTP

      public void setLCMContextCategoryGroupTP(LegalContextCategoryGroup value)
      Overwrites the associated LegalContextCategoryGroup entity for the loaded navigation property _LCMContextCategoryGroupTP.
      Parameters:
      value - New LegalContextCategoryGroup entity.
    • getLCMContextCategoryTPIfPresent

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

      If the navigation property for an entity LegalContextParentCategory 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 _LCMContextCategoryTP is already loaded, the result will contain the LegalContextCategory entities. If not, an Option with result state empty is returned.
    • setLCMContextCategoryTP

      public void setLCMContextCategoryTP(@Nonnull List<LegalContextCategory> value)
      Overwrites the list of associated LegalContextCategory entities for the loaded navigation property _LCMContextCategoryTP.

      If the navigation property _LCMContextCategoryTP of a queried LegalContextParentCategory 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 LegalContextCategory entities.
    • addLCMContextCategoryTP

      public void addLCMContextCategoryTP(LegalContextCategory... entity)
      Adds elements to the list of associated LegalContextCategory entities. This corresponds to the OData navigation property _LCMContextCategoryTP.

      If the navigation property _LCMContextCategoryTP of a queried LegalContextParentCategory 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 LegalContextCategory entities.
    • getLCMContextTPIfPresent

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

      If the navigation property for an entity LegalContextParentCategory 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 _LCMContextTP is already loaded, the result will contain the LegalContext entity. If not, an Option with result state empty is returned.
    • setLCMContextTP

      public void setLCMContextTP(LegalContext value)
      Overwrites the associated LegalContext entity for the loaded navigation property _LCMContextTP.
      Parameters:
      value - New LegalContext entity.
    • builder

    • getLglCntntMCntxtParCategoryUUID

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

      Original property name from the Odata EDM: LglCntntMCntxtParCategoryUUID

      Returns:
      Universal Unique Identifier
    • getLglCntntMCntxtCatGroupUUID

      @Nullable public UUID getLglCntntMCntxtCatGroupUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: LglCntntMCntxtCatGroupUUID

      Returns:
      Universal Unique Identifier
    • getLglCntntMContextUUID

      @Nullable public UUID getLglCntntMContextUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: LglCntntMContextUUID

      Returns:
      Universal Unique Identifier
    • getLglCntntMParentCategory

      @Nullable public String getLglCntntMParentCategory()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: LglCntntMParentCategory

      Returns:
      Parent Category ID
    • getLglCntntMIsMandatory

      @Nullable public Boolean getLglCntntMIsMandatory()
      Constraints: Not nullable

      Original property name from the Odata EDM: LglCntntMIsMandatory

      Returns:
      Mandatory
    • toString

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

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

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

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

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