Class PurchaseReqn
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: PurchaseReqnType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of PurchaseReqn instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<PurchaseReqn,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<PurchaseReqn>Selector for all available fields of PurchaseReqn.static final SimpleProperty.String<PurchaseReqn>static final SimpleProperty.Boolean<PurchaseReqn>static final SimpleProperty.String<PurchaseReqn>static final SimpleProperty.String<PurchaseReqn>static final SimpleProperty.Boolean<PurchaseReqn>static final NavigationProperty.Collection<PurchaseReqn,PurchaseReqnItem> Use with available request builders to apply the _PurchaseRequisitionItem navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionPurchaseReqn(String purchaseRequisition, String purchaseRequisitionType, String purReqnDescription, Boolean sourceDetermination, Boolean purReqnDoOnlyValidation, Collection<SAP__Message> _Messages, List<PurchaseReqnItem> to_PurchaseRequisitionItem) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPurchaseRequisitionItem(PurchaseReqnItem... entity) Adds elements to the list of associated PurchaseReqnItem entities.builder()protected booleanAction that can be applied to any entity object of this class.Action that can be applied to any entity object of this class.booleanprotected voidConstraints: Not nullableprotected Stringprotected Stringprotected ODataEntityKeygetKey()(Key Field) Constraints: Not nullable, Maximum length: 10io.vavr.control.Option<List<PurchaseReqnItem>>Retrieval of associated PurchaseReqnItem entities (one to many).Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 40Constraints: Not nullableConstraints: Not nullablegetType()inthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetPurchaseRequisition(String purchaseRequisition) (Key Field) Constraints: Not nullable, Maximum length: 10voidOverwrites the list of associated PurchaseReqnItem entities for the loaded navigation property _PurchaseRequisitionItem.voidsetPurchaseRequisitionType(String purchaseRequisitionType) Constraints: Not nullable, Maximum length: 4voidsetPurReqnDescription(String purReqnDescription) Constraints: Not nullable, Maximum length: 40voidsetPurReqnDoOnlyValidation(Boolean purReqnDoOnlyValidation) Constraints: Not nullablevoidsetSourceDetermination(Boolean sourceDetermination) Constraints: Not nullabletoString()validate()Action that can be applied to any entity object of this class.Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
getAnnotationProperties, 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 PurchaseReqn. -
PURCHASE_REQUISITION
-
PURCHASE_REQUISITION_TYPE
-
PUR_REQN_DESCRIPTION
-
SOURCE_DETERMINATION
-
PUR_REQN_DO_ONLY_VALIDATION
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__PURCHASE_REQUISITION_ITEM
public static final NavigationProperty.Collection<PurchaseReqn,PurchaseReqnItem> TO__PURCHASE_REQUISITION_ITEMUse with available request builders to apply the _PurchaseRequisitionItem navigation property to query operations.
-
-
Constructor Details
-
PurchaseReqn
public PurchaseReqn() -
PurchaseReqn
public PurchaseReqn(@Nullable String purchaseRequisition, @Nullable String purchaseRequisitionType, @Nullable String purReqnDescription, @Nullable Boolean sourceDetermination, @Nullable Boolean purReqnDoOnlyValidation, @Nullable Collection<SAP__Message> _Messages, List<PurchaseReqnItem> to_PurchaseRequisitionItem)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<PurchaseReqn>
-
setPurchaseRequisition
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PurchaseRequisition
- Parameters:
purchaseRequisition- Purchase Requisition Number
-
setPurchaseRequisitionType
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: PurchaseRequisitionType
- Parameters:
purchaseRequisitionType- Purchase Requisition Document Type
-
setPurReqnDescription
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: PurReqnDescription
- Parameters:
purReqnDescription- Purchase Requisition Description
-
setSourceDetermination
Constraints: Not nullableOriginal property name from the Odata EDM: SourceDetermination
- Parameters:
sourceDetermination- Checkbox
-
setPurReqnDoOnlyValidation
Constraints: Not nullableOriginal property name from the Odata EDM: PurReqnDoOnlyValidation
- Parameters:
purReqnDoOnlyValidation- Boolean Variable (X = True, - = False, Space = Unknown)
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<PurchaseReqn>
-
getKey
- Overrides:
getKeyin classVdmObject<PurchaseReqn>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<PurchaseReqn>
-
fromMap
- Overrides:
fromMapin classVdmObject<PurchaseReqn>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<PurchaseReqn>
-
getPurchaseRequisitionItemIfPresent
@Nonnull public io.vavr.control.Option<List<PurchaseReqnItem>> getPurchaseRequisitionItemIfPresent()Retrieval of associated PurchaseReqnItem entities (one to many). This corresponds to the OData navigation property _PurchaseRequisitionItem.If the navigation property for an entity PurchaseReqn 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 _PurchaseRequisitionItem is already loaded, the result
will contain the PurchaseReqnItem entities. If not, an
Optionwith result stateemptyis returned.
-
setPurchaseRequisitionItem
Overwrites the list of associated PurchaseReqnItem entities for the loaded navigation property _PurchaseRequisitionItem.If the navigation property _PurchaseRequisitionItem of a queried PurchaseReqn 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 PurchaseReqnItem entities.
-
addPurchaseRequisitionItem
Adds elements to the list of associated PurchaseReqnItem entities. This corresponds to the OData navigation property _PurchaseRequisitionItem.If the navigation property _PurchaseRequisitionItem of a queried PurchaseReqn 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 PurchaseReqnItem entities.
-
validate
Action that can be applied to any entity object of this class.- Returns:
- Action object prepared with the given parameters to be applied to any entity object of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
enablePurReqForPurchasing
Action that can be applied to any entity object of this class.- Returns:
- Action object prepared with the given parameters to be applied to any entity object of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
discardPurReqFromPurchasing
Action that can be applied to any entity object of this class.- Returns:
- Action object prepared with the given parameters to be applied to any entity object of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
builder
-
getPurchaseRequisition
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PurchaseRequisition
- Returns:
- Purchase Requisition Number
-
getPurchaseRequisitionType
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: PurchaseRequisitionType
- Returns:
- Purchase Requisition Document Type
-
getPurReqnDescription
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: PurReqnDescription
- Returns:
- Purchase Requisition Description
-
getSourceDetermination
Constraints: Not nullableOriginal property name from the Odata EDM: SourceDetermination
- Returns:
- Checkbox
-
getPurReqnDoOnlyValidation
Constraints: Not nullableOriginal property name from the Odata EDM: PurReqnDoOnlyValidation
- Returns:
- Boolean Variable (X = True, - = False, Space = Unknown)
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<PurchaseReqn>
-
equals
- Overrides:
equalsin classVdmEntity<PurchaseReqn>
-
canEqual
- Overrides:
canEqualin classVdmEntity<PurchaseReqn>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<PurchaseReqn>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<PurchaseReqn>
-