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

public class LegalContextCategoryGroup extends VdmEntity<LegalContextCategoryGroup> implements VdmEntitySet
Legal Context Category group

Original entity name from the Odata EDM: LegalContextCategoryGroup_Type

  • Field Details

  • Constructor Details

    • LegalContextCategoryGroup

      public LegalContextCategoryGroup()
    • LegalContextCategoryGroup

      public LegalContextCategoryGroup(@Nullable UUID lglCntntMCntxtCatGroupUUID, @Nullable UUID lglCntntMContextUUID, @Nullable String lglCntntMCatGroupTitle, List<LegalContextParentCategory> to_LCMContextParentCategoryTP, @Nullable LegalContext to_LCMContextTP)
  • Method Details

    • getType

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

      public void setLglCntntMCntxtCatGroupUUID(@Nullable UUID lglCntntMCntxtCatGroupUUID)
      (Key Field) 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
    • setLglCntntMCatGroupTitle

      public void setLglCntntMCatGroupTitle(@Nullable String lglCntntMCatGroupTitle)
      Constraints: Not nullable, Maximum length: 128

      Original property name from the Odata EDM: LglCntntMCatGroupTitle

      Parameters:
      lglCntntMCatGroupTitle - Legal Transaction Name
    • getEntityCollection

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

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

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

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

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

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

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

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

      public void setLCMContextParentCategoryTP(@Nonnull List<LegalContextParentCategory> value)
      Overwrites the list of associated LegalContextParentCategory entities for the loaded navigation property _LCMContextParentCategoryTP.

      If the navigation property _LCMContextParentCategoryTP of a queried LegalContextCategoryGroup 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 LegalContextParentCategory entities.
    • addLCMContextParentCategoryTP

      public void addLCMContextParentCategoryTP(LegalContextParentCategory... entity)
      Adds elements to the list of associated LegalContextParentCategory entities. This corresponds to the OData navigation property _LCMContextParentCategoryTP.

      If the navigation property _LCMContextParentCategoryTP of a queried LegalContextCategoryGroup 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 LegalContextParentCategory 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 LegalContextCategoryGroup 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

    • getLglCntntMCntxtCatGroupUUID

      @Nullable public UUID getLglCntntMCntxtCatGroupUUID()
      (Key Field) 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
    • getLglCntntMCatGroupTitle

      @Nullable public String getLglCntntMCatGroupTitle()
      Constraints: Not nullable, Maximum length: 128

      Original property name from the Odata EDM: LglCntntMCatGroupTitle

      Returns:
      Legal Transaction Name
    • toString

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

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

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

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

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