Class PurContrItmCndnValdty
Original entity name from the Odata EDM: A_PurContrItmCndnValdtyType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of PurContrItmCndnValdty instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PurContrItmCndnValdtySelectableSelector for all available fields of PurContrItmCndnValdty.static final PurContrItmCndnValdtyField<String>Use with available fluent helpers to apply the ConditionApplication field to query operations.static final PurContrItmCndnValdtyField<Boolean>Use with available fluent helpers to apply the ConditionIsDeleted field to query operations.static final PurContrItmCndnValdtyField<String>Use with available fluent helpers to apply the ConditionRecord field to query operations.static final PurContrItmCndnValdtyField<String>Use with available fluent helpers to apply the ConditionType field to query operations.static final PurContrItmCndnValdtyField<LocalDateTime>Use with available fluent helpers to apply the ConditionValidityEndDate field to query operations.static final PurContrItmCndnValdtyField<LocalDateTime>Use with available fluent helpers to apply the ConditionValidityStartDate field to query operations.static final PurContrItmCndnValdtyField<String>Use with available fluent helpers to apply the Plant field to query operations.static final PurContrItmCndnValdtyField<String>Use with available fluent helpers to apply the PurchaseContract field to query operations.static final PurContrItmCndnValdtyField<String>Use with available fluent helpers to apply the PurchaseContractItem field to query operations.static final PurContrItmCndnValdtyLink<PurContrItmCndnAmount>Use with available fluent helpers to apply the to_PurContrItmCndnAmount navigation property to query operations.static final PurContrItmCndnValdtyOneToOneLink<PurchaseContract>Use with available fluent helpers to apply the to_PurchaseContract navigation property to query operations.static final PurContrItmCndnValdtyOneToOneLink<PurchaseContractItem>Use with available fluent helpers to apply the to_PurchaseContractItem navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionPurContrItmCndnValdty(String purchaseContract, String purchaseContractItem, String conditionRecord, LocalDateTime conditionValidityEndDate, String conditionApplication, String conditionType, Boolean conditionIsDeleted, String plant, LocalDateTime conditionValidityStartDate, PurchaseContractItem toPurchaseContractItem, PurchaseContract toPurchaseContract, List<PurContrItmCndnAmount> toPurContrItmCndnAmount) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPurContrItmCndnAmount(PurContrItmCndnAmount... entity) Adds elements to the list of associated PurContrItmCndnAmount entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the PurchaseContract entity (one to one) associated with this entity.Fetches the PurchaseContractItem entity (one to one) associated with this entity.Fetches the PurContrItmCndnAmount entities (one to many) associated with this entity.static <T,DomainT>
PurContrItmCndnValdtyField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> PurContrItmCndnValdtyField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidConstraints: Not nullable, Maximum length: 2Constraints: none(Key Field) Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 4(Key Field) Constraints: Not nullable, Precision: 0Constraints: Not nullable, Precision: 0protected Stringprotected StringgetKey()getPlant()Constraints: Not nullable, Maximum length: 4(Key Field) Constraints: Not nullable, Maximum length: 10io.vavr.control.Option<PurchaseContract>Retrieval of associated PurchaseContract entity (one to one).(Key Field) Constraints: Not nullable, Maximum length: 5io.vavr.control.Option<PurchaseContractItem>Retrieval of associated PurchaseContractItem entity (one to one).Retrieval of associated PurchaseContractItem entity (one to one).Retrieval of associated PurchaseContract entity (one to one).io.vavr.control.Option<List<PurContrItmCndnAmount>>Retrieval of associated PurContrItmCndnAmount entities (one to many).Retrieval of associated PurContrItmCndnAmount entities (one to many).getType()inthashCode()voidsetConditionApplication(String conditionApplication) Constraints: Not nullable, Maximum length: 2voidsetConditionIsDeleted(Boolean conditionIsDeleted) Constraints: nonevoidsetConditionRecord(String conditionRecord) (Key Field) Constraints: Not nullable, Maximum length: 10voidsetConditionType(String conditionType) Constraints: Not nullable, Maximum length: 4voidsetConditionValidityEndDate(LocalDateTime conditionValidityEndDate) (Key Field) Constraints: Not nullable, Precision: 0voidsetConditionValidityStartDate(LocalDateTime conditionValidityStartDate) Constraints: Not nullable, Precision: 0voidConstraints: Not nullable, Maximum length: 4voidOverwrites the associated PurchaseContract entity for the loaded navigation property to_PurchaseContract.voidsetPurchaseContract(String purchaseContract) (Key Field) Constraints: Not nullable, Maximum length: 10voidOverwrites the associated PurchaseContractItem entity for the loaded navigation property to_PurchaseContractItem.voidsetPurchaseContractItem(String purchaseContractItem) (Key Field) Constraints: Not nullable, Maximum length: 5voidOverwrites the list of associated PurContrItmCndnAmount entities for the loaded navigation property to_PurContrItmCndnAmount.protected 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 PurContrItmCndnValdty. -
PURCHASE_CONTRACT
Use with available fluent helpers to apply the PurchaseContract field to query operations. -
PURCHASE_CONTRACT_ITEM
Use with available fluent helpers to apply the PurchaseContractItem field to query operations. -
CONDITION_RECORD
Use with available fluent helpers to apply the ConditionRecord field to query operations. -
CONDITION_VALIDITY_END_DATE
Use with available fluent helpers to apply the ConditionValidityEndDate field to query operations. -
CONDITION_APPLICATION
Use with available fluent helpers to apply the ConditionApplication field to query operations. -
CONDITION_TYPE
Use with available fluent helpers to apply the ConditionType field to query operations. -
CONDITION_IS_DELETED
Use with available fluent helpers to apply the ConditionIsDeleted field to query operations. -
PLANT
Use with available fluent helpers to apply the Plant field to query operations. -
CONDITION_VALIDITY_START_DATE
Use with available fluent helpers to apply the ConditionValidityStartDate field to query operations. -
TO_PURCHASE_CONTRACT_ITEM
public static final PurContrItmCndnValdtyOneToOneLink<PurchaseContractItem> TO_PURCHASE_CONTRACT_ITEMUse with available fluent helpers to apply the to_PurchaseContractItem navigation property to query operations. -
TO_PURCHASE_CONTRACT
Use with available fluent helpers to apply the to_PurchaseContract navigation property to query operations. -
TO_PUR_CONTR_ITM_CNDN_AMOUNT
Use with available fluent helpers to apply the to_PurContrItmCndnAmount navigation property to query operations.
-
-
Constructor Details
-
PurContrItmCndnValdty
public PurContrItmCndnValdty() -
PurContrItmCndnValdty
public PurContrItmCndnValdty(@Nullable String purchaseContract, @Nullable String purchaseContractItem, @Nullable String conditionRecord, @Nullable LocalDateTime conditionValidityEndDate, @Nullable String conditionApplication, @Nullable String conditionType, @Nullable Boolean conditionIsDeleted, @Nullable String plant, @Nullable LocalDateTime conditionValidityStartDate, @Nullable PurchaseContractItem toPurchaseContractItem, @Nullable PurchaseContract toPurchaseContract, List<PurContrItmCndnAmount> toPurContrItmCndnAmount)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<PurContrItmCndnValdty>
-
setPurchaseContract
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PurchaseContract
- Parameters:
purchaseContract- Purchasing Document Number
-
setPurchaseContractItem
(Key Field) Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: PurchaseContractItem
- Parameters:
purchaseContractItem- Item Number of Purchasing Document
-
setConditionRecord
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ConditionRecord
- Parameters:
conditionRecord- Number of Condition Record
-
setConditionValidityEndDate
(Key Field) Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ConditionValidityEndDate
- Parameters:
conditionValidityEndDate- Validity end date of the condition record
-
setConditionApplication
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: ConditionApplication
- Parameters:
conditionApplication- Application
-
setConditionType
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ConditionType
- Parameters:
conditionType- Condition Type
-
setConditionIsDeleted
Constraints: noneOriginal property name from the Odata EDM: ConditionIsDeleted
- Parameters:
conditionIsDeleted- Deletion Indicator for Condition Record
-
setPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Parameters:
plant- Plant
-
setConditionValidityStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ConditionValidityStartDate
- Parameters:
conditionValidityStartDate- Validity start date of the condition record
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<PurContrItmCndnValdty>
-
getKey
- Overrides:
getKeyin classVdmObject<PurContrItmCndnValdty>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<PurContrItmCndnValdty>
-
fromMap
- Overrides:
fromMapin classVdmObject<PurContrItmCndnValdty>
-
field
@Nonnull public static <T> PurContrItmCndnValdtyField<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> PurContrItmCndnValdtyField<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<PurContrItmCndnValdty>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<PurContrItmCndnValdty>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<PurContrItmCndnValdty>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<PurContrItmCndnValdty>
-
fetchPurchaseContractItem
Fetches the PurchaseContractItem entity (one to one) associated with this entity. This corresponds to the OData navigation property to_PurchaseContractItem.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated PurchaseContractItem entity, or
nullif an entity is not associated. - 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.
-
getPurchaseContractItemOrFetch
Retrieval of associated PurchaseContractItem entity (one to one). This corresponds to the OData navigation property to_PurchaseContractItem.If the navigation property to_PurchaseContractItem of a queried PurContrItmCndnValdty 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 PurchaseContractItem entity.
- 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.
-
getPurchaseContractItemIfPresent
Retrieval of associated PurchaseContractItem entity (one to one). This corresponds to the OData navigation property to_PurchaseContractItem.If the navigation property for an entity PurContrItmCndnValdty 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_PurchaseContractItem is already loaded, the result
will contain the PurchaseContractItem entity. If not, an
Optionwith result stateemptyis returned.
-
setPurchaseContractItem
Overwrites the associated PurchaseContractItem entity for the loaded navigation property to_PurchaseContractItem.- Parameters:
value- New PurchaseContractItem entity.
-
fetchPurchaseContract
Fetches the PurchaseContract entity (one to one) associated with this entity. This corresponds to the OData navigation property to_PurchaseContract.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated PurchaseContract entity, or
nullif an entity is not associated. - 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.
-
getPurchaseContractOrFetch
Retrieval of associated PurchaseContract entity (one to one). This corresponds to the OData navigation property to_PurchaseContract.If the navigation property to_PurchaseContract of a queried PurContrItmCndnValdty 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 PurchaseContract entity.
- 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.
-
getPurchaseContractIfPresent
Retrieval of associated PurchaseContract entity (one to one). This corresponds to the OData navigation property to_PurchaseContract.If the navigation property for an entity PurContrItmCndnValdty 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_PurchaseContract is already loaded, the result will
contain the PurchaseContract entity. If not, an
Optionwith result stateemptyis returned.
-
setPurchaseContract
Overwrites the associated PurchaseContract entity for the loaded navigation property to_PurchaseContract.- Parameters:
value- New PurchaseContract entity.
-
fetchPurContrItmCndnAmount
Fetches the PurContrItmCndnAmount entities (one to many) associated with this entity. This corresponds to the OData navigation property to_PurContrItmCndnAmount.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated PurContrItmCndnAmount 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.
-
getPurContrItmCndnAmountOrFetch
Retrieval of associated PurContrItmCndnAmount entities (one to many). This corresponds to the OData navigation property to_PurContrItmCndnAmount.If the navigation property to_PurContrItmCndnAmount of a queried PurContrItmCndnValdty 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 PurContrItmCndnAmount 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.
-
getPurContrItmCndnAmountIfPresent
@Nonnull public io.vavr.control.Option<List<PurContrItmCndnAmount>> getPurContrItmCndnAmountIfPresent()Retrieval of associated PurContrItmCndnAmount entities (one to many). This corresponds to the OData navigation property to_PurContrItmCndnAmount.If the navigation property for an entity PurContrItmCndnValdty 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_PurContrItmCndnAmount is already loaded, the result
will contain the PurContrItmCndnAmount entities. If not, an
Optionwith result stateemptyis returned.
-
setPurContrItmCndnAmount
Overwrites the list of associated PurContrItmCndnAmount entities for the loaded navigation property to_PurContrItmCndnAmount.If the navigation property to_PurContrItmCndnAmount of a queried PurContrItmCndnValdty 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 PurContrItmCndnAmount entities.
-
addPurContrItmCndnAmount
Adds elements to the list of associated PurContrItmCndnAmount entities. This corresponds to the OData navigation property to_PurContrItmCndnAmount.If the navigation property to_PurContrItmCndnAmount of a queried PurContrItmCndnValdty 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 PurContrItmCndnAmount entities.
-
builder
-
getPurchaseContract
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PurchaseContract
- Returns:
- Purchasing Document Number
-
getPurchaseContractItem
(Key Field) Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: PurchaseContractItem
- Returns:
- Item Number of Purchasing Document
-
getConditionRecord
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ConditionRecord
- Returns:
- Number of Condition Record
-
getConditionValidityEndDate
(Key Field) Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ConditionValidityEndDate
- Returns:
- Validity end date of the condition record
-
getConditionApplication
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: ConditionApplication
- Returns:
- Application
-
getConditionType
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ConditionType
- Returns:
- Condition Type
-
getConditionIsDeleted
Constraints: noneOriginal property name from the Odata EDM: ConditionIsDeleted
- Returns:
- Deletion Indicator for Condition Record
-
getPlant
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: Plant
- Returns:
- Plant
-
getConditionValidityStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ConditionValidityStartDate
- Returns:
- Validity start date of the condition record
-
toString
- Overrides:
toStringin classVdmObject<PurContrItmCndnValdty>
-
equals
- Overrides:
equalsin classVdmEntity<PurContrItmCndnValdty>
-
canEqual
- Overrides:
canEqualin classVdmEntity<PurContrItmCndnValdty>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<PurContrItmCndnValdty>
-