Class FunctionalLocationWarranty
Original entity name from the Odata EDM: FunctionalLocationWarrantyType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of FunctionalLocationWarranty instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FunctionalLocationWarrantySelectableSelector for all available fields of FunctionalLocationWarranty.static final FunctionalLocationWarrantyField<String>Use with available fluent helpers to apply the FunctionalLocation field to query operations.static final FunctionalLocationWarrantyField<String>Use with available fluent helpers to apply the FunctionalLocationLabelName field to query operations.static final FunctionalLocationWarrantyField<String>Use with available fluent helpers to apply the MasterWarranty field to query operations.static final FunctionalLocationWarrantyOneToOneLink<FunctionalLocation>Use with available fluent helpers to apply the to_FunctionalLocation navigation property to query operations.static final FunctionalLocationWarrantyField<LocalDateTime>Use with available fluent helpers to apply the WarrantyEndDate field to query operations.static final FunctionalLocationWarrantyField<LocalDateTime>Use with available fluent helpers to apply the WarrantyStartDate field to query operations.static final FunctionalLocationWarrantyField<String>Use with available fluent helpers to apply the WarrantyType field to query operations.static final FunctionalLocationWarrantyField<String>Use with available fluent helpers to apply the WrntyIsInhtdFromSuperiorObject field to query operations.static final FunctionalLocationWarrantyField<String>Use with available fluent helpers to apply the WrntyIsPassedOnToChildObject field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionFunctionalLocationWarranty(String functionalLocation, String warrantyType, String functionalLocationLabelName, String masterWarranty, LocalDateTime warrantyStartDate, LocalDateTime warrantyEndDate, String wrntyIsInhtdFromSuperiorObject, String wrntyIsPassedOnToChildObject, FunctionalLocation toFunctionalLocation) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the FunctionalLocation entity (one to one) associated with this entity.static <T,DomainT>
FunctionalLocationWarrantyField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> FunctionalLocationWarrantyField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidprotected Stringprotected String(Key Field) Constraints: Not nullable, Maximum length: 30io.vavr.control.Option<FunctionalLocation>Retrieval of associated FunctionalLocation entity (one to one).Constraints: Not nullable, Maximum length: 40Retrieval of associated FunctionalLocation entity (one to one).getKey()Constraints: Not nullable, Maximum length: 20getType()Constraints: Not nullable, Precision: 0Constraints: Not nullable, Precision: 0(Key Field) Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 1inthashCode()voidOverwrites the associated FunctionalLocation entity for the loaded navigation property to_FunctionalLocation.voidsetFunctionalLocation(String functionalLocation) (Key Field) Constraints: Not nullable, Maximum length: 30voidsetFunctionalLocationLabelName(String functionalLocationLabelName) Constraints: Not nullable, Maximum length: 40voidsetMasterWarranty(String masterWarranty) Constraints: Not nullable, Maximum length: 20protected voidsetServicePathForFetch(String servicePathForFetch) voidsetWarrantyEndDate(LocalDateTime warrantyEndDate) Constraints: Not nullable, Precision: 0voidsetWarrantyStartDate(LocalDateTime warrantyStartDate) Constraints: Not nullable, Precision: 0voidsetWarrantyType(String warrantyType) (Key Field) Constraints: Not nullable, Maximum length: 1voidsetWrntyIsInhtdFromSuperiorObject(String wrntyIsInhtdFromSuperiorObject) Constraints: Not nullable, Maximum length: 1voidsetWrntyIsPassedOnToChildObject(String wrntyIsPassedOnToChildObject) Constraints: Not nullable, Maximum length: 1toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
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 FunctionalLocationWarranty. -
FUNCTIONAL_LOCATION
Use with available fluent helpers to apply the FunctionalLocation field to query operations. -
WARRANTY_TYPE
Use with available fluent helpers to apply the WarrantyType field to query operations. -
FUNCTIONAL_LOCATION_LABEL_NAME
Use with available fluent helpers to apply the FunctionalLocationLabelName field to query operations. -
MASTER_WARRANTY
Use with available fluent helpers to apply the MasterWarranty field to query operations. -
WARRANTY_START_DATE
Use with available fluent helpers to apply the WarrantyStartDate field to query operations. -
WARRANTY_END_DATE
Use with available fluent helpers to apply the WarrantyEndDate field to query operations. -
WRNTY_IS_INHTD_FROM_SUPERIOR_OBJECT
Use with available fluent helpers to apply the WrntyIsInhtdFromSuperiorObject field to query operations. -
WRNTY_IS_PASSED_ON_TO_CHILD_OBJECT
Use with available fluent helpers to apply the WrntyIsPassedOnToChildObject field to query operations. -
TO_FUNCTIONAL_LOCATION
public static final FunctionalLocationWarrantyOneToOneLink<FunctionalLocation> TO_FUNCTIONAL_LOCATIONUse with available fluent helpers to apply the to_FunctionalLocation navigation property to query operations.
-
-
Constructor Details
-
FunctionalLocationWarranty
public FunctionalLocationWarranty() -
FunctionalLocationWarranty
public FunctionalLocationWarranty(@Nullable String functionalLocation, @Nullable String warrantyType, @Nullable String functionalLocationLabelName, @Nullable String masterWarranty, @Nullable LocalDateTime warrantyStartDate, @Nullable LocalDateTime warrantyEndDate, @Nullable String wrntyIsInhtdFromSuperiorObject, @Nullable String wrntyIsPassedOnToChildObject, @Nullable FunctionalLocation toFunctionalLocation)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<FunctionalLocationWarranty>
-
setFunctionalLocation
(Key Field) Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: FunctionalLocation
- Parameters:
functionalLocation- Functional location
-
setWarrantyType
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WarrantyType
- Parameters:
warrantyType- Warranty type
-
setFunctionalLocationLabelName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: FunctionalLocationLabelName
- Parameters:
functionalLocationLabelName- Functional Location Label
-
setMasterWarranty
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: MasterWarranty
- Parameters:
masterWarranty- Master warranty number
-
setWarrantyStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: WarrantyStartDate
- Parameters:
warrantyStartDate- Warranty Date
-
setWarrantyEndDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: WarrantyEndDate
- Parameters:
warrantyEndDate- Date on which the warranty ends
-
setWrntyIsInhtdFromSuperiorObject
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WrntyIsInhtdFromSuperiorObject
- Parameters:
wrntyIsInhtdFromSuperiorObject- Indicator, Whether Technical Object Should Inherit Warranty
-
setWrntyIsPassedOnToChildObject
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WrntyIsPassedOnToChildObject
- Parameters:
wrntyIsPassedOnToChildObject- Indicator: Pass on Warranty
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<FunctionalLocationWarranty>
-
getKey
- Overrides:
getKeyin classVdmObject<FunctionalLocationWarranty>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<FunctionalLocationWarranty>
-
fromMap
- Overrides:
fromMapin classVdmObject<FunctionalLocationWarranty>
-
field
@Nonnull public static <T> FunctionalLocationWarrantyField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.- Parameters:
fieldName- The name of the extension field as returned by the OData service.fieldType- The Java type to use for the extension field when performing value comparisons.- Returns:
- A representation of an extension field from this entity.
-
field
@Nonnull public static <T,DomainT> FunctionalLocationWarrantyField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.DomainT- The type of the extension field as returned by the OData service.- Parameters:
typeConverter- A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the fieldfieldName- The name of the extension field as returned by the OData service.- Returns:
- A representation of an extension field from this entity, holding a reference to the given TypeConverter.
-
getDestinationForFetch
- Overrides:
getDestinationForFetchin classVdmEntity<FunctionalLocationWarranty>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<FunctionalLocationWarranty>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<FunctionalLocationWarranty>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<FunctionalLocationWarranty>
-
fetchFunctionalLocation
Fetches the FunctionalLocation entity (one to one) associated with this entity. This corresponds to the OData navigation property to_FunctionalLocation.Please note: This method will not cache or persist the query results.
- Returns:
- The single associated FunctionalLocation entity, or
nullif an entity is not associated. - Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getFunctionalLocationOrFetch
Retrieval of associated FunctionalLocation entity (one to one). This corresponds to the OData navigation property to_FunctionalLocation.If the navigation property to_FunctionalLocation of a queried FunctionalLocationWarranty 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.
- Returns:
- List of associated FunctionalLocation entity.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getFunctionalLocationIfPresent
Retrieval of associated FunctionalLocation entity (one to one). This corresponds to the OData navigation property to_FunctionalLocation.If the navigation property for an entity FunctionalLocationWarranty 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 to_FunctionalLocation is already loaded, the result
will contain the FunctionalLocation entity. If not, an
Optionwith result stateemptyis returned.
-
setFunctionalLocation
Overwrites the associated FunctionalLocation entity for the loaded navigation property to_FunctionalLocation.- Parameters:
value- New FunctionalLocation entity.
-
builder
-
getFunctionalLocation
(Key Field) Constraints: Not nullable, Maximum length: 30Original property name from the Odata EDM: FunctionalLocation
- Returns:
- Functional location
-
getWarrantyType
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WarrantyType
- Returns:
- Warranty type
-
getFunctionalLocationLabelName
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: FunctionalLocationLabelName
- Returns:
- Functional Location Label
-
getMasterWarranty
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: MasterWarranty
- Returns:
- Master warranty number
-
getWarrantyStartDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: WarrantyStartDate
- Returns:
- Warranty Date
-
getWarrantyEndDate
Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: WarrantyEndDate
- Returns:
- Date on which the warranty ends
-
getWrntyIsInhtdFromSuperiorObject
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WrntyIsInhtdFromSuperiorObject
- Returns:
- Indicator, Whether Technical Object Should Inherit Warranty
-
getWrntyIsPassedOnToChildObject
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: WrntyIsPassedOnToChildObject
- Returns:
- Indicator: Pass on Warranty
-
toString
- Overrides:
toStringin classVdmObject<FunctionalLocationWarranty>
-
equals
- Overrides:
equalsin classVdmEntity<FunctionalLocationWarranty>
-
canEqual
- Overrides:
canEqualin classVdmEntity<FunctionalLocationWarranty>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<FunctionalLocationWarranty>
-