Class PurchasingQuotaArrangement
Original entity name from the Odata EDM: A_PurchasingQuotaArrangementType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of PurchasingQuotaArrangement instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PurchasingQuotaArrangementSelectableSelector for all available fields of PurchasingQuotaArrangement.static final PurchasingQuotaArrangementField<String>Use with available fluent helpers to apply the CreatedByUser field to query operations.static final PurchasingQuotaArrangementField<LocalDateTime>Use with available fluent helpers to apply the CreationDate field to query operations.static final PurchasingQuotaArrangementField<ZonedDateTime>Use with available fluent helpers to apply the LastChangeDateTime field to query operations.static final PurchasingQuotaArrangementField<String>Use with available fluent helpers to apply the Material field to query operations.static final PurchasingQuotaArrangementField<String>Use with available fluent helpers to apply the MaterialBaseUnit field to query operations.static final PurchasingQuotaArrangementField<BigDecimal>Use with available fluent helpers to apply the MinQtyForSpltQuota field to query operations.static final PurchasingQuotaArrangementField<String>Use with available fluent helpers to apply the Plant field to query operations.static final PurchasingQuotaArrangementField<String>Use with available fluent helpers to apply the QuotaArrangement field to query operations.static final PurchasingQuotaArrangementLink<PurgQuotaArrangementItem>Use with available fluent helpers to apply the to_PurgQuotaArrangementItem navigation property to query operations.static final PurchasingQuotaArrangementField<String>Use with available fluent helpers to apply the UserDescription field to query operations.static final PurchasingQuotaArrangementField<LocalDateTime>Use with available fluent helpers to apply the ValidityEndDate field to query operations.static final PurchasingQuotaArrangementField<LocalDateTime>Use with available fluent helpers to apply the ValidityStartDate field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionPurchasingQuotaArrangement(String quotaArrangement, String material, String plant, LocalDateTime validityEndDate, LocalDateTime validityStartDate, LocalDateTime creationDate, String createdByUser, BigDecimal minQtyForSpltQuota, ZonedDateTime lastChangeDateTime, String userDescription, String materialBaseUnit, List<PurgQuotaArrangementItem> toPurgQuotaArrangementItem) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated PurgQuotaArrangementItem entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the PurgQuotaArrangementItem entities (one to many) associated with this entity.static <T,DomainT>
PurchasingQuotaArrangementField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> PurchasingQuotaArrangementField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidConstraints: Not nullable, Maximum length: 12Constraints: Not nullable, Precision: 0protected Stringprotected StringgetKey()Constraints: Not nullable, Precision: 7Constraints: Not nullable, Maximum length: 40Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Precision: 15, Scale: 3getPlant()Constraints: Not nullable, Maximum length: 4io.vavr.control.Option<List<PurgQuotaArrangementItem>>Retrieval of associated PurgQuotaArrangementItem entities (one to many).Retrieval of associated PurgQuotaArrangementItem entities (one to many).(Key Field) Constraints: Not nullable, Maximum length: 10getType()Constraints: Not nullable, Maximum length: 80Constraints: Not nullable, Precision: 0Constraints: Not nullable, Precision: 0inthashCode()voidsetCreatedByUser(String createdByUser) Constraints: Not nullable, Maximum length: 12voidsetCreationDate(LocalDateTime creationDate) Constraints: Not nullable, Precision: 0voidsetLastChangeDateTime(ZonedDateTime lastChangeDateTime) Constraints: Not nullable, Precision: 7voidsetMaterial(String material) Constraints: Not nullable, Maximum length: 40voidsetMaterialBaseUnit(String materialBaseUnit) Constraints: Not nullable, Maximum length: 3voidsetMinQtyForSpltQuota(BigDecimal minQtyForSpltQuota) Constraints: Not nullable, Precision: 15, Scale: 3voidConstraints: Not nullable, Maximum length: 4voidOverwrites the list of associated PurgQuotaArrangementItem entities for the loaded navigation property to_PurgQuotaArrangementItem.voidsetQuotaArrangement(String quotaArrangement) (Key Field) Constraints: Not nullable, Maximum length: 10protected voidsetServicePathForFetch(String servicePathForFetch) voidsetUserDescription(String userDescription) Constraints: Not nullable, Maximum length: 80voidsetValidityEndDate(LocalDateTime validityEndDate) Constraints: Not nullable, Precision: 0voidsetValidityStartDate(LocalDateTime validityStartDate) Constraints: Not nullable, Precision: 0toString()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 PurchasingQuotaArrangement. -
QUOTA_ARRANGEMENT
Use with available fluent helpers to apply the QuotaArrangement field to query operations. -
MATERIAL
Use with available fluent helpers to apply the Material field to query operations. -
PLANT
Use with available fluent helpers to apply the Plant field to query operations. -
VALIDITY_END_DATE
Use with available fluent helpers to apply the ValidityEndDate field to query operations. -
VALIDITY_START_DATE
Use with available fluent helpers to apply the ValidityStartDate field to query operations. -
CREATION_DATE
Use with available fluent helpers to apply the CreationDate field to query operations. -
CREATED_BY_USER
Use with available fluent helpers to apply the CreatedByUser field to query operations. -
MIN_QTY_FOR_SPLT_QUOTA
Use with available fluent helpers to apply the MinQtyForSpltQuota field to query operations. -
LAST_CHANGE_DATE_TIME
Use with available fluent helpers to apply the LastChangeDateTime field to query operations. -
USER_DESCRIPTION
Use with available fluent helpers to apply the UserDescription field to query operations. -
MATERIAL_BASE_UNIT
Use with available fluent helpers to apply the MaterialBaseUnit field to query operations. -
TO_PURG_QUOTA_ARRANGEMENT_ITEM
public static final PurchasingQuotaArrangementLink<PurgQuotaArrangementItem> TO_PURG_QUOTA_ARRANGEMENT_ITEMUse with available fluent helpers to apply the to_PurgQuotaArrangementItem navigation property to query operations.
-
-
Constructor Details
-
PurchasingQuotaArrangement
public PurchasingQuotaArrangement() -
PurchasingQuotaArrangement
public PurchasingQuotaArrangement(@Nullable String quotaArrangement, @Nullable String material, @Nullable String plant, @Nullable LocalDateTime validityEndDate, @Nullable LocalDateTime validityStartDate, @Nullable LocalDateTime creationDate, @Nullable String createdByUser, @Nullable BigDecimal minQtyForSpltQuota, @Nullable ZonedDateTime lastChangeDateTime, @Nullable String userDescription, @Nullable String materialBaseUnit, List<PurgQuotaArrangementItem> toPurgQuotaArrangementItem)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<PurchasingQuotaArrangement>
-
setQuotaArrangement
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: QuotaArrangement
- Parameters:
quotaArrangement- Number of quota arrangement
-
setMaterial
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: Material
- Parameters:
material- Material Number
-
setPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Parameters:
plant- Plant
-
setValidityEndDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ValidityEndDate
- Parameters:
validityEndDate- Quota arrangement period valid until
-
setValidityStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ValidityStartDate
- Parameters:
validityStartDate- Quota arrangement period valid from
-
setCreationDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: CreationDate
- Parameters:
creationDate- Record Created On
-
setCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Parameters:
createdByUser- Name of Person Responsible for Creating the Object
-
setMinQtyForSpltQuota
Constraints: Not nullable, Precision: 15, Scale: 3Original property name from the Odata EDM: MinQtyForSpltQuota
- Parameters:
minQtyForSpltQuota- Minimum Quantity for Splitting Quota
-
setLastChangeDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Parameters:
lastChangeDateTime- UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
-
setUserDescription
Constraints: Not nullable, Maximum length: 80Original property name from the Odata EDM: UserDescription
- Parameters:
userDescription- Description of the Technical User Account
-
setMaterialBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: MaterialBaseUnit
- Parameters:
materialBaseUnit- Base Unit of Measure
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<PurchasingQuotaArrangement>
-
getKey
- Overrides:
getKeyin classVdmObject<PurchasingQuotaArrangement>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<PurchasingQuotaArrangement>
-
fromMap
- Overrides:
fromMapin classVdmObject<PurchasingQuotaArrangement>
-
field
@Nonnull public static <T> PurchasingQuotaArrangementField<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> PurchasingQuotaArrangementField<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<PurchasingQuotaArrangement>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<PurchasingQuotaArrangement>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<PurchasingQuotaArrangement>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<PurchasingQuotaArrangement>
-
fetchPurgQuotaArrangementItem
Fetches the PurgQuotaArrangementItem entities (one to many) associated with this entity. This corresponds to the OData navigation property to_PurgQuotaArrangementItem.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated PurgQuotaArrangementItem 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.
-
getPurgQuotaArrangementItemOrFetch
Retrieval of associated PurgQuotaArrangementItem entities (one to many). This corresponds to the OData navigation property to_PurgQuotaArrangementItem.If the navigation property to_PurgQuotaArrangementItem of a queried PurchasingQuotaArrangement 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 PurgQuotaArrangementItem 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.
-
getPurgQuotaArrangementItemIfPresent
@Nonnull public io.vavr.control.Option<List<PurgQuotaArrangementItem>> getPurgQuotaArrangementItemIfPresent()Retrieval of associated PurgQuotaArrangementItem entities (one to many). This corresponds to the OData navigation property to_PurgQuotaArrangementItem.If the navigation property for an entity PurchasingQuotaArrangement 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_PurgQuotaArrangementItem is already loaded, the
result will contain the PurgQuotaArrangementItem entities. If not, an
Optionwith result stateemptyis returned.
-
setPurgQuotaArrangementItem
Overwrites the list of associated PurgQuotaArrangementItem entities for the loaded navigation property to_PurgQuotaArrangementItem.If the navigation property to_PurgQuotaArrangementItem of a queried PurchasingQuotaArrangement 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 PurgQuotaArrangementItem entities.
-
addPurgQuotaArrangementItem
Adds elements to the list of associated PurgQuotaArrangementItem entities. This corresponds to the OData navigation property to_PurgQuotaArrangementItem.If the navigation property to_PurgQuotaArrangementItem of a queried PurchasingQuotaArrangement 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 PurgQuotaArrangementItem entities.
-
builder
-
getQuotaArrangement
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: QuotaArrangement
- Returns:
- Number of quota arrangement
-
getMaterial
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: Material
- Returns:
- Material Number
-
getPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Returns:
- Plant
-
getValidityEndDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ValidityEndDate
- Returns:
- Quota arrangement period valid until
-
getValidityStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ValidityStartDate
- Returns:
- Quota arrangement period valid from
-
getCreationDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: CreationDate
- Returns:
- Record Created On
-
getCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Returns:
- Name of Person Responsible for Creating the Object
-
getMinQtyForSpltQuota
Constraints: Not nullable, Precision: 15, Scale: 3Original property name from the Odata EDM: MinQtyForSpltQuota
- Returns:
- Minimum Quantity for Splitting Quota
-
getLastChangeDateTime
Constraints: Not nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Returns:
- UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
-
getUserDescription
Constraints: Not nullable, Maximum length: 80Original property name from the Odata EDM: UserDescription
- Returns:
- Description of the Technical User Account
-
getMaterialBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: MaterialBaseUnit
- Returns:
- Base Unit of Measure
-
toString
- Overrides:
toStringin classVdmObject<PurchasingQuotaArrangement>
-
equals
- Overrides:
equalsin classVdmEntity<PurchasingQuotaArrangement>
-
canEqual
- Overrides:
canEqualin classVdmEntity<PurchasingQuotaArrangement>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<PurchasingQuotaArrangement>
-