Class ProcurementProject
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ProcurementProject_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProcurementProject instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<ProcurementProject,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<ProcurementProject>Selector for all available fields of ProcurementProject.static final SimpleProperty.String<ProcurementProject>static final SimpleProperty.String<ProcurementProject>static final SimpleProperty.DateTime<ProcurementProject>static final SimpleProperty.String<ProcurementProject>static final SimpleProperty.String<ProcurementProject>static final SimpleProperty.DateTime<ProcurementProject>static final SimpleProperty.String<ProcurementProject>static final SimpleProperty.Guid<ProcurementProject>static final SimpleProperty.String<ProcurementProject>static final SimpleProperty.String<ProcurementProject>static final SimpleProperty.String<ProcurementProject>static final SimpleProperty.Guid<ProcurementProject>static final SimpleProperty.String<ProcurementProject>static final SimpleProperty.String<ProcurementProject>Use with available request builders to apply the _ProcurementProjectPlant 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
ConstructorsConstructorDescriptionProcurementProject(UUID procurementProjectUUID, String procurementProject, String procurementProjectName, String externalProjectReference, String companyCode, String lastChangedByUser, String createdByUser, OffsetDateTime lastChangeDateTime, OffsetDateTime creationDateTime, String procurementProjectActvtnSts, String sourcingOrigin, String sourcingScenario, UUID procmtPlanningSubprojectUUID, String isEndOfPurposeBlocked, Collection<SAP__Message> _Messages, List<ProcurementProjectPlant> to_ProcurementProjectPlant) -
Method Summary
Modifier and TypeMethodDescriptionAction that can be applied to any entity object of this class.voidAdds elements to the list of associated ProcurementProjectPlant entities.builder()protected booleanAction that can be applied to any entity object of this class.booleanprotected voidConstraints: Not nullableConstraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 12Constraints: Nullable, Precision: 7protected Stringprotected StringConstraints: Not nullable, Maximum length: 40Constraints: Not nullable, Maximum length: 1protected ODataEntityKeygetKey()Constraints: Nullable, Precision: 7Constraints: Not nullable, Maximum length: 12Constraints: NullableConstraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 2Constraints: Not nullable, Maximum length: 60io.vavr.control.Option<List<ProcurementProjectPlant>>Retrieval of associated ProcurementProjectPlant entities (one to many).(Key Field) Constraints: Not nullableConstraints: Not nullable, Maximum length: 2Constraints: Not nullable, Maximum length: 2getType()inthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetCompanyCode(String companyCode) Constraints: Not nullable, Maximum length: 4voidsetCreatedByUser(String createdByUser) Constraints: Not nullable, Maximum length: 12voidsetCreationDateTime(OffsetDateTime creationDateTime) Constraints: Nullable, Precision: 7voidsetExternalProjectReference(String externalProjectReference) Constraints: Not nullable, Maximum length: 40voidsetIsEndOfPurposeBlocked(String isEndOfPurposeBlocked) Constraints: Not nullable, Maximum length: 1voidsetLastChangeDateTime(OffsetDateTime lastChangeDateTime) Constraints: Nullable, Precision: 7voidsetLastChangedByUser(String lastChangedByUser) Constraints: Not nullable, Maximum length: 12voidsetProcmtPlanningSubprojectUUID(UUID procmtPlanningSubprojectUUID) Constraints: NullablevoidsetProcurementProject(String procurementProject) Constraints: Not nullable, Maximum length: 10voidsetProcurementProjectActvtnSts(String procurementProjectActvtnSts) Constraints: Not nullable, Maximum length: 2voidsetProcurementProjectName(String procurementProjectName) Constraints: Not nullable, Maximum length: 60voidOverwrites the list of associated ProcurementProjectPlant entities for the loaded navigation property _ProcurementProjectPlant.voidsetProcurementProjectUUID(UUID procurementProjectUUID) (Key Field) Constraints: Not nullablevoidsetSourcingOrigin(String sourcingOrigin) Constraints: Not nullable, Maximum length: 2voidsetSourcingScenario(String sourcingScenario) Constraints: Not nullable, Maximum length: 2toString()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 ProcurementProject. -
PROCUREMENT_PROJECT_UUID
-
PROCUREMENT_PROJECT
-
PROCUREMENT_PROJECT_NAME
-
EXTERNAL_PROJECT_REFERENCE
-
COMPANY_CODE
-
LAST_CHANGED_BY_USER
-
CREATED_BY_USER
-
LAST_CHANGE_DATE_TIME
-
CREATION_DATE_TIME
-
PROCUREMENT_PROJECT_ACTVTN_STS
-
SOURCING_ORIGIN
-
SOURCING_SCENARIO
-
PROCMT_PLANNING_SUBPROJECT_UUID
-
IS_END_OF_PURPOSE_BLOCKED
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__PROCUREMENT_PROJECT_PLANT
public static final NavigationProperty.Collection<ProcurementProject,ProcurementProjectPlant> TO__PROCUREMENT_PROJECT_PLANTUse with available request builders to apply the _ProcurementProjectPlant navigation property to query operations.
-
-
Constructor Details
-
ProcurementProject
public ProcurementProject() -
ProcurementProject
public ProcurementProject(@Nullable UUID procurementProjectUUID, @Nullable String procurementProject, @Nullable String procurementProjectName, @Nullable String externalProjectReference, @Nullable String companyCode, @Nullable String lastChangedByUser, @Nullable String createdByUser, @Nullable OffsetDateTime lastChangeDateTime, @Nullable OffsetDateTime creationDateTime, @Nullable String procurementProjectActvtnSts, @Nullable String sourcingOrigin, @Nullable String sourcingScenario, @Nullable UUID procmtPlanningSubprojectUUID, @Nullable String isEndOfPurposeBlocked, @Nullable Collection<SAP__Message> _Messages, List<ProcurementProjectPlant> to_ProcurementProjectPlant)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProcurementProject>
-
setProcurementProjectUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ProcurementProjectUUID
- Parameters:
procurementProjectUUID- Procurement Project UUID
-
setProcurementProject
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ProcurementProject
- Parameters:
procurementProject- Procurement Project
-
setProcurementProjectName
Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: ProcurementProjectName
- Parameters:
procurementProjectName- Procurement Project Name
-
setExternalProjectReference
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ExternalProjectReference
- Parameters:
externalProjectReference- External Project Reference
-
setCompanyCode
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Parameters:
companyCode- Company Code
-
setLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Parameters:
lastChangedByUser- Last Changed By User
-
setCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Parameters:
createdByUser- Created By User
-
setLastChangeDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Parameters:
lastChangeDateTime- Last Changed On
-
setCreationDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Parameters:
creationDateTime- Creation Date
-
setProcurementProjectActvtnSts
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: ProcurementProjectActvtnSts
- Parameters:
procurementProjectActvtnSts- Procurement Project Activation Status
-
setSourcingOrigin
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: SourcingOrigin
- Parameters:
sourcingOrigin- Sourcing Origin
-
setSourcingScenario
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: SourcingScenario
- Parameters:
sourcingScenario- Sourcing Integration Scenario
-
setProcmtPlanningSubprojectUUID
Constraints: NullableOriginal property name from the Odata EDM: ProcmtPlanningSubprojectUUID
- Parameters:
procmtPlanningSubprojectUUID- Procurement Planning Subproject UUID
-
setIsEndOfPurposeBlocked
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: IsEndOfPurposeBlocked
- Parameters:
isEndOfPurposeBlocked- Business Purpose Completed
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProcurementProject>
-
getKey
- Overrides:
getKeyin classVdmObject<ProcurementProject>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProcurementProject>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProcurementProject>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProcurementProject>
-
getProcurementProjectPlantIfPresent
@Nonnull public io.vavr.control.Option<List<ProcurementProjectPlant>> getProcurementProjectPlantIfPresent()Retrieval of associated ProcurementProjectPlant entities (one to many). This corresponds to the OData navigation property _ProcurementProjectPlant.If the navigation property for an entity ProcurementProject 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 _ProcurementProjectPlant is already loaded, the result
will contain the ProcurementProjectPlant entities. If not, an
Optionwith result stateemptyis returned.
-
setProcurementProjectPlant
Overwrites the list of associated ProcurementProjectPlant entities for the loaded navigation property _ProcurementProjectPlant.If the navigation property _ProcurementProjectPlant of a queried ProcurementProject 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 ProcurementProjectPlant entities.
-
addProcurementProjectPlant
Adds elements to the list of associated ProcurementProjectPlant entities. This corresponds to the OData navigation property _ProcurementProjectPlant.If the navigation property _ProcurementProjectPlant of a queried ProcurementProject 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 ProcurementProjectPlant entities.
-
deactivateProcurementProject
@Nonnull public static BoundAction.SingleToSingle<ProcurementProject,ProcurementProject> deactivateProcurementProject()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.
-
activateProcurementProject
@Nonnull public static BoundAction.SingleToSingle<ProcurementProject,ProcurementProject> activateProcurementProject()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
-
getProcurementProjectUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: ProcurementProjectUUID
- Returns:
- Procurement Project UUID
-
getProcurementProject
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ProcurementProject
- Returns:
- Procurement Project
-
getProcurementProjectName
Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: ProcurementProjectName
- Returns:
- Procurement Project Name
-
getExternalProjectReference
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ExternalProjectReference
- Returns:
- External Project Reference
-
getCompanyCode
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Returns:
- Company Code
-
getLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Returns:
- Last Changed By User
-
getCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Returns:
- Created By User
-
getLastChangeDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Returns:
- Last Changed On
-
getCreationDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Returns:
- Creation Date
-
getProcurementProjectActvtnSts
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: ProcurementProjectActvtnSts
- Returns:
- Procurement Project Activation Status
-
getSourcingOrigin
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: SourcingOrigin
- Returns:
- Sourcing Origin
-
getSourcingScenario
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: SourcingScenario
- Returns:
- Sourcing Integration Scenario
-
getProcmtPlanningSubprojectUUID
Constraints: NullableOriginal property name from the Odata EDM: ProcmtPlanningSubprojectUUID
- Returns:
- Procurement Planning Subproject UUID
-
getIsEndOfPurposeBlocked
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: IsEndOfPurposeBlocked
- Returns:
- Business Purpose Completed
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<ProcurementProject>
-
equals
- Overrides:
equalsin classVdmEntity<ProcurementProject>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProcurementProject>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProcurementProject>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProcurementProject>
-