java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<LegalCategory>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.legalcategorie.LegalCategory

public class LegalCategory extends VdmEntity<LegalCategory>
Legal Categories

Original entity name from the Odata EDM: A_LegalCategoryType

  • Field Details

    • ALL_FIELDS

      public static final LegalCategorySelectable ALL_FIELDS
      Selector for all available fields of LegalCategory.
    • LGL_CNTNT_M_CATEGORY

      public static final LegalCategoryField<String> LGL_CNTNT_M_CATEGORY
      Use with available fluent helpers to apply the LglCntntMCategory field to query operations.
    • LGL_CNTNT_M_CAT_TYPE

      public static final LegalCategoryField<String> LGL_CNTNT_M_CAT_TYPE
      Use with available fluent helpers to apply the LglCntntMCatType field to query operations.
    • LGL_CNTNT_M_CAT_IS_SELECT

      public static final LegalCategoryField<Boolean> LGL_CNTNT_M_CAT_IS_SELECT
      Use with available fluent helpers to apply the LglCntntMCatIsSelect field to query operations.
    • LGL_CNTNT_M_CAT_IS_MULTI_SELECTION

      public static final LegalCategoryField<Boolean> LGL_CNTNT_M_CAT_IS_MULTI_SELECTION
      Use with available fluent helpers to apply the LglCntntMCatIsMultiSelection field to query operations.
    • LGL_CNTNT_M_CAT_LEVEL

      public static final LegalCategoryField<Short> LGL_CNTNT_M_CAT_LEVEL
      Use with available fluent helpers to apply the LglCntntMCatLevel field to query operations.
    • LGL_CNTNT_M_CAT_IS_OBSOLETE

      public static final LegalCategoryField<Boolean> LGL_CNTNT_M_CAT_IS_OBSOLETE
      Use with available fluent helpers to apply the LglCntntMCatIsObsolete field to query operations.
    • LGL_CNTNT_M_CAT_MODEL

      public static final LegalCategoryField<String> LGL_CNTNT_M_CAT_MODEL
      Use with available fluent helpers to apply the LglCntntMCatModel field to query operations.
    • LGL_CNTNT_M_CATEGORY_VALUE

      public static final LegalCategoryField<String> LGL_CNTNT_M_CATEGORY_VALUE
      Use with available fluent helpers to apply the LglCntntMCategoryValue field to query operations.
    • LGL_CNTNT_M_CHANGED_BY_USER

      public static final LegalCategoryField<String> LGL_CNTNT_M_CHANGED_BY_USER
      Use with available fluent helpers to apply the LglCntntMChangedByUser field to query operations.
    • LGL_CNTNT_M_CHANGED_UTC_DATE_TIME

      public static final LegalCategoryField<ZonedDateTime> LGL_CNTNT_M_CHANGED_UTC_DATE_TIME
      Use with available fluent helpers to apply the LglCntntMChangedUTCDateTime field to query operations.
    • LGL_CNTNT_M_CREATED_BY_USER

      public static final LegalCategoryField<String> LGL_CNTNT_M_CREATED_BY_USER
      Use with available fluent helpers to apply the LglCntntMCreatedByUser field to query operations.
    • LGL_CNTNT_M_CREATED_UTC_DATE_TIME

      public static final LegalCategoryField<ZonedDateTime> LGL_CNTNT_M_CREATED_UTC_DATE_TIME
      Use with available fluent helpers to apply the LglCntntMCreatedUTCDateTime field to query operations.
    • LGL_CNTNT_M_PARENT_CATEGORY

      public static final LegalCategoryField<String> LGL_CNTNT_M_PARENT_CATEGORY
      Use with available fluent helpers to apply the LglCntntMParentCategory field to query operations.
    • LGL_CNTNT_M_ROOT_CATEGORY

      public static final LegalCategoryField<String> LGL_CNTNT_M_ROOT_CATEGORY
      Use with available fluent helpers to apply the LglCntntMRootCategory field to query operations.
    • LGL_CNTNT_M_CAT_PURPOSE

      public static final LegalCategoryField<String> LGL_CNTNT_M_CAT_PURPOSE
      Use with available fluent helpers to apply the LglCntntMCatPurpose field to query operations.
    • LGL_CNTNT_M_CAT_IS_SYST_GENERATED

      public static final LegalCategoryField<Boolean> LGL_CNTNT_M_CAT_IS_SYST_GENERATED
      Use with available fluent helpers to apply the LglCntntMCatIsSystGenerated field to query operations.
    • LGL_CNTNT_M_CAT_CONSTANT

      public static final LegalCategoryField<String> LGL_CNTNT_M_CAT_CONSTANT
      Use with available fluent helpers to apply the LglCntntMCatConstant field to query operations.
  • Constructor Details

    • LegalCategory

      public LegalCategory()
    • LegalCategory

      public LegalCategory(@Nullable String lglCntntMCategory, @Nullable String lglCntntMCatType, @Nullable Boolean lglCntntMCatIsSelect, @Nullable Boolean lglCntntMCatIsMultiSelection, @Nullable Short lglCntntMCatLevel, @Nullable Boolean lglCntntMCatIsObsolete, @Nullable String lglCntntMCatModel, @Nullable String lglCntntMCategoryValue, @Nullable String lglCntntMChangedByUser, @Nullable ZonedDateTime lglCntntMChangedUTCDateTime, @Nullable String lglCntntMCreatedByUser, @Nullable ZonedDateTime lglCntntMCreatedUTCDateTime, @Nullable String lglCntntMParentCategory, @Nullable String lglCntntMRootCategory, @Nullable String lglCntntMCatPurpose, @Nullable Boolean lglCntntMCatIsSystGenerated, @Nullable String lglCntntMCatConstant, List<LegalCategoryText> toLegalCategoryText)
  • Method Details

    • getType

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

      public void setLglCntntMCategory(@Nullable String lglCntntMCategory)
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: LglCntntMCategory

      Parameters:
      lglCntntMCategory - Category ID
    • setLglCntntMCatType

      public void setLglCntntMCatType(@Nullable String lglCntntMCatType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: LglCntntMCatType

      Parameters:
      lglCntntMCatType - Category Type
    • setLglCntntMCatIsSelect

      public void setLglCntntMCatIsSelect(@Nullable Boolean lglCntntMCatIsSelect)
      Constraints: none

      Original property name from the Odata EDM: LglCntntMCatIsSelect

      Parameters:
      lglCntntMCatIsSelect - Category Is Selectable
    • setLglCntntMCatIsMultiSelection

      public void setLglCntntMCatIsMultiSelection(@Nullable Boolean lglCntntMCatIsMultiSelection)
      Constraints: none

      Original property name from the Odata EDM: LglCntntMCatIsMultiSelection

      Parameters:
      lglCntntMCatIsMultiSelection - Multiple Selection of Categories
    • setLglCntntMCatLevel

      public void setLglCntntMCatLevel(@Nullable Short lglCntntMCatLevel)
      Constraints: none

      Original property name from the Odata EDM: LglCntntMCatLevel

      Parameters:
      lglCntntMCatLevel - Category Level
    • setLglCntntMCatIsObsolete

      public void setLglCntntMCatIsObsolete(@Nullable Boolean lglCntntMCatIsObsolete)
      Constraints: none

      Original property name from the Odata EDM: LglCntntMCatIsObsolete

      Parameters:
      lglCntntMCatIsObsolete - Category Is Obsolete
    • setLglCntntMCatModel

      public void setLglCntntMCatModel(@Nullable String lglCntntMCatModel)
      Constraints: Not nullable, Maximum length: 120

      Original property name from the Odata EDM: LglCntntMCatModel

      Parameters:
      lglCntntMCatModel - Model for Dynamic Categories
    • setLglCntntMCategoryValue

      public void setLglCntntMCategoryValue(@Nullable String lglCntntMCategoryValue)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: LglCntntMCategoryValue

      Parameters:
      lglCntntMCategoryValue - Category Value
    • setLglCntntMChangedByUser

      public void setLglCntntMChangedByUser(@Nullable String lglCntntMChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LglCntntMChangedByUser

      Parameters:
      lglCntntMChangedByUser - Changed By User
    • setLglCntntMChangedUTCDateTime

      public void setLglCntntMChangedUTCDateTime(@Nullable ZonedDateTime lglCntntMChangedUTCDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LglCntntMChangedUTCDateTime

      Parameters:
      lglCntntMChangedUTCDateTime - Changed UTC Date Time
    • setLglCntntMCreatedByUser

      public void setLglCntntMCreatedByUser(@Nullable String lglCntntMCreatedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LglCntntMCreatedByUser

      Parameters:
      lglCntntMCreatedByUser - Created By
    • setLglCntntMCreatedUTCDateTime

      public void setLglCntntMCreatedUTCDateTime(@Nullable ZonedDateTime lglCntntMCreatedUTCDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LglCntntMCreatedUTCDateTime

      Parameters:
      lglCntntMCreatedUTCDateTime - Created On
    • 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
    • setLglCntntMRootCategory

      public void setLglCntntMRootCategory(@Nullable String lglCntntMRootCategory)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: LglCntntMRootCategory

      Parameters:
      lglCntntMRootCategory - Root Category ID
    • setLglCntntMCatPurpose

      public void setLglCntntMCatPurpose(@Nullable String lglCntntMCatPurpose)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: LglCntntMCatPurpose

      Parameters:
      lglCntntMCatPurpose - Category Purpose
    • setLglCntntMCatIsSystGenerated

      public void setLglCntntMCatIsSystGenerated(@Nullable Boolean lglCntntMCatIsSystGenerated)
      Constraints: none

      Original property name from the Odata EDM: LglCntntMCatIsSystGenerated

      Parameters:
      lglCntntMCatIsSystGenerated - System generated category
    • setLglCntntMCatConstant

      public void setLglCntntMCatConstant(@Nullable String lglCntntMCatConstant)
      Constraints: Not nullable, Maximum length: 55

      Original property name from the Odata EDM: LglCntntMCatConstant

      Parameters:
      lglCntntMCatConstant - Category Qualifier
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> LegalCategoryField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> LegalCategoryField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<LegalCategory>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<LegalCategory>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<LegalCategory>
    • getDefaultServicePath

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

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

      @Nonnull public List<LegalCategoryText> fetchLegalCategoryText()
      Fetches the LegalCategoryText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_LegalCategoryText.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated LegalCategoryText entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getLegalCategoryTextOrFetch

      @Nonnull public List<LegalCategoryText> getLegalCategoryTextOrFetch()
      Retrieval of associated LegalCategoryText entities (one to many). This corresponds to the OData navigation property to_LegalCategoryText.

      If the navigation property to_LegalCategoryText of a queried LegalCategory 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.

      Returns:
      List of associated LegalCategoryText entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getLegalCategoryTextIfPresent

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

      If the navigation property for an entity LegalCategory 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 to_LegalCategoryText is already loaded, the result will contain the LegalCategoryText entities. If not, an Option with result state empty is returned.
    • setLegalCategoryText

      public void setLegalCategoryText(@Nonnull List<LegalCategoryText> value)
      Overwrites the list of associated LegalCategoryText entities for the loaded navigation property to_LegalCategoryText.

      If the navigation property to_LegalCategoryText of a queried LegalCategory 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 LegalCategoryText entities.
    • addLegalCategoryText

      public void addLegalCategoryText(LegalCategoryText... entity)
      Adds elements to the list of associated LegalCategoryText entities. This corresponds to the OData navigation property to_LegalCategoryText.

      If the navigation property to_LegalCategoryText of a queried LegalCategory 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 LegalCategoryText entities.
    • builder

      @Nonnull public static LegalCategory.LegalCategoryBuilder builder()
    • getLglCntntMCategory

      @Nullable public String getLglCntntMCategory()
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: LglCntntMCategory

      Returns:
      Category ID
    • getLglCntntMCatType

      @Nullable public String getLglCntntMCatType()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: LglCntntMCatType

      Returns:
      Category Type
    • getLglCntntMCatIsSelect

      @Nullable public Boolean getLglCntntMCatIsSelect()
      Constraints: none

      Original property name from the Odata EDM: LglCntntMCatIsSelect

      Returns:
      Category Is Selectable
    • getLglCntntMCatIsMultiSelection

      @Nullable public Boolean getLglCntntMCatIsMultiSelection()
      Constraints: none

      Original property name from the Odata EDM: LglCntntMCatIsMultiSelection

      Returns:
      Multiple Selection of Categories
    • getLglCntntMCatLevel

      @Nullable public Short getLglCntntMCatLevel()
      Constraints: none

      Original property name from the Odata EDM: LglCntntMCatLevel

      Returns:
      Category Level
    • getLglCntntMCatIsObsolete

      @Nullable public Boolean getLglCntntMCatIsObsolete()
      Constraints: none

      Original property name from the Odata EDM: LglCntntMCatIsObsolete

      Returns:
      Category Is Obsolete
    • getLglCntntMCatModel

      @Nullable public String getLglCntntMCatModel()
      Constraints: Not nullable, Maximum length: 120

      Original property name from the Odata EDM: LglCntntMCatModel

      Returns:
      Model for Dynamic Categories
    • getLglCntntMCategoryValue

      @Nullable public String getLglCntntMCategoryValue()
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: LglCntntMCategoryValue

      Returns:
      Category Value
    • getLglCntntMChangedByUser

      @Nullable public String getLglCntntMChangedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LglCntntMChangedByUser

      Returns:
      Changed By User
    • getLglCntntMChangedUTCDateTime

      @Nullable public ZonedDateTime getLglCntntMChangedUTCDateTime()
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LglCntntMChangedUTCDateTime

      Returns:
      Changed UTC Date Time
    • getLglCntntMCreatedByUser

      @Nullable public String getLglCntntMCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LglCntntMCreatedByUser

      Returns:
      Created By
    • getLglCntntMCreatedUTCDateTime

      @Nullable public ZonedDateTime getLglCntntMCreatedUTCDateTime()
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LglCntntMCreatedUTCDateTime

      Returns:
      Created On
    • getLglCntntMParentCategory

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

      Original property name from the Odata EDM: LglCntntMParentCategory

      Returns:
      Parent Category ID
    • getLglCntntMRootCategory

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

      Original property name from the Odata EDM: LglCntntMRootCategory

      Returns:
      Root Category ID
    • getLglCntntMCatPurpose

      @Nullable public String getLglCntntMCatPurpose()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: LglCntntMCatPurpose

      Returns:
      Category Purpose
    • getLglCntntMCatIsSystGenerated

      @Nullable public Boolean getLglCntntMCatIsSystGenerated()
      Constraints: none

      Original property name from the Odata EDM: LglCntntMCatIsSystGenerated

      Returns:
      System generated category
    • getLglCntntMCatConstant

      @Nullable public String getLglCntntMCatConstant()
      Constraints: Not nullable, Maximum length: 55

      Original property name from the Odata EDM: LglCntntMCatConstant

      Returns:
      Category Qualifier
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<LegalCategory>