java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<LocationText>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.location.LocationText
All Implemented Interfaces:
VdmEntitySet

public class LocationText extends VdmEntity<LocationText> implements VdmEntitySet
Location Text

Original entity name from the Odata EDM: LocationText_Type

  • Field Details

  • Constructor Details

    • LocationText

      public LocationText()
    • LocationText

      public LocationText(@Nullable UUID locationUUID, @Nullable String language, @Nullable String locationDescription, @Nullable OffsetDateTime localLastChangeDateTime, @Nullable Location to_LocationTP)
  • Method Details

    • getType

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

      public void setLocationUUID(@Nullable UUID locationUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: LocationUUID

      Parameters:
      locationUUID - Internal Location Number (Customer, Supplier, or Plant)
    • setLanguage

      public void setLanguage(@Nullable String language)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Parameters:
      language - Language Key
    • setLocationDescription

      public void setLocationDescription(@Nullable String locationDescription)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: LocationDescription

      Parameters:
      locationDescription - Location Description
    • setLocalLastChangeDateTime

      public void setLocalLastChangeDateTime(@Nullable OffsetDateTime localLastChangeDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: LocalLastChangeDateTime

      Parameters:
      localLastChangeDateTime - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • getEntityCollection

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

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<LocationText>
    • toMapOfFields

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

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<LocationText>
    • getDefaultServicePath

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

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

      @Nonnull public io.vavr.control.Option<Location> getLocationTPIfPresent()
      Retrieval of associated Location entity (one to one). This corresponds to the OData navigation property _LocationTP.

      If the navigation property for an entity LocationText 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 _LocationTP is already loaded, the result will contain the Location entity. If not, an Option with result state empty is returned.
    • setLocationTP

      public void setLocationTP(Location value)
      Overwrites the associated Location entity for the loaded navigation property _LocationTP.
      Parameters:
      value - New Location entity.
    • builder

      @Nonnull public static LocationText.LocationTextBuilder builder()
    • getLocationUUID

      @Nullable public UUID getLocationUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: LocationUUID

      Returns:
      Internal Location Number (Customer, Supplier, or Plant)
    • getLanguage

      @Nullable public String getLanguage()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • getLocationDescription

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

      Original property name from the Odata EDM: LocationDescription

      Returns:
      Location Description
    • getLocalLastChangeDateTime

      @Nullable public OffsetDateTime getLocalLastChangeDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: LocalLastChangeDateTime

      Returns:
      UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<LocationText>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<LocationText>