Class SrvcContrItemProduct
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: SrvcContrItemProduct_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of SrvcContrItemProduct instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<SrvcContrItemProduct>Selector for all available fields of SrvcContrItemProduct.static final SimpleProperty.String<SrvcContrItemProduct>static final SimpleProperty.String<SrvcContrItemProduct>static final SimpleProperty.String<SrvcContrItemProduct>static final SimpleProperty.String<SrvcContrItemProduct>static final NavigationProperty.Single<SrvcContrItemProduct,ServiceContractItem> Use with available request builders to apply the _Item navigation property to query operations.static final NavigationProperty.Single<SrvcContrItemProduct,ServiceContract> Use with available request builders to apply the _ServiceContract 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
ConstructorsConstructorDescriptionSrvcContrItemProduct(String serviceContract, String serviceContractItem, String serviceProductListItem, String srvcContrProdListProduct, ServiceContractItem to_Item, ServiceContract to_ServiceContract) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanprotected voidprotected Stringprotected Stringio.vavr.control.Option<ServiceContractItem>Retrieval of associated ServiceContractItem entity (one to one).protected ODataEntityKeygetKey()(Key Field) Constraints: Not nullable, Maximum length: 10io.vavr.control.Option<ServiceContract>Retrieval of associated ServiceContract entity (one to one).(Key Field) Constraints: Not nullable, Maximum length: 6(Key Field) Constraints: Not nullable, Maximum length: 6Constraints: Not nullable, Maximum length: 18getType()inthashCode()voidsetItem(ServiceContractItem value) Overwrites the associated ServiceContractItem entity for the loaded navigation property _Item.voidOverwrites the associated ServiceContract entity for the loaded navigation property _ServiceContract.voidsetServiceContract(String serviceContract) (Key Field) Constraints: Not nullable, Maximum length: 10voidsetServiceContractItem(String serviceContractItem) (Key Field) Constraints: Not nullable, Maximum length: 6voidsetServiceProductListItem(String serviceProductListItem) (Key Field) Constraints: Not nullable, Maximum length: 6voidsetSrvcContrProdListProduct(String srvcContrProdListProduct) Constraints: Not nullable, Maximum length: 18toString()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 SrvcContrItemProduct. -
SERVICE_CONTRACT
-
SERVICE_CONTRACT_ITEM
-
SERVICE_PRODUCT_LIST_ITEM
-
SRVC_CONTR_PROD_LIST_PRODUCT
-
TO__ITEM
Use with available request builders to apply the _Item navigation property to query operations. -
TO__SERVICE_CONTRACT
public static final NavigationProperty.Single<SrvcContrItemProduct,ServiceContract> TO__SERVICE_CONTRACTUse with available request builders to apply the _ServiceContract navigation property to query operations.
-
-
Constructor Details
-
SrvcContrItemProduct
public SrvcContrItemProduct() -
SrvcContrItemProduct
public SrvcContrItemProduct(@Nullable String serviceContract, @Nullable String serviceContractItem, @Nullable String serviceProductListItem, @Nullable String srvcContrProdListProduct, @Nullable ServiceContractItem to_Item, @Nullable ServiceContract to_ServiceContract)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<SrvcContrItemProduct>
-
setServiceContract
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ServiceContract
- Parameters:
serviceContract- Transaction ID
-
setServiceContractItem
(Key Field) Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: ServiceContractItem
- Parameters:
serviceContractItem- Shortened Item Number in Document
-
setServiceProductListItem
(Key Field) Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: ServiceProductListItem
- Parameters:
serviceProductListItem- Counter for CRMS4D_ORDPRP_I product list
-
setSrvcContrProdListProduct
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: SrvcContrProdListProduct
- Parameters:
srvcContrProdListProduct- Material Number
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<SrvcContrItemProduct>
-
getKey
- Overrides:
getKeyin classVdmObject<SrvcContrItemProduct>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<SrvcContrItemProduct>
-
fromMap
- Overrides:
fromMapin classVdmObject<SrvcContrItemProduct>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<SrvcContrItemProduct>
-
getItemIfPresent
Retrieval of associated ServiceContractItem entity (one to one). This corresponds to the OData navigation property _Item.If the navigation property for an entity SrvcContrItemProduct 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 _Item is already loaded, the result will contain the
ServiceContractItem entity. If not, an
Optionwith result stateemptyis returned.
-
setItem
Overwrites the associated ServiceContractItem entity for the loaded navigation property _Item.- Parameters:
value- New ServiceContractItem entity.
-
getServiceContractIfPresent
Retrieval of associated ServiceContract entity (one to one). This corresponds to the OData navigation property _ServiceContract.If the navigation property for an entity SrvcContrItemProduct 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 _ServiceContract is already loaded, the result will
contain the ServiceContract entity. If not, an
Optionwith result stateemptyis returned.
-
setServiceContract
Overwrites the associated ServiceContract entity for the loaded navigation property _ServiceContract.- Parameters:
value- New ServiceContract entity.
-
builder
-
getServiceContract
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ServiceContract
- Returns:
- Transaction ID
-
getServiceContractItem
(Key Field) Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: ServiceContractItem
- Returns:
- Shortened Item Number in Document
-
getServiceProductListItem
(Key Field) Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: ServiceProductListItem
- Returns:
- Counter for CRMS4D_ORDPRP_I product list
-
getSrvcContrProdListProduct
Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: SrvcContrProdListProduct
- Returns:
- Material Number
-
toString
- Overrides:
toStringin classVdmObject<SrvcContrItemProduct>
-
equals
- Overrides:
equalsin classVdmEntity<SrvcContrItemProduct>
-
canEqual
- Overrides:
canEqualin classVdmEntity<SrvcContrItemProduct>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<SrvcContrItemProduct>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<SrvcContrItemProduct>
-