Class EntProjPriorityCode
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: EntProjPriorityCodeType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of EntProjPriorityCode instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<EntProjPriorityCode>Selector for all available fields of EntProjPriorityCode.static final SimpleProperty.String<EntProjPriorityCode>static final SimpleProperty.String<EntProjPriorityCode>Use with available request builders to apply the _PriorityCodeText 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
ConstructorsConstructorDescriptionEntProjPriorityCode(String priorityCode, String priorityCodeName, List<EntProjPriorityCodeText> to_PriorityCodeText) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPriorityCodeText(EntProjPriorityCodeText... entity) Adds elements to the list of associated EntProjPriorityCodeText entities.builder()protected booleanbooleanprotected voidprotected Stringprotected Stringprotected ODataEntityKeygetKey()(Key Field) Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 40io.vavr.control.Option<List<EntProjPriorityCodeText>>Retrieval of associated EntProjPriorityCodeText entities (one to many).getType()inthashCode()voidsetPriorityCode(String priorityCode) (Key Field) Constraints: Not nullable, Maximum length: 3voidsetPriorityCodeName(String priorityCodeName) Constraints: Not nullable, Maximum length: 40voidOverwrites the list of associated EntProjPriorityCodeText entities for the loaded navigation property _PriorityCodeText.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 EntProjPriorityCode. -
PRIORITY_CODE
-
PRIORITY_CODE_NAME
-
TO__PRIORITY_CODE_TEXT
public static final NavigationProperty.Collection<EntProjPriorityCode,EntProjPriorityCodeText> TO__PRIORITY_CODE_TEXTUse with available request builders to apply the _PriorityCodeText navigation property to query operations.
-
-
Constructor Details
-
EntProjPriorityCode
public EntProjPriorityCode() -
EntProjPriorityCode
public EntProjPriorityCode(@Nullable String priorityCode, @Nullable String priorityCodeName, List<EntProjPriorityCodeText> to_PriorityCodeText)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<EntProjPriorityCode>
-
setPriorityCode
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: PriorityCode
- Parameters:
priorityCode- The priorityCode to set.
-
setPriorityCodeName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: PriorityCodeName
- Parameters:
priorityCodeName- Object Name
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<EntProjPriorityCode>
-
getKey
- Overrides:
getKeyin classVdmObject<EntProjPriorityCode>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<EntProjPriorityCode>
-
fromMap
- Overrides:
fromMapin classVdmObject<EntProjPriorityCode>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<EntProjPriorityCode>
-
getPriorityCodeTextIfPresent
@Nonnull public io.vavr.control.Option<List<EntProjPriorityCodeText>> getPriorityCodeTextIfPresent()Retrieval of associated EntProjPriorityCodeText entities (one to many). This corresponds to the OData navigation property _PriorityCodeText.If the navigation property for an entity EntProjPriorityCode 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 _PriorityCodeText is already loaded, the result will
contain the EntProjPriorityCodeText entities. If not, an
Optionwith result stateemptyis returned.
-
setPriorityCodeText
Overwrites the list of associated EntProjPriorityCodeText entities for the loaded navigation property _PriorityCodeText.If the navigation property _PriorityCodeText of a queried EntProjPriorityCode 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 EntProjPriorityCodeText entities.
-
addPriorityCodeText
Adds elements to the list of associated EntProjPriorityCodeText entities. This corresponds to the OData navigation property _PriorityCodeText.If the navigation property _PriorityCodeText of a queried EntProjPriorityCode 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 EntProjPriorityCodeText entities.
-
builder
-
getPriorityCode
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: PriorityCode
- Returns:
- The priorityCode contained in this
VdmEntity.
-
getPriorityCodeName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: PriorityCodeName
- Returns:
- Object Name
-
toString
- Overrides:
toStringin classVdmObject<EntProjPriorityCode>
-
equals
- Overrides:
equalsin classVdmEntity<EntProjPriorityCode>
-
canEqual
- Overrides:
canEqualin classVdmEntity<EntProjPriorityCode>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<EntProjPriorityCode>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<EntProjPriorityCode>
-