Class ProjectDemandCategory
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ProjectDemandCategory_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProjectDemandCategory instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<ProjectDemandCategory>Selector for all available fields of ProjectDemandCategory.static final SimpleProperty.String<ProjectDemandCategory>static final SimpleProperty.String<ProjectDemandCategory>Use with available request builders to apply the _Text navigation property to query operations.Use with available request builders to apply the _Type 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
ConstructorsConstructorDescriptionProjectDemandCategory(String projectDemandCategory, String projectDemandCategoryName, List<ProjectDemandCategoryText> to_Text, List<ProjectDemandType> to_Type) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddText(ProjectDemandCategoryText... entity) Adds elements to the list of associated ProjectDemandCategoryText entities.voidaddType(ProjectDemandType... entity) Adds elements to the list of associated ProjectDemandType entities.builder()protected booleanbooleanprotected voidprotected Stringprotected Stringprotected ODataEntityKeygetKey()(Key Field) Constraints: Not nullable, Maximum length: 2Constraints: Not nullable, Maximum length: 40io.vavr.control.Option<List<ProjectDemandCategoryText>>Retrieval of associated ProjectDemandCategoryText entities (one to many).getType()io.vavr.control.Option<List<ProjectDemandType>>Retrieval of associated ProjectDemandType entities (one to many).inthashCode()voidsetProjectDemandCategory(String projectDemandCategory) (Key Field) Constraints: Not nullable, Maximum length: 2voidsetProjectDemandCategoryName(String projectDemandCategoryName) Constraints: Not nullable, Maximum length: 40voidsetText(List<ProjectDemandCategoryText> value) Overwrites the list of associated ProjectDemandCategoryText entities for the loaded navigation property _Text.voidsetType(List<ProjectDemandType> value) Overwrites the list of associated ProjectDemandType entities for the loaded navigation property _Type.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 ProjectDemandCategory. -
PROJECT_DEMAND_CATEGORY
-
PROJECT_DEMAND_CATEGORY_NAME
-
TO__TEXT
public static final NavigationProperty.Collection<ProjectDemandCategory,ProjectDemandCategoryText> TO__TEXTUse with available request builders to apply the _Text navigation property to query operations. -
TO__TYPE
Use with available request builders to apply the _Type navigation property to query operations.
-
-
Constructor Details
-
ProjectDemandCategory
public ProjectDemandCategory() -
ProjectDemandCategory
public ProjectDemandCategory(@Nullable String projectDemandCategory, @Nullable String projectDemandCategoryName, List<ProjectDemandCategoryText> to_Text, List<ProjectDemandType> to_Type)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProjectDemandCategory>
-
setProjectDemandCategory
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: ProjectDemandCategory
- Parameters:
projectDemandCategory- Project Demand Category
-
setProjectDemandCategoryName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectDemandCategoryName
- Parameters:
projectDemandCategoryName- Name of the Demand Category
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProjectDemandCategory>
-
getKey
- Overrides:
getKeyin classVdmObject<ProjectDemandCategory>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProjectDemandCategory>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProjectDemandCategory>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProjectDemandCategory>
-
getTextIfPresent
Retrieval of associated ProjectDemandCategoryText entities (one to many). This corresponds to the OData navigation property _Text.If the navigation property for an entity ProjectDemandCategory 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
ProjectDemandCategoryText entities. If not, an
Optionwith result stateemptyis returned.
-
setText
Overwrites the list of associated ProjectDemandCategoryText entities for the loaded navigation property _Text.If the navigation property _Text of a queried ProjectDemandCategory 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 ProjectDemandCategoryText entities.
-
addText
Adds elements to the list of associated ProjectDemandCategoryText entities. This corresponds to the OData navigation property _Text.If the navigation property _Text of a queried ProjectDemandCategory 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 ProjectDemandCategoryText entities.
-
getTypeIfPresent
Retrieval of associated ProjectDemandType entities (one to many). This corresponds to the OData navigation property _Type.If the navigation property for an entity ProjectDemandCategory 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 _Type is already loaded, the result will contain the
ProjectDemandType entities. If not, an
Optionwith result stateemptyis returned.
-
setType
Overwrites the list of associated ProjectDemandType entities for the loaded navigation property _Type.If the navigation property _Type of a queried ProjectDemandCategory 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 ProjectDemandType entities.
-
addType
Adds elements to the list of associated ProjectDemandType entities. This corresponds to the OData navigation property _Type.If the navigation property _Type of a queried ProjectDemandCategory 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 ProjectDemandType entities.
-
builder
-
getProjectDemandCategory
(Key Field) Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: ProjectDemandCategory
- Returns:
- Project Demand Category
-
getProjectDemandCategoryName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectDemandCategoryName
- Returns:
- Name of the Demand Category
-
toString
- Overrides:
toStringin classVdmObject<ProjectDemandCategory>
-
equals
- Overrides:
equalsin classVdmEntity<ProjectDemandCategory>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProjectDemandCategory>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProjectDemandCategory>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProjectDemandCategory>
-