Class ProjectDemandSourceOfSupply
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ProjectDemandSourceOfSupply_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProjectDemandSourceOfSupply instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<ProjectDemandSourceOfSupply>Selector for all available fields of ProjectDemandSourceOfSupply.static final SimpleProperty.String<ProjectDemandSourceOfSupply>static final SimpleProperty.String<ProjectDemandSourceOfSupply>Use with available request builders to apply the _SourceOfSupplyText 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
ConstructorsConstructorDescriptionProjectDemandSourceOfSupply(String projectDemandSourceOfSupply, String projDmndSourceOfSupplyText, List<ProjDmndSourceOfSupplyText> to_SourceOfSupplyText) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSourceOfSupplyText(ProjDmndSourceOfSupplyText... entity) Adds elements to the list of associated ProjDmndSourceOfSupplyText entities.builder()protected booleanbooleanprotected voidprotected Stringprotected Stringprotected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 60(Key Field) Constraints: Not nullable, Maximum length: 1io.vavr.control.Option<List<ProjDmndSourceOfSupplyText>>Retrieval of associated ProjDmndSourceOfSupplyText entities (one to many).getType()inthashCode()voidsetProjDmndSourceOfSupplyText(String projDmndSourceOfSupplyText) Constraints: Not nullable, Maximum length: 60voidsetProjectDemandSourceOfSupply(String projectDemandSourceOfSupply) (Key Field) Constraints: Not nullable, Maximum length: 1voidOverwrites the list of associated ProjDmndSourceOfSupplyText entities for the loaded navigation property _SourceOfSupplyText.toString()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 ProjectDemandSourceOfSupply. -
PROJECT_DEMAND_SOURCE_OF_SUPPLY
public static final SimpleProperty.String<ProjectDemandSourceOfSupply> PROJECT_DEMAND_SOURCE_OF_SUPPLY -
PROJ_DMND_SOURCE_OF_SUPPLY_TEXT
public static final SimpleProperty.String<ProjectDemandSourceOfSupply> PROJ_DMND_SOURCE_OF_SUPPLY_TEXT -
TO__SOURCE_OF_SUPPLY_TEXT
public static final NavigationProperty.Collection<ProjectDemandSourceOfSupply,ProjDmndSourceOfSupplyText> TO__SOURCE_OF_SUPPLY_TEXTUse with available request builders to apply the _SourceOfSupplyText navigation property to query operations.
-
-
Constructor Details
-
ProjectDemandSourceOfSupply
public ProjectDemandSourceOfSupply() -
ProjectDemandSourceOfSupply
public ProjectDemandSourceOfSupply(@Nullable String projectDemandSourceOfSupply, @Nullable String projDmndSourceOfSupplyText, List<ProjDmndSourceOfSupplyText> to_SourceOfSupplyText)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProjectDemandSourceOfSupply>
-
setProjectDemandSourceOfSupply
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ProjectDemandSourceOfSupply
- Parameters:
projectDemandSourceOfSupply- Source of a Resource Assignment
-
setProjDmndSourceOfSupplyText
Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: ProjDmndSourceOfSupplyText
- Parameters:
projDmndSourceOfSupplyText- Short Text for Fixed Values
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProjectDemandSourceOfSupply>
-
getKey
- Overrides:
getKeyin classVdmObject<ProjectDemandSourceOfSupply>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProjectDemandSourceOfSupply>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProjectDemandSourceOfSupply>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProjectDemandSourceOfSupply>
-
getSourceOfSupplyTextIfPresent
@Nonnull public io.vavr.control.Option<List<ProjDmndSourceOfSupplyText>> getSourceOfSupplyTextIfPresent()Retrieval of associated ProjDmndSourceOfSupplyText entities (one to many). This corresponds to the OData navigation property _SourceOfSupplyText.If the navigation property for an entity ProjectDemandSourceOfSupply 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 _SourceOfSupplyText is already loaded, the result will
contain the ProjDmndSourceOfSupplyText entities. If not, an
Optionwith result stateemptyis returned.
-
setSourceOfSupplyText
Overwrites the list of associated ProjDmndSourceOfSupplyText entities for the loaded navigation property _SourceOfSupplyText.If the navigation property _SourceOfSupplyText of a queried ProjectDemandSourceOfSupply 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 ProjDmndSourceOfSupplyText entities.
-
addSourceOfSupplyText
Adds elements to the list of associated ProjDmndSourceOfSupplyText entities. This corresponds to the OData navigation property _SourceOfSupplyText.If the navigation property _SourceOfSupplyText of a queried ProjectDemandSourceOfSupply 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 ProjDmndSourceOfSupplyText entities.
-
builder
-
getProjectDemandSourceOfSupply
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ProjectDemandSourceOfSupply
- Returns:
- Source of a Resource Assignment
-
getProjDmndSourceOfSupplyText
Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: ProjDmndSourceOfSupplyText
- Returns:
- Short Text for Fixed Values
-
toString
- Overrides:
toStringin classVdmObject<ProjectDemandSourceOfSupply>
-
equals
- Overrides:
equalsin classVdmEntity<ProjectDemandSourceOfSupply>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProjectDemandSourceOfSupply>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProjectDemandSourceOfSupply>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProjectDemandSourceOfSupply>
-