Class CmplRqRsltPCNDets
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: CmplRqRsltPCNDets_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of CmplRqRsltPCNDets instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<CmplRqRsltPCNDets>Selector for all available fields of CmplRqRsltPCNDets.static final SimpleProperty.String<CmplRqRsltPCNDets>static final SimpleProperty.Guid<CmplRqRsltPCNDets>static final NavigationProperty.Collection<CmplRqRsltPCNDets,CmplRqRsltPCNCntr> Use with available request builders to apply the _PCNCountry navigation property to query operations.static final NavigationProperty.Single<CmplRqRsltPCNDets,CmplRqRsltPCN> Use with available request builders to apply the _PoisonCenterNotification 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
ConstructorsConstructorDescriptionCmplRqRsltPCNDets(UUID poisonCtrNotifDetsUUID, String pCNUniqueFormulaIdentifier, List<CmplRqRsltPCNCntr> to_PCNCountry, CmplRqRsltPCN to_PoisonCenterNotification) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPCNCountry(CmplRqRsltPCNCntr... entity) Adds elements to the list of associated CmplRqRsltPCNCntr entities.builder()protected booleanbooleanprotected voidprotected Stringprotected Stringprotected ODataEntityKeygetKey()io.vavr.control.Option<List<CmplRqRsltPCNCntr>>Retrieval of associated CmplRqRsltPCNCntr entities (one to many).Constraints: Not nullable, Maximum length: 19io.vavr.control.Option<CmplRqRsltPCN>Retrieval of associated CmplRqRsltPCN entity (one to one).(Key Field) Constraints: Not nullablegetType()inthashCode()voidsetPCNCountry(List<CmplRqRsltPCNCntr> value) Overwrites the list of associated CmplRqRsltPCNCntr entities for the loaded navigation property _PCNCountry.voidsetPCNUniqueFormulaIdentifier(String pCNUniqueFormulaIdentifier) Constraints: Not nullable, Maximum length: 19voidOverwrites the associated CmplRqRsltPCN entity for the loaded navigation property _PoisonCenterNotification.voidsetPoisonCtrNotifDetsUUID(UUID poisonCtrNotifDetsUUID) (Key Field) Constraints: Not nullabletoString()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 CmplRqRsltPCNDets. -
POISON_CTR_NOTIF_DETS_UUID
-
PCN_UNIQUE_FORMULA_IDENTIFIER
-
TO__P_C_N_COUNTRY
public static final NavigationProperty.Collection<CmplRqRsltPCNDets,CmplRqRsltPCNCntr> TO__P_C_N_COUNTRYUse with available request builders to apply the _PCNCountry navigation property to query operations. -
TO__POISON_CENTER_NOTIFICATION
public static final NavigationProperty.Single<CmplRqRsltPCNDets,CmplRqRsltPCN> TO__POISON_CENTER_NOTIFICATIONUse with available request builders to apply the _PoisonCenterNotification navigation property to query operations.
-
-
Constructor Details
-
CmplRqRsltPCNDets
public CmplRqRsltPCNDets() -
CmplRqRsltPCNDets
public CmplRqRsltPCNDets(@Nullable UUID poisonCtrNotifDetsUUID, @Nullable String pCNUniqueFormulaIdentifier, List<CmplRqRsltPCNCntr> to_PCNCountry, @Nullable CmplRqRsltPCN to_PoisonCenterNotification)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<CmplRqRsltPCNDets>
-
setPoisonCtrNotifDetsUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: PoisonCtrNotifDetsUUID
- Parameters:
poisonCtrNotifDetsUUID- Poison Centre Notification Details UUID
-
setPCNUniqueFormulaIdentifier
Constraints: Not nullable, Maximum length: 19Original property name from the Odata EDM: PCNUniqueFormulaIdentifier
- Parameters:
pCNUniqueFormulaIdentifier- Unique Formula Identifier for Poison Centre Notification
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<CmplRqRsltPCNDets>
-
getKey
- Overrides:
getKeyin classVdmObject<CmplRqRsltPCNDets>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<CmplRqRsltPCNDets>
-
fromMap
- Overrides:
fromMapin classVdmObject<CmplRqRsltPCNDets>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<CmplRqRsltPCNDets>
-
getPCNCountryIfPresent
Retrieval of associated CmplRqRsltPCNCntr entities (one to many). This corresponds to the OData navigation property _PCNCountry.If the navigation property for an entity CmplRqRsltPCNDets 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 _PCNCountry is already loaded, the result will contain
the CmplRqRsltPCNCntr entities. If not, an
Optionwith result stateemptyis returned.
-
setPCNCountry
Overwrites the list of associated CmplRqRsltPCNCntr entities for the loaded navigation property _PCNCountry.If the navigation property _PCNCountry of a queried CmplRqRsltPCNDets 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 CmplRqRsltPCNCntr entities.
-
addPCNCountry
Adds elements to the list of associated CmplRqRsltPCNCntr entities. This corresponds to the OData navigation property _PCNCountry.If the navigation property _PCNCountry of a queried CmplRqRsltPCNDets 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 CmplRqRsltPCNCntr entities.
-
getPoisonCenterNotificationIfPresent
Retrieval of associated CmplRqRsltPCN entity (one to one). This corresponds to the OData navigation property _PoisonCenterNotification.If the navigation property for an entity CmplRqRsltPCNDets 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 _PoisonCenterNotification is already loaded, the result
will contain the CmplRqRsltPCN entity. If not, an
Optionwith result stateemptyis returned.
-
setPoisonCenterNotification
Overwrites the associated CmplRqRsltPCN entity for the loaded navigation property _PoisonCenterNotification.- Parameters:
value- New CmplRqRsltPCN entity.
-
builder
-
getPoisonCtrNotifDetsUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: PoisonCtrNotifDetsUUID
- Returns:
- Poison Centre Notification Details UUID
-
getPCNUniqueFormulaIdentifier
Constraints: Not nullable, Maximum length: 19Original property name from the Odata EDM: PCNUniqueFormulaIdentifier
- Returns:
- Unique Formula Identifier for Poison Centre Notification
-
toString
- Overrides:
toStringin classVdmObject<CmplRqRsltPCNDets>
-
equals
- Overrides:
equalsin classVdmEntity<CmplRqRsltPCNDets>
-
canEqual
- Overrides:
canEqualin classVdmEntity<CmplRqRsltPCNDets>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<CmplRqRsltPCNDets>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<CmplRqRsltPCNDets>
-