Class PurContrHdrCndnValdty
Original entity name from the Odata EDM: A_PurContrHdrCndnValdtyType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of PurContrHdrCndnValdty instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PurContrHdrCndnValdtySelectableSelector for all available fields of PurContrHdrCndnValdty.static final PurContrHdrCndnValdtyField<String>Use with available fluent helpers to apply the ConditionApplication field to query operations.static final PurContrHdrCndnValdtyField<Boolean>Use with available fluent helpers to apply the ConditionIsDeleted field to query operations.static final PurContrHdrCndnValdtyField<String>Use with available fluent helpers to apply the ConditionRecord field to query operations.static final PurContrHdrCndnValdtyField<String>Use with available fluent helpers to apply the ConditionType field to query operations.static final PurContrHdrCndnValdtyField<LocalDateTime>Use with available fluent helpers to apply the ConditionValidityEndDate field to query operations.static final PurContrHdrCndnValdtyField<LocalDateTime>Use with available fluent helpers to apply the ConditionValidityStartDate field to query operations.static final PurContrHdrCndnValdtyField<String>Use with available fluent helpers to apply the PurchaseContract field to query operations.static final PurContrHdrCndnValdtyLink<PurContrHdrCndnAmount>Use with available fluent helpers to apply the to_PurContrHdrCndnAmount navigation property to query operations.static final PurContrHdrCndnValdtyOneToOneLink<PurchaseContract>Use with available fluent helpers to apply the to_PurchaseContract navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionPurContrHdrCndnValdty(String purchaseContract, String conditionRecord, LocalDateTime conditionValidityEndDate, String conditionApplication, String conditionType, Boolean conditionIsDeleted, LocalDateTime conditionValidityStartDate, PurchaseContract toPurchaseContract, List<PurContrHdrCndnAmount> toPurContrHdrCndnAmount) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPurContrHdrCndnAmount(PurContrHdrCndnAmount... entity) Adds elements to the list of associated PurContrHdrCndnAmount entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the PurchaseContract entity (one to one) associated with this entity.Fetches the PurContrHdrCndnAmount entities (one to many) associated with this entity.static <T,DomainT>
PurContrHdrCndnValdtyField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> PurContrHdrCndnValdtyField<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()(Key Field) Constraints: Not nullable, Maximum length: 10io.vavr.control.Option<PurchaseContract>Retrieval of associated PurchaseContract entity (one to one).Retrieval of associated PurchaseContract entity (one to one).io.vavr.control.Option<List<PurContrHdrCndnAmount>>Retrieval of associated PurContrHdrCndnAmount entities (one to many).Retrieval of associated PurContrHdrCndnAmount 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: 0voidOverwrites the associated PurchaseContract entity for the loaded navigation property to_PurchaseContract.voidsetPurchaseContract(String purchaseContract) (Key Field) Constraints: Not nullable, Maximum length: 10voidOverwrites the list of associated PurContrHdrCndnAmount entities for the loaded navigation property to_PurContrHdrCndnAmount.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 PurContrHdrCndnValdty. -
PURCHASE_CONTRACT
Use with available fluent helpers to apply the PurchaseContract 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. -
CONDITION_VALIDITY_START_DATE
Use with available fluent helpers to apply the ConditionValidityStartDate field to query operations. -
TO_PURCHASE_CONTRACT
Use with available fluent helpers to apply the to_PurchaseContract navigation property to query operations. -
TO_PUR_CONTR_HDR_CNDN_AMOUNT
Use with available fluent helpers to apply the to_PurContrHdrCndnAmount navigation property to query operations.
-
-
Constructor Details
-
PurContrHdrCndnValdty
public PurContrHdrCndnValdty() -
PurContrHdrCndnValdty
public PurContrHdrCndnValdty(@Nullable String purchaseContract, @Nullable String conditionRecord, @Nullable LocalDateTime conditionValidityEndDate, @Nullable String conditionApplication, @Nullable String conditionType, @Nullable Boolean conditionIsDeleted, @Nullable LocalDateTime conditionValidityStartDate, @Nullable PurchaseContract toPurchaseContract, List<PurContrHdrCndnAmount> toPurContrHdrCndnAmount)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<PurContrHdrCndnValdty>
-
setPurchaseContract
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PurchaseContract
- Parameters:
purchaseContract- Purchasing Document Number
-
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
-
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<PurContrHdrCndnValdty>
-
getKey
- Overrides:
getKeyin classVdmObject<PurContrHdrCndnValdty>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<PurContrHdrCndnValdty>
-
fromMap
- Overrides:
fromMapin classVdmObject<PurContrHdrCndnValdty>
-
field
@Nonnull public static <T> PurContrHdrCndnValdtyField<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> PurContrHdrCndnValdtyField<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<PurContrHdrCndnValdty>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<PurContrHdrCndnValdty>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<PurContrHdrCndnValdty>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<PurContrHdrCndnValdty>
-
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 PurContrHdrCndnValdty 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 PurContrHdrCndnValdty 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.
-
fetchPurContrHdrCndnAmount
Fetches the PurContrHdrCndnAmount entities (one to many) associated with this entity. This corresponds to the OData navigation property to_PurContrHdrCndnAmount.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated PurContrHdrCndnAmount 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.
-
getPurContrHdrCndnAmountOrFetch
Retrieval of associated PurContrHdrCndnAmount entities (one to many). This corresponds to the OData navigation property to_PurContrHdrCndnAmount.If the navigation property to_PurContrHdrCndnAmount of a queried PurContrHdrCndnValdty 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 PurContrHdrCndnAmount 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.
-
getPurContrHdrCndnAmountIfPresent
@Nonnull public io.vavr.control.Option<List<PurContrHdrCndnAmount>> getPurContrHdrCndnAmountIfPresent()Retrieval of associated PurContrHdrCndnAmount entities (one to many). This corresponds to the OData navigation property to_PurContrHdrCndnAmount.If the navigation property for an entity PurContrHdrCndnValdty 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_PurContrHdrCndnAmount is already loaded, the result
will contain the PurContrHdrCndnAmount entities. If not, an
Optionwith result stateemptyis returned.
-
setPurContrHdrCndnAmount
Overwrites the list of associated PurContrHdrCndnAmount entities for the loaded navigation property to_PurContrHdrCndnAmount.If the navigation property to_PurContrHdrCndnAmount of a queried PurContrHdrCndnValdty 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 PurContrHdrCndnAmount entities.
-
addPurContrHdrCndnAmount
Adds elements to the list of associated PurContrHdrCndnAmount entities. This corresponds to the OData navigation property to_PurContrHdrCndnAmount.If the navigation property to_PurContrHdrCndnAmount of a queried PurContrHdrCndnValdty 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 PurContrHdrCndnAmount entities.
-
builder
-
getPurchaseContract
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PurchaseContract
- Returns:
- Purchasing Document Number
-
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
-
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<PurContrHdrCndnValdty>
-
equals
- Overrides:
equalsin classVdmEntity<PurContrHdrCndnValdty>
-
canEqual
- Overrides:
canEqualin classVdmEntity<PurContrHdrCndnValdty>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<PurContrHdrCndnValdty>
-