Class CntrlPurContrHdrCndnValdty
Original entity name from the Odata EDM: A_CntrlPurContrHdrCndnValdtyType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of CntrlPurContrHdrCndnValdty instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CntrlPurContrHdrCndnValdtySelectableSelector for all available fields of CntrlPurContrHdrCndnValdty.static final CntrlPurContrHdrCndnValdtyField<String>Use with available fluent helpers to apply the CentralPurchaseContract field to query operations.static final CntrlPurContrHdrCndnValdtyField<String>Use with available fluent helpers to apply the ConditionApplication field to query operations.static final CntrlPurContrHdrCndnValdtyField<Boolean>Use with available fluent helpers to apply the ConditionIsDeleted field to query operations.static final CntrlPurContrHdrCndnValdtyField<String>Use with available fluent helpers to apply the ConditionRecord field to query operations.static final CntrlPurContrHdrCndnValdtyField<String>Use with available fluent helpers to apply the ConditionType field to query operations.static final CntrlPurContrHdrCndnValdtyField<LocalDateTime>Use with available fluent helpers to apply the ConditionValidityEndDate field to query operations.static final CntrlPurContrHdrCndnValdtyField<LocalDateTime>Use with available fluent helpers to apply the ConditionValidityStartDate field to query operations.Use with available fluent helpers to apply the to_CentralPurchaseContract navigation property to query operations.static final CntrlPurContrHdrCndnValdtyLink<CntrlPurContrHdrCndnAmount>Use with available fluent helpers to apply the to_CntrlPurContrHdrCndnAmount navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionCntrlPurContrHdrCndnValdty(String centralPurchaseContract, String conditionRecord, LocalDateTime conditionValidityEndDate, String conditionApplication, String conditionType, LocalDateTime conditionValidityStartDate, Boolean conditionIsDeleted, CentralPurchaseContract toCentralPurchaseContract, List<CntrlPurContrHdrCndnAmount> toCntrlPurContrHdrCndnAmount) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated CntrlPurContrHdrCndnAmount entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the CentralPurchaseContract entity (one to one) associated with this entity.Fetches the CntrlPurContrHdrCndnAmount entities (one to many) associated with this entity.static <T,DomainT>
CntrlPurContrHdrCndnValdtyField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> CntrlPurContrHdrCndnValdtyField<T>Use with available fluent helpers to apply an extension field to query operations.protected void(Key Field) Constraints: Not nullable, Maximum length: 10io.vavr.control.Option<CentralPurchaseContract>Retrieval of associated CentralPurchaseContract entity (one to one).Retrieval of associated CentralPurchaseContract entity (one to one).io.vavr.control.Option<List<CntrlPurContrHdrCndnAmount>>Retrieval of associated CntrlPurContrHdrCndnAmount entities (one to many).Retrieval of associated CntrlPurContrHdrCndnAmount entities (one to many).Constraints: 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()getType()inthashCode()voidOverwrites the associated CentralPurchaseContract entity for the loaded navigation property to_CentralPurchaseContract.voidsetCentralPurchaseContract(String centralPurchaseContract) (Key Field) Constraints: Not nullable, Maximum length: 10voidOverwrites the list of associated CntrlPurContrHdrCndnAmount entities for the loaded navigation property to_CntrlPurContrHdrCndnAmount.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: 0protected 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 CntrlPurContrHdrCndnValdty. -
CENTRAL_PURCHASE_CONTRACT
Use with available fluent helpers to apply the CentralPurchaseContract 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_VALIDITY_START_DATE
Use with available fluent helpers to apply the ConditionValidityStartDate field to query operations. -
CONDITION_IS_DELETED
Use with available fluent helpers to apply the ConditionIsDeleted field to query operations. -
TO_CENTRAL_PURCHASE_CONTRACT
public static final CntrlPurContrHdrCndnValdtyOneToOneLink<CentralPurchaseContract> TO_CENTRAL_PURCHASE_CONTRACTUse with available fluent helpers to apply the to_CentralPurchaseContract navigation property to query operations. -
TO_CNTRL_PUR_CONTR_HDR_CNDN_AMOUNT
public static final CntrlPurContrHdrCndnValdtyLink<CntrlPurContrHdrCndnAmount> TO_CNTRL_PUR_CONTR_HDR_CNDN_AMOUNTUse with available fluent helpers to apply the to_CntrlPurContrHdrCndnAmount navigation property to query operations.
-
-
Constructor Details
-
CntrlPurContrHdrCndnValdty
public CntrlPurContrHdrCndnValdty() -
CntrlPurContrHdrCndnValdty
public CntrlPurContrHdrCndnValdty(@Nullable String centralPurchaseContract, @Nullable String conditionRecord, @Nullable LocalDateTime conditionValidityEndDate, @Nullable String conditionApplication, @Nullable String conditionType, @Nullable LocalDateTime conditionValidityStartDate, @Nullable Boolean conditionIsDeleted, @Nullable CentralPurchaseContract toCentralPurchaseContract, List<CntrlPurContrHdrCndnAmount> toCntrlPurContrHdrCndnAmount)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<CntrlPurContrHdrCndnValdty>
-
setCentralPurchaseContract
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: CentralPurchaseContract
- Parameters:
centralPurchaseContract- 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
-
setConditionValidityStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ConditionValidityStartDate
- Parameters:
conditionValidityStartDate- Validity start date of the condition record
-
setConditionIsDeleted
Constraints: noneOriginal property name from the Odata EDM: ConditionIsDeleted
- Parameters:
conditionIsDeleted- Deletion Indicator for Condition Record
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<CntrlPurContrHdrCndnValdty>
-
getKey
- Overrides:
getKeyin classVdmObject<CntrlPurContrHdrCndnValdty>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<CntrlPurContrHdrCndnValdty>
-
fromMap
- Overrides:
fromMapin classVdmObject<CntrlPurContrHdrCndnValdty>
-
field
@Nonnull public static <T> CntrlPurContrHdrCndnValdtyField<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> CntrlPurContrHdrCndnValdtyField<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<CntrlPurContrHdrCndnValdty>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<CntrlPurContrHdrCndnValdty>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<CntrlPurContrHdrCndnValdty>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<CntrlPurContrHdrCndnValdty>
-
fetchCentralPurchaseContract
Fetches the CentralPurchaseContract entity (one to one) associated with this entity. This corresponds to the OData navigation property to_CentralPurchaseContract.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated CentralPurchaseContract 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.
-
getCentralPurchaseContractOrFetch
Retrieval of associated CentralPurchaseContract entity (one to one). This corresponds to the OData navigation property to_CentralPurchaseContract.If the navigation property to_CentralPurchaseContract of a queried CntrlPurContrHdrCndnValdty 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 CentralPurchaseContract 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.
-
getCentralPurchaseContractIfPresent
@Nonnull public io.vavr.control.Option<CentralPurchaseContract> getCentralPurchaseContractIfPresent()Retrieval of associated CentralPurchaseContract entity (one to one). This corresponds to the OData navigation property to_CentralPurchaseContract.If the navigation property for an entity CntrlPurContrHdrCndnValdty 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_CentralPurchaseContract is already loaded, the
result will contain the CentralPurchaseContract entity. If not, an
Optionwith result stateemptyis returned.
-
setCentralPurchaseContract
Overwrites the associated CentralPurchaseContract entity for the loaded navigation property to_CentralPurchaseContract.- Parameters:
value- New CentralPurchaseContract entity.
-
fetchCntrlPurContrHdrCndnAmount
Fetches the CntrlPurContrHdrCndnAmount entities (one to many) associated with this entity. This corresponds to the OData navigation property to_CntrlPurContrHdrCndnAmount.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated CntrlPurContrHdrCndnAmount 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.
-
getCntrlPurContrHdrCndnAmountOrFetch
Retrieval of associated CntrlPurContrHdrCndnAmount entities (one to many). This corresponds to the OData navigation property to_CntrlPurContrHdrCndnAmount.If the navigation property to_CntrlPurContrHdrCndnAmount of a queried CntrlPurContrHdrCndnValdty 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 CntrlPurContrHdrCndnAmount 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.
-
getCntrlPurContrHdrCndnAmountIfPresent
@Nonnull public io.vavr.control.Option<List<CntrlPurContrHdrCndnAmount>> getCntrlPurContrHdrCndnAmountIfPresent()Retrieval of associated CntrlPurContrHdrCndnAmount entities (one to many). This corresponds to the OData navigation property to_CntrlPurContrHdrCndnAmount.If the navigation property for an entity CntrlPurContrHdrCndnValdty 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_CntrlPurContrHdrCndnAmount is already loaded, the
result will contain the CntrlPurContrHdrCndnAmount entities. If not, an
Optionwith result stateemptyis returned.
-
setCntrlPurContrHdrCndnAmount
Overwrites the list of associated CntrlPurContrHdrCndnAmount entities for the loaded navigation property to_CntrlPurContrHdrCndnAmount.If the navigation property to_CntrlPurContrHdrCndnAmount of a queried CntrlPurContrHdrCndnValdty 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 CntrlPurContrHdrCndnAmount entities.
-
addCntrlPurContrHdrCndnAmount
Adds elements to the list of associated CntrlPurContrHdrCndnAmount entities. This corresponds to the OData navigation property to_CntrlPurContrHdrCndnAmount.If the navigation property to_CntrlPurContrHdrCndnAmount of a queried CntrlPurContrHdrCndnValdty 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 CntrlPurContrHdrCndnAmount entities.
-
builder
-
getCentralPurchaseContract
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: CentralPurchaseContract
- 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
-
getConditionValidityStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: ConditionValidityStartDate
- Returns:
- Validity start date of the condition record
-
getConditionIsDeleted
Constraints: noneOriginal property name from the Odata EDM: ConditionIsDeleted
- Returns:
- Deletion Indicator for Condition Record
-
toString
- Overrides:
toStringin classVdmObject<CntrlPurContrHdrCndnValdty>
-
equals
- Overrides:
equalsin classVdmEntity<CntrlPurContrHdrCndnValdty>
-
canEqual
- Overrides:
canEqualin classVdmEntity<CntrlPurContrHdrCndnValdty>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<CntrlPurContrHdrCndnValdty>
-