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

public class Location extends VdmEntity<Location>
Location

Original entity name from the Odata EDM: Location

  • Field Details

    • ALL_FIELDS

      public static final LocationSelectable ALL_FIELDS
      Selector for all available fields of Location.
    • LOCATION_UUID

      public static final LocationField<UUID> LOCATION_UUID
      Use with available fluent helpers to apply the LocationUUID field to query operations.
    • LOCATION_NAME

      public static final LocationField<String> LOCATION_NAME
      Use with available fluent helpers to apply the LocationName field to query operations.
    • LOCATION_TYPE

      public static final LocationField<String> LOCATION_TYPE
      Use with available fluent helpers to apply the LocationType field to query operations.
    • LOCATION_LATITUDE

      public static final LocationField<BigDecimal> LOCATION_LATITUDE
      Use with available fluent helpers to apply the LocationLatitude field to query operations.
    • LOCATION_LONGTITUDE

      public static final LocationField<BigDecimal> LOCATION_LONGTITUDE
      Use with available fluent helpers to apply the LocationLongtitude field to query operations.
  • Constructor Details

    • Location

      public Location()
    • Location

      public Location(@Nullable UUID locationUUID, @Nullable String locationName, @Nullable String locationType, @Nullable BigDecimal locationLatitude, @Nullable BigDecimal locationLongtitude)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: LocationUUID

      Parameters:
      locationUUID - Location Global Identification
    • setLocationName

      public void setLocationName(@Nullable String locationName)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: LocationName

      Parameters:
      locationName - Location Name
    • setLocationType

      public void setLocationType(@Nullable String locationType)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: LocationType

      Parameters:
      locationType - Location Type
    • setLocationLatitude

      public void setLocationLatitude(@Nullable BigDecimal locationLatitude)
      Constraints: Not nullable, Precision: 15, Scale: 12

      Original property name from the Odata EDM: LocationLatitude

      Parameters:
      locationLatitude - Geo Location for Latitude
    • setLocationLongtitude

      public void setLocationLongtitude(@Nullable BigDecimal locationLongtitude)
      Constraints: Not nullable, Precision: 15, Scale: 12

      Original property name from the Odata EDM: LocationLongtitude

      Parameters:
      locationLongtitude - Geo Location for Longtitude
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> LocationField<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> LocationField<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<Location>
    • setServicePathForFetch

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<Location>
    • builder

      @Nonnull public static Location.LocationBuilder builder()
    • getLocationUUID

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

      Original property name from the Odata EDM: LocationUUID

      Returns:
      Location Global Identification
    • getLocationName

      @Nullable public String getLocationName()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: LocationName

      Returns:
      Location Name
    • getLocationType

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

      Original property name from the Odata EDM: LocationType

      Returns:
      Location Type
    • getLocationLatitude

      @Nullable public BigDecimal getLocationLatitude()
      Constraints: Not nullable, Precision: 15, Scale: 12

      Original property name from the Odata EDM: LocationLatitude

      Returns:
      Geo Location for Latitude
    • getLocationLongtitude

      @Nullable public BigDecimal getLocationLongtitude()
      Constraints: Not nullable, Precision: 15, Scale: 12

      Original property name from the Odata EDM: LocationLongtitude

      Returns:
      Geo Location for Longtitude
    • toString

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

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

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

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