Class ProjectProfileCode
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ProjectProfileCodeType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProjectProfileCode instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<ProjectProfileCode>Selector for all available fields of ProjectProfileCode.static final SimpleProperty.String<ProjectProfileCode>static final SimpleProperty.String<ProjectProfileCode>Use with available request builders to apply the _ProjectProfileCodeText 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
ConstructorsConstructorDescriptionProjectProfileCode(String projectProfileCode, String projectProfileCodeText, List<ProjectProfileCodeText> to_ProjectProfileCodeText) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProjectProfileCodeText(ProjectProfileCodeText... entity) Adds elements to the list of associated ProjectProfileCodeText entities.builder()protected booleanbooleanprotected voidprotected Stringprotected Stringprotected ODataEntityKeygetKey()(Key Field) Constraints: Not nullable, Maximum length: 7Constraints: Not nullable, Maximum length: 40io.vavr.control.Option<List<ProjectProfileCodeText>>Retrieval of associated ProjectProfileCodeText entities (one to many).getType()inthashCode()voidsetProjectProfileCode(String projectProfileCode) (Key Field) Constraints: Not nullable, Maximum length: 7voidsetProjectProfileCodeText(String projectProfileCodeText) Constraints: Not nullable, Maximum length: 40voidOverwrites the list of associated ProjectProfileCodeText entities for the loaded navigation property _ProjectProfileCodeText.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 ProjectProfileCode. -
PROJECT_PROFILE_CODE
-
PROJECT_PROFILE_CODE_TEXT
-
TO__PROJECT_PROFILE_CODE_TEXT
public static final NavigationProperty.Collection<ProjectProfileCode,ProjectProfileCodeText> TO__PROJECT_PROFILE_CODE_TEXTUse with available request builders to apply the _ProjectProfileCodeText navigation property to query operations.
-
-
Constructor Details
-
ProjectProfileCode
public ProjectProfileCode() -
ProjectProfileCode
public ProjectProfileCode(@Nullable String projectProfileCode, @Nullable String projectProfileCodeText, List<ProjectProfileCodeText> to_ProjectProfileCodeText)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProjectProfileCode>
-
setProjectProfileCode
(Key Field) Constraints: Not nullable, Maximum length: 7Original property name from the Odata EDM: ProjectProfileCode
- Parameters:
projectProfileCode- Project Profile
-
setProjectProfileCodeText
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectProfileCodeText
- Parameters:
projectProfileCodeText- Text for Profile
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProjectProfileCode>
-
getKey
- Overrides:
getKeyin classVdmObject<ProjectProfileCode>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProjectProfileCode>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProjectProfileCode>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProjectProfileCode>
-
getProjectProfileCodeTextIfPresent
@Nonnull public io.vavr.control.Option<List<ProjectProfileCodeText>> getProjectProfileCodeTextIfPresent()Retrieval of associated ProjectProfileCodeText entities (one to many). This corresponds to the OData navigation property _ProjectProfileCodeText.If the navigation property for an entity ProjectProfileCode 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 _ProjectProfileCodeText is already loaded, the result
will contain the ProjectProfileCodeText entities. If not, an
Optionwith result stateemptyis returned.
-
setProjectProfileCodeText
Overwrites the list of associated ProjectProfileCodeText entities for the loaded navigation property _ProjectProfileCodeText.If the navigation property _ProjectProfileCodeText of a queried ProjectProfileCode 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 ProjectProfileCodeText entities.
-
addProjectProfileCodeText
Adds elements to the list of associated ProjectProfileCodeText entities. This corresponds to the OData navigation property _ProjectProfileCodeText.If the navigation property _ProjectProfileCodeText of a queried ProjectProfileCode 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 ProjectProfileCodeText entities.
-
builder
-
getProjectProfileCode
(Key Field) Constraints: Not nullable, Maximum length: 7Original property name from the Odata EDM: ProjectProfileCode
- Returns:
- Project Profile
-
getProjectProfileCodeText
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ProjectProfileCodeText
- Returns:
- Text for Profile
-
toString
- Overrides:
toStringin classVdmObject<ProjectProfileCode>
-
equals
- Overrides:
equalsin classVdmEntity<ProjectProfileCode>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProjectProfileCode>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProjectProfileCode>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProjectProfileCode>
-