java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<FunctionalLocationWarranty>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.functionallocation.FunctionalLocationWarranty

public class FunctionalLocationWarranty extends VdmEntity<FunctionalLocationWarranty>
Functional Location Warranty

Original entity name from the Odata EDM: FunctionalLocationWarrantyType

  • Field Details

    • ALL_FIELDS

      public static final FunctionalLocationWarrantySelectable ALL_FIELDS
      Selector for all available fields of FunctionalLocationWarranty.
    • FUNCTIONAL_LOCATION

      public static final FunctionalLocationWarrantyField<String> FUNCTIONAL_LOCATION
      Use with available fluent helpers to apply the FunctionalLocation field to query operations.
    • WARRANTY_TYPE

      public static final FunctionalLocationWarrantyField<String> WARRANTY_TYPE
      Use with available fluent helpers to apply the WarrantyType field to query operations.
    • FUNCTIONAL_LOCATION_LABEL_NAME

      public static final FunctionalLocationWarrantyField<String> FUNCTIONAL_LOCATION_LABEL_NAME
      Use with available fluent helpers to apply the FunctionalLocationLabelName field to query operations.
    • MASTER_WARRANTY

      public static final FunctionalLocationWarrantyField<String> MASTER_WARRANTY
      Use with available fluent helpers to apply the MasterWarranty field to query operations.
    • WARRANTY_START_DATE

      public static final FunctionalLocationWarrantyField<LocalDateTime> WARRANTY_START_DATE
      Use with available fluent helpers to apply the WarrantyStartDate field to query operations.
    • WARRANTY_END_DATE

      public static final FunctionalLocationWarrantyField<LocalDateTime> WARRANTY_END_DATE
      Use with available fluent helpers to apply the WarrantyEndDate field to query operations.
    • WRNTY_IS_INHTD_FROM_SUPERIOR_OBJECT

      public static final FunctionalLocationWarrantyField<String> 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

      public static final FunctionalLocationWarrantyField<String> 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_LOCATION
      Use 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

      @Nonnull public Class<FunctionalLocationWarranty> getType()
      Specified by:
      getType in class VdmObject<FunctionalLocationWarranty>
    • setFunctionalLocation

      public void setFunctionalLocation(@Nullable String functionalLocation)
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: FunctionalLocation

      Parameters:
      functionalLocation - Functional location
    • setWarrantyType

      public void setWarrantyType(@Nullable String warrantyType)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: WarrantyType

      Parameters:
      warrantyType - Warranty type
    • setFunctionalLocationLabelName

      public void setFunctionalLocationLabelName(@Nullable String functionalLocationLabelName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: FunctionalLocationLabelName

      Parameters:
      functionalLocationLabelName - Functional Location Label
    • setMasterWarranty

      public void setMasterWarranty(@Nullable String masterWarranty)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MasterWarranty

      Parameters:
      masterWarranty - Master warranty number
    • setWarrantyStartDate

      public void setWarrantyStartDate(@Nullable LocalDateTime warrantyStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: WarrantyStartDate

      Parameters:
      warrantyStartDate - Warranty Date
    • setWarrantyEndDate

      public void setWarrantyEndDate(@Nullable LocalDateTime warrantyEndDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: WarrantyEndDate

      Parameters:
      warrantyEndDate - Date on which the warranty ends
    • setWrntyIsInhtdFromSuperiorObject

      public void setWrntyIsInhtdFromSuperiorObject(@Nullable String wrntyIsInhtdFromSuperiorObject)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: WrntyIsInhtdFromSuperiorObject

      Parameters:
      wrntyIsInhtdFromSuperiorObject - Indicator, Whether Technical Object Should Inherit Warranty
    • setWrntyIsPassedOnToChildObject

      public void setWrntyIsPassedOnToChildObject(@Nullable String wrntyIsPassedOnToChildObject)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: WrntyIsPassedOnToChildObject

      Parameters:
      wrntyIsPassedOnToChildObject - Indicator: Pass on Warranty
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<FunctionalLocationWarranty>
    • getKey

      @Nonnull protected Map<String,Object> getKey()
      Overrides:
      getKey in class VdmObject<FunctionalLocationWarranty>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<FunctionalLocationWarranty>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<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 field
      fieldName - 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

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<FunctionalLocationWarranty>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<FunctionalLocationWarranty>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<FunctionalLocationWarranty>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<FunctionalLocationWarranty>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<FunctionalLocationWarranty>
    • fetchFunctionalLocation

      @Nullable public FunctionalLocation 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 null if 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

      @Nullable public FunctionalLocation 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

      @Nonnull public io.vavr.control.Option<FunctionalLocation> 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 Option result state will be empty.

      Returns:
      If the information for navigation property to_FunctionalLocation is already loaded, the result will contain the FunctionalLocation entity. If not, an Option with result state empty is returned.
    • setFunctionalLocation

      public void setFunctionalLocation(FunctionalLocation value)
      Overwrites the associated FunctionalLocation entity for the loaded navigation property to_FunctionalLocation.
      Parameters:
      value - New FunctionalLocation entity.
    • builder

    • getFunctionalLocation

      @Nullable public String getFunctionalLocation()
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: FunctionalLocation

      Returns:
      Functional location
    • getWarrantyType

      @Nullable public String getWarrantyType()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: WarrantyType

      Returns:
      Warranty type
    • getFunctionalLocationLabelName

      @Nullable public String getFunctionalLocationLabelName()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: FunctionalLocationLabelName

      Returns:
      Functional Location Label
    • getMasterWarranty

      @Nullable public String getMasterWarranty()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MasterWarranty

      Returns:
      Master warranty number
    • getWarrantyStartDate

      @Nullable public LocalDateTime getWarrantyStartDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: WarrantyStartDate

      Returns:
      Warranty Date
    • getWarrantyEndDate

      @Nullable public LocalDateTime getWarrantyEndDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: WarrantyEndDate

      Returns:
      Date on which the warranty ends
    • getWrntyIsInhtdFromSuperiorObject

      @Nullable public String getWrntyIsInhtdFromSuperiorObject()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: WrntyIsInhtdFromSuperiorObject

      Returns:
      Indicator, Whether Technical Object Should Inherit Warranty
    • getWrntyIsPassedOnToChildObject

      @Nullable public String getWrntyIsPassedOnToChildObject()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: WrntyIsPassedOnToChildObject

      Returns:
      Indicator: Pass on Warranty
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<FunctionalLocationWarranty>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<FunctionalLocationWarranty>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<FunctionalLocationWarranty>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<FunctionalLocationWarranty>