Class LegalCategory
Original entity name from the Odata EDM: A_LegalCategoryType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of LegalCategory instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LegalCategorySelectableSelector for all available fields of LegalCategory.static final LegalCategoryField<String>Use with available fluent helpers to apply the LglCntntMCatConstant field to query operations.static final LegalCategoryField<Boolean>Use with available fluent helpers to apply the LglCntntMCatIsMultiSelection field to query operations.static final LegalCategoryField<Boolean>Use with available fluent helpers to apply the LglCntntMCatIsObsolete field to query operations.static final LegalCategoryField<Boolean>Use with available fluent helpers to apply the LglCntntMCatIsSelect field to query operations.static final LegalCategoryField<Boolean>Use with available fluent helpers to apply the LglCntntMCatIsSystGenerated field to query operations.static final LegalCategoryField<Short>Use with available fluent helpers to apply the LglCntntMCatLevel field to query operations.static final LegalCategoryField<String>Use with available fluent helpers to apply the LglCntntMCatModel field to query operations.static final LegalCategoryField<String>Use with available fluent helpers to apply the LglCntntMCatPurpose field to query operations.static final LegalCategoryField<String>Use with available fluent helpers to apply the LglCntntMCatType field to query operations.static final LegalCategoryField<String>Use with available fluent helpers to apply the LglCntntMCategory field to query operations.static final LegalCategoryField<String>Use with available fluent helpers to apply the LglCntntMCategoryValue field to query operations.static final LegalCategoryField<String>Use with available fluent helpers to apply the LglCntntMChangedByUser field to query operations.static final LegalCategoryField<ZonedDateTime>Use with available fluent helpers to apply the LglCntntMChangedUTCDateTime field to query operations.static final LegalCategoryField<String>Use with available fluent helpers to apply the LglCntntMCreatedByUser field to query operations.static final LegalCategoryField<ZonedDateTime>Use with available fluent helpers to apply the LglCntntMCreatedUTCDateTime field to query operations.static final LegalCategoryField<String>Use with available fluent helpers to apply the LglCntntMParentCategory field to query operations.static final LegalCategoryField<String>Use with available fluent helpers to apply the LglCntntMRootCategory field to query operations.static final LegalCategoryLink<LegalCategoryText>Use with available fluent helpers to apply the to_LegalCategoryText navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionLegalCategory(String lglCntntMCategory, String lglCntntMCatType, Boolean lglCntntMCatIsSelect, Boolean lglCntntMCatIsMultiSelection, Short lglCntntMCatLevel, Boolean lglCntntMCatIsObsolete, String lglCntntMCatModel, String lglCntntMCategoryValue, String lglCntntMChangedByUser, ZonedDateTime lglCntntMChangedUTCDateTime, String lglCntntMCreatedByUser, ZonedDateTime lglCntntMCreatedUTCDateTime, String lglCntntMParentCategory, String lglCntntMRootCategory, String lglCntntMCatPurpose, Boolean lglCntntMCatIsSystGenerated, String lglCntntMCatConstant, List<LegalCategoryText> toLegalCategoryText) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLegalCategoryText(LegalCategoryText... entity) Adds elements to the list of associated LegalCategoryText entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the LegalCategoryText entities (one to many) associated with this entity.static <T,DomainT>
LegalCategoryField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> LegalCategoryField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidprotected Stringprotected StringgetKey()io.vavr.control.Option<List<LegalCategoryText>>Retrieval of associated LegalCategoryText entities (one to many).Retrieval of associated LegalCategoryText entities (one to many).Constraints: Not nullable, Maximum length: 55(Key Field) Constraints: Not nullable, Maximum length: 6Constraints: Not nullable, Maximum length: 15Constraints: noneConstraints: noneConstraints: noneConstraints: noneConstraints: noneConstraints: Not nullable, Maximum length: 120Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 12Constraints: Not nullable, Precision: 7Constraints: Not nullable, Maximum length: 12Constraints: Not nullable, Precision: 7Constraints: Not nullable, Maximum length: 6Constraints: Not nullable, Maximum length: 6getType()inthashCode()voidOverwrites the list of associated LegalCategoryText entities for the loaded navigation property to_LegalCategoryText.voidsetLglCntntMCatConstant(String lglCntntMCatConstant) Constraints: Not nullable, Maximum length: 55voidsetLglCntntMCategory(String lglCntntMCategory) (Key Field) Constraints: Not nullable, Maximum length: 6voidsetLglCntntMCategoryValue(String lglCntntMCategoryValue) Constraints: Not nullable, Maximum length: 15voidsetLglCntntMCatIsMultiSelection(Boolean lglCntntMCatIsMultiSelection) Constraints: nonevoidsetLglCntntMCatIsObsolete(Boolean lglCntntMCatIsObsolete) Constraints: nonevoidsetLglCntntMCatIsSelect(Boolean lglCntntMCatIsSelect) Constraints: nonevoidsetLglCntntMCatIsSystGenerated(Boolean lglCntntMCatIsSystGenerated) Constraints: nonevoidsetLglCntntMCatLevel(Short lglCntntMCatLevel) Constraints: nonevoidsetLglCntntMCatModel(String lglCntntMCatModel) Constraints: Not nullable, Maximum length: 120voidsetLglCntntMCatPurpose(String lglCntntMCatPurpose) Constraints: Not nullable, Maximum length: 1voidsetLglCntntMCatType(String lglCntntMCatType) Constraints: Not nullable, Maximum length: 1voidsetLglCntntMChangedByUser(String lglCntntMChangedByUser) Constraints: Not nullable, Maximum length: 12voidsetLglCntntMChangedUTCDateTime(ZonedDateTime lglCntntMChangedUTCDateTime) Constraints: Not nullable, Precision: 7voidsetLglCntntMCreatedByUser(String lglCntntMCreatedByUser) Constraints: Not nullable, Maximum length: 12voidsetLglCntntMCreatedUTCDateTime(ZonedDateTime lglCntntMCreatedUTCDateTime) Constraints: Not nullable, Precision: 7voidsetLglCntntMParentCategory(String lglCntntMParentCategory) Constraints: Not nullable, Maximum length: 6voidsetLglCntntMRootCategory(String lglCntntMRootCategory) Constraints: Not nullable, Maximum length: 6protected voidsetServicePathForFetch(String servicePathForFetch) toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of LegalCategory. -
LGL_CNTNT_M_CATEGORY
Use with available fluent helpers to apply the LglCntntMCategory field to query operations. -
LGL_CNTNT_M_CAT_TYPE
Use with available fluent helpers to apply the LglCntntMCatType field to query operations. -
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
Use with available fluent helpers to apply the LglCntntMCatIsMultiSelection field to query operations. -
LGL_CNTNT_M_CAT_LEVEL
Use with available fluent helpers to apply the LglCntntMCatLevel field to query operations. -
LGL_CNTNT_M_CAT_IS_OBSOLETE
Use with available fluent helpers to apply the LglCntntMCatIsObsolete field to query operations. -
LGL_CNTNT_M_CAT_MODEL
Use with available fluent helpers to apply the LglCntntMCatModel field to query operations. -
LGL_CNTNT_M_CATEGORY_VALUE
Use with available fluent helpers to apply the LglCntntMCategoryValue field to query operations. -
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
Use with available fluent helpers to apply the LglCntntMChangedUTCDateTime field to query operations. -
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
Use with available fluent helpers to apply the LglCntntMCreatedUTCDateTime field to query operations. -
LGL_CNTNT_M_PARENT_CATEGORY
Use with available fluent helpers to apply the LglCntntMParentCategory field to query operations. -
LGL_CNTNT_M_ROOT_CATEGORY
Use with available fluent helpers to apply the LglCntntMRootCategory field to query operations. -
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
Use with available fluent helpers to apply the LglCntntMCatIsSystGenerated field to query operations. -
LGL_CNTNT_M_CAT_CONSTANT
Use with available fluent helpers to apply the LglCntntMCatConstant field to query operations. -
TO_LEGAL_CATEGORY_TEXT
Use with available fluent helpers to apply the to_LegalCategoryText navigation property 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
- Specified by:
getTypein classVdmObject<LegalCategory>
-
setLglCntntMCategory
(Key Field) Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: LglCntntMCategory
- Parameters:
lglCntntMCategory- Category ID
-
setLglCntntMCatType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: LglCntntMCatType
- Parameters:
lglCntntMCatType- Category Type
-
setLglCntntMCatIsSelect
Constraints: noneOriginal property name from the Odata EDM: LglCntntMCatIsSelect
- Parameters:
lglCntntMCatIsSelect- Category Is Selectable
-
setLglCntntMCatIsMultiSelection
Constraints: noneOriginal property name from the Odata EDM: LglCntntMCatIsMultiSelection
- Parameters:
lglCntntMCatIsMultiSelection- Multiple Selection of Categories
-
setLglCntntMCatLevel
Constraints: noneOriginal property name from the Odata EDM: LglCntntMCatLevel
- Parameters:
lglCntntMCatLevel- Category Level
-
setLglCntntMCatIsObsolete
Constraints: noneOriginal property name from the Odata EDM: LglCntntMCatIsObsolete
- Parameters:
lglCntntMCatIsObsolete- Category Is Obsolete
-
setLglCntntMCatModel
Constraints: Not nullable, Maximum length: 120Original property name from the Odata EDM: LglCntntMCatModel
- Parameters:
lglCntntMCatModel- Model for Dynamic Categories
-
setLglCntntMCategoryValue
Constraints: Not nullable, Maximum length: 15Original property name from the Odata EDM: LglCntntMCategoryValue
- Parameters:
lglCntntMCategoryValue- Category Value
-
setLglCntntMChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LglCntntMChangedByUser
- Parameters:
lglCntntMChangedByUser- Changed By User
-
setLglCntntMChangedUTCDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: LglCntntMChangedUTCDateTime
- Parameters:
lglCntntMChangedUTCDateTime- Changed UTC Date Time
-
setLglCntntMCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LglCntntMCreatedByUser
- Parameters:
lglCntntMCreatedByUser- Created By
-
setLglCntntMCreatedUTCDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: LglCntntMCreatedUTCDateTime
- Parameters:
lglCntntMCreatedUTCDateTime- Created On
-
setLglCntntMParentCategory
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: LglCntntMParentCategory
- Parameters:
lglCntntMParentCategory- Parent Category ID
-
setLglCntntMRootCategory
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: LglCntntMRootCategory
- Parameters:
lglCntntMRootCategory- Root Category ID
-
setLglCntntMCatPurpose
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: LglCntntMCatPurpose
- Parameters:
lglCntntMCatPurpose- Category Purpose
-
setLglCntntMCatIsSystGenerated
Constraints: noneOriginal property name from the Odata EDM: LglCntntMCatIsSystGenerated
- Parameters:
lglCntntMCatIsSystGenerated- System generated category
-
setLglCntntMCatConstant
Constraints: Not nullable, Maximum length: 55Original property name from the Odata EDM: LglCntntMCatConstant
- Parameters:
lglCntntMCatConstant- Category Qualifier
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<LegalCategory>
-
getKey
- Overrides:
getKeyin classVdmObject<LegalCategory>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<LegalCategory>
-
fromMap
- Overrides:
fromMapin classVdmObject<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 fieldfieldName- 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
- Overrides:
getDestinationForFetchin classVdmEntity<LegalCategory>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<LegalCategory>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<LegalCategory>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<LegalCategory>
-
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
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
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
Optionresult state will beempty.- Returns:
- If the information for navigation property to_LegalCategoryText is already loaded, the result will
contain the LegalCategoryText entities. If not, an
Optionwith result stateemptyis returned.
-
setLegalCategoryText
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
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
-
getLglCntntMCategory
(Key Field) Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: LglCntntMCategory
- Returns:
- Category ID
-
getLglCntntMCatType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: LglCntntMCatType
- Returns:
- Category Type
-
getLglCntntMCatIsSelect
Constraints: noneOriginal property name from the Odata EDM: LglCntntMCatIsSelect
- Returns:
- Category Is Selectable
-
getLglCntntMCatIsMultiSelection
Constraints: noneOriginal property name from the Odata EDM: LglCntntMCatIsMultiSelection
- Returns:
- Multiple Selection of Categories
-
getLglCntntMCatLevel
Constraints: noneOriginal property name from the Odata EDM: LglCntntMCatLevel
- Returns:
- Category Level
-
getLglCntntMCatIsObsolete
Constraints: noneOriginal property name from the Odata EDM: LglCntntMCatIsObsolete
- Returns:
- Category Is Obsolete
-
getLglCntntMCatModel
Constraints: Not nullable, Maximum length: 120Original property name from the Odata EDM: LglCntntMCatModel
- Returns:
- Model for Dynamic Categories
-
getLglCntntMCategoryValue
Constraints: Not nullable, Maximum length: 15Original property name from the Odata EDM: LglCntntMCategoryValue
- Returns:
- Category Value
-
getLglCntntMChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LglCntntMChangedByUser
- Returns:
- Changed By User
-
getLglCntntMChangedUTCDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: LglCntntMChangedUTCDateTime
- Returns:
- Changed UTC Date Time
-
getLglCntntMCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LglCntntMCreatedByUser
- Returns:
- Created By
-
getLglCntntMCreatedUTCDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: LglCntntMCreatedUTCDateTime
- Returns:
- Created On
-
getLglCntntMParentCategory
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: LglCntntMParentCategory
- Returns:
- Parent Category ID
-
getLglCntntMRootCategory
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: LglCntntMRootCategory
- Returns:
- Root Category ID
-
getLglCntntMCatPurpose
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: LglCntntMCatPurpose
- Returns:
- Category Purpose
-
getLglCntntMCatIsSystGenerated
Constraints: noneOriginal property name from the Odata EDM: LglCntntMCatIsSystGenerated
- Returns:
- System generated category
-
getLglCntntMCatConstant
Constraints: Not nullable, Maximum length: 55Original property name from the Odata EDM: LglCntntMCatConstant
- Returns:
- Category Qualifier
-
toString
- Overrides:
toStringin classVdmObject<LegalCategory>
-
equals
- Overrides:
equalsin classVdmEntity<LegalCategory>
-
canEqual
- Overrides:
canEqualin classVdmEntity<LegalCategory>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<LegalCategory>
-