Class ProjectDemandType
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ProjectDemandType_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProjectDemandType instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<ProjectDemandType>Selector for all available fields of ProjectDemandType.static final SimpleProperty.String<ProjectDemandType>static final SimpleProperty.String<ProjectDemandType>static final SimpleProperty.String<ProjectDemandType>static final NavigationProperty.Single<ProjectDemandType,ProjectDemandCategory> Use with available request builders to apply the _ProjectDemandCategory navigation property to query operations.Use with available request builders to apply the _Text 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
ConstructorsConstructorDescriptionProjectDemandType(String projectDemandType, String projectDemandCategory, String projectDemandTypeName, ProjectDemandCategory to_ProjectDemandCategory, List<ProjectDemandTypeText> to_Text) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddText(ProjectDemandTypeText... entity) Adds elements to the list of associated ProjectDemandTypeText entities.builder()protected booleanbooleanprotected voidprotected Stringprotected Stringprotected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 2io.vavr.control.Option<ProjectDemandCategory>Retrieval of associated ProjectDemandCategory entity (one to one).(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 40io.vavr.control.Option<List<ProjectDemandTypeText>>Retrieval of associated ProjectDemandTypeText entities (one to many).getType()inthashCode()voidOverwrites the associated ProjectDemandCategory entity for the loaded navigation property _ProjectDemandCategory.voidsetProjectDemandCategory(String projectDemandCategory) Constraints: Not nullable, Maximum length: 2voidsetProjectDemandType(String projectDemandType) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetProjectDemandTypeName(String projectDemandTypeName) Constraints: Not nullable, Maximum length: 40voidsetText(List<ProjectDemandTypeText> value) Overwrites the list of associated ProjectDemandTypeText entities for the loaded navigation property _Text.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 ProjectDemandType. -
PROJECT_DEMAND_TYPE
-
PROJECT_DEMAND_CATEGORY
-
PROJECT_DEMAND_TYPE_NAME
-
TO__PROJECT_DEMAND_CATEGORY
public static final NavigationProperty.Single<ProjectDemandType,ProjectDemandCategory> TO__PROJECT_DEMAND_CATEGORYUse with available request builders to apply the _ProjectDemandCategory navigation property to query operations. -
TO__TEXT
Use with available request builders to apply the _Text navigation property to query operations.
-
-
Constructor Details
-
ProjectDemandType
public ProjectDemandType() -
ProjectDemandType
public ProjectDemandType(@Nullable String projectDemandType, @Nullable String projectDemandCategory, @Nullable String projectDemandTypeName, @Nullable ProjectDemandCategory to_ProjectDemandCategory, List<ProjectDemandTypeText> to_Text)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProjectDemandType>
-
setProjectDemandType
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ProjectDemandType
- Parameters:
projectDemandType- Project Demand Type
-
setProjectDemandCategory
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: ProjectDemandCategory
- Parameters:
projectDemandCategory- Project Demand Category
-
setProjectDemandTypeName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectDemandTypeName
- Parameters:
projectDemandTypeName- Name of the Demand Type
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProjectDemandType>
-
getKey
- Overrides:
getKeyin classVdmObject<ProjectDemandType>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProjectDemandType>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProjectDemandType>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProjectDemandType>
-
getProjectDemandCategoryIfPresent
Retrieval of associated ProjectDemandCategory entity (one to one). This corresponds to the OData navigation property _ProjectDemandCategory.If the navigation property for an entity ProjectDemandType 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 _ProjectDemandCategory is already loaded, the result
will contain the ProjectDemandCategory entity. If not, an
Optionwith result stateemptyis returned.
-
setProjectDemandCategory
Overwrites the associated ProjectDemandCategory entity for the loaded navigation property _ProjectDemandCategory.- Parameters:
value- New ProjectDemandCategory entity.
-
getTextIfPresent
Retrieval of associated ProjectDemandTypeText entities (one to many). This corresponds to the OData navigation property _Text.If the navigation property for an entity ProjectDemandType 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 _Text is already loaded, the result will contain the
ProjectDemandTypeText entities. If not, an
Optionwith result stateemptyis returned.
-
setText
Overwrites the list of associated ProjectDemandTypeText entities for the loaded navigation property _Text.If the navigation property _Text of a queried ProjectDemandType 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 ProjectDemandTypeText entities.
-
addText
Adds elements to the list of associated ProjectDemandTypeText entities. This corresponds to the OData navigation property _Text.If the navigation property _Text of a queried ProjectDemandType 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 ProjectDemandTypeText entities.
-
builder
-
getProjectDemandType
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ProjectDemandType
- Returns:
- Project Demand Type
-
getProjectDemandCategory
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: ProjectDemandCategory
- Returns:
- Project Demand Category
-
getProjectDemandTypeName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectDemandTypeName
- Returns:
- Name of the Demand Type
-
toString
- Overrides:
toStringin classVdmObject<ProjectDemandType>
-
equals
- Overrides:
equalsin classVdmEntity<ProjectDemandType>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProjectDemandType>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProjectDemandType>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProjectDemandType>
-