Class ServiceCancellationParty
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ServiceCancellationParty_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ServiceCancellationParty instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<ServiceCancellationParty>Selector for all available fields of ServiceCancellationParty.static final SimpleProperty.String<ServiceCancellationParty>static final SimpleProperty.String<ServiceCancellationParty>Use with available request builders to apply the _ServiceCancellationPartyText 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
ConstructorsConstructorDescriptionServiceCancellationParty(String serviceContractCanclnParty, String serviceContrCanclnPartyName, List<ServiceCancellationPartyText> to_ServiceCancellationPartyText) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated ServiceCancellationPartyText entities.builder()protected booleanbooleanprotected voidprotected Stringprotected Stringprotected ODataEntityKeygetKey()io.vavr.control.Option<List<ServiceCancellationPartyText>>Retrieval of associated ServiceCancellationPartyText entities (one to many).(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 40getType()inthashCode()voidOverwrites the list of associated ServiceCancellationPartyText entities for the loaded navigation property _ServiceCancellationPartyText.voidsetServiceContractCanclnParty(String serviceContractCanclnParty) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetServiceContrCanclnPartyName(String serviceContrCanclnPartyName) Constraints: Not nullable, Maximum length: 40toString()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 ServiceCancellationParty. -
SERVICE_CONTRACT_CANCLN_PARTY
-
SERVICE_CONTR_CANCLN_PARTY_NAME
-
TO__SERVICE_CANCELLATION_PARTY_TEXT
public static final NavigationProperty.Collection<ServiceCancellationParty,ServiceCancellationPartyText> TO__SERVICE_CANCELLATION_PARTY_TEXTUse with available request builders to apply the _ServiceCancellationPartyText navigation property to query operations.
-
-
Constructor Details
-
ServiceCancellationParty
public ServiceCancellationParty() -
ServiceCancellationParty
public ServiceCancellationParty(@Nullable String serviceContractCanclnParty, @Nullable String serviceContrCanclnPartyName, List<ServiceCancellationPartyText> to_ServiceCancellationPartyText)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ServiceCancellationParty>
-
setServiceContractCanclnParty
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ServiceContractCanclnParty
- Parameters:
serviceContractCanclnParty- Cancelling Party
-
setServiceContrCanclnPartyName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ServiceContrCanclnPartyName
- Parameters:
serviceContrCanclnPartyName- Description (40 Characters)
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ServiceCancellationParty>
-
getKey
- Overrides:
getKeyin classVdmObject<ServiceCancellationParty>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ServiceCancellationParty>
-
fromMap
- Overrides:
fromMapin classVdmObject<ServiceCancellationParty>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ServiceCancellationParty>
-
getServiceCancellationPartyTextIfPresent
@Nonnull public io.vavr.control.Option<List<ServiceCancellationPartyText>> getServiceCancellationPartyTextIfPresent()Retrieval of associated ServiceCancellationPartyText entities (one to many). This corresponds to the OData navigation property _ServiceCancellationPartyText.If the navigation property for an entity ServiceCancellationParty 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 _ServiceCancellationPartyText is already loaded, the
result will contain the ServiceCancellationPartyText entities. If not, an
Optionwith result stateemptyis returned.
-
setServiceCancellationPartyText
Overwrites the list of associated ServiceCancellationPartyText entities for the loaded navigation property _ServiceCancellationPartyText.If the navigation property _ServiceCancellationPartyText of a queried ServiceCancellationParty 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 ServiceCancellationPartyText entities.
-
addServiceCancellationPartyText
Adds elements to the list of associated ServiceCancellationPartyText entities. This corresponds to the OData navigation property _ServiceCancellationPartyText.If the navigation property _ServiceCancellationPartyText of a queried ServiceCancellationParty 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 ServiceCancellationPartyText entities.
-
builder
-
getServiceContractCanclnParty
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ServiceContractCanclnParty
- Returns:
- Cancelling Party
-
getServiceContrCanclnPartyName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: ServiceContrCanclnPartyName
- Returns:
- Description (40 Characters)
-
toString
- Overrides:
toStringin classVdmObject<ServiceCancellationParty>
-
equals
- Overrides:
equalsin classVdmEntity<ServiceCancellationParty>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ServiceCancellationParty>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ServiceCancellationParty>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ServiceCancellationParty>
-