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

public class EHSLocationValueHelp extends VdmEntity<EHSLocationValueHelp>
EHS Location

Original entity name from the Odata EDM: C_EHSLocationValueHelpType

  • Field Details

    • ALL_FIELDS

      public static final EHSLocationValueHelpSelectable ALL_FIELDS
      Selector for all available fields of EHSLocationValueHelp.
    • EHS_LOCATION_UUID

      public static final EHSLocationValueHelpField<UUID> EHS_LOCATION_UUID
      Use with available fluent helpers to apply the EHSLocationUUID field to query operations.
    • EHS_LOCATION_NAME_FREE_SRCH

      public static final EHSLocationValueHelpField<String> EHS_LOCATION_NAME_FREE_SRCH
      Use with available fluent helpers to apply the EHSLocationNameFreeSrch field to query operations.
    • EHS_LOCATION_NAME

      public static final EHSLocationValueHelpField<String> EHS_LOCATION_NAME
      Use with available fluent helpers to apply the EHSLocationName field to query operations.
    • EHS_LOCATION_ID_AND_NAME

      public static final EHSLocationValueHelpField<String> EHS_LOCATION_ID_AND_NAME
      Use with available fluent helpers to apply the EHSLocationIDAndName field to query operations.
    • EHS_LOCATION_ID

      public static final EHSLocationValueHelpField<String> EHS_LOCATION_ID
      Use with available fluent helpers to apply the EHSLocationID field to query operations.
    • EHS_LOCATION_TYPE

      public static final EHSLocationValueHelpField<String> EHS_LOCATION_TYPE
      Use with available fluent helpers to apply the EHSLocationType field to query operations.
    • EHS_LOCATION_TYPE_TEXT

      public static final EHSLocationValueHelpField<String> EHS_LOCATION_TYPE_TEXT
      Use with available fluent helpers to apply the EHSLocationType_Text field to query operations.
    • EHS_LOCATION_STATUS

      public static final EHSLocationValueHelpField<String> EHS_LOCATION_STATUS
      Use with available fluent helpers to apply the EHSLocationStatus field to query operations.
    • EHS_LOCATION_STATUS_TEXT

      public static final EHSLocationValueHelpField<String> EHS_LOCATION_STATUS_TEXT
      Use with available fluent helpers to apply the EHSLocationStatus_Text field to query operations.
    • EHS_CLASSIFIER_NAME

      public static final EHSLocationValueHelpField<String> EHS_CLASSIFIER_NAME
      Use with available fluent helpers to apply the EHSClassifierName field to query operations.
    • EHS_LOC_CLASSIFIERS_TEXT

      public static final EHSLocationValueHelpField<String> EHS_LOC_CLASSIFIERS_TEXT
      Use with available fluent helpers to apply the EHSLocClassifiersText field to query operations.
    • GEOGRAPHICAL_LOCATION_LATITUDE

      public static final EHSLocationValueHelpField<BigDecimal> GEOGRAPHICAL_LOCATION_LATITUDE
      Use with available fluent helpers to apply the GeographicalLocationLatitude field to query operations.
    • GEOGRAPHICAL_LOCATION_LONGITUDE

      public static final EHSLocationValueHelpField<BigDecimal> GEOGRAPHICAL_LOCATION_LONGITUDE
      Use with available fluent helpers to apply the GeographicalLocationLongitude field to query operations.
    • TO_LOC_CLASSIFIER_TEXT

      public static final EHSLocationValueHelpLink<EHSLocClassifierText> TO_LOC_CLASSIFIER_TEXT
      Use with available fluent helpers to apply the to_LocClassifierText navigation property to query operations.
  • Constructor Details

    • EHSLocationValueHelp

      public EHSLocationValueHelp()
    • EHSLocationValueHelp

      public EHSLocationValueHelp(@Nullable UUID eHSLocationUUID, @Nullable String eHSLocationNameFreeSrch, @Nullable String eHSLocationName, @Nullable String eHSLocationIDAndName, @Nullable String eHSLocationID, @Nullable String eHSLocationType, @Nullable String eHSLocationType_Text, @Nullable String eHSLocationStatus, @Nullable String eHSLocationStatus_Text, @Nullable String eHSClassifierName, @Nullable String eHSLocClassifiersText, @Nullable BigDecimal geographicalLocationLatitude, @Nullable BigDecimal geographicalLocationLongitude, List<EHSLocClassifierText> toLocClassifierText)
  • Method Details

    • getType

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

      public void setEHSLocationUUID(@Nullable UUID eHSLocationUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: EHSLocationUUID

      Parameters:
      eHSLocationUUID - Location
    • setEHSLocationNameFreeSrch

      public void setEHSLocationNameFreeSrch(@Nullable String eHSLocationNameFreeSrch)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: EHSLocationNameFreeSrch

      Parameters:
      eHSLocationNameFreeSrch - Location
    • setEHSLocationName

      public void setEHSLocationName(@Nullable String eHSLocationName)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: EHSLocationName

      Parameters:
      eHSLocationName - Location
    • setEHSLocationIDAndName

      public void setEHSLocationIDAndName(@Nullable String eHSLocationIDAndName)
      Constraints: Not nullable, Maximum length: 132

      Original property name from the Odata EDM: EHSLocationIDAndName

      Parameters:
      eHSLocationIDAndName - Text (length 132)
    • setEHSLocationID

      public void setEHSLocationID(@Nullable String eHSLocationID)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: EHSLocationID

      Parameters:
      eHSLocationID - ID
    • setEHSLocationType

      public void setEHSLocationType(@Nullable String eHSLocationType)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: EHSLocationType

      Parameters:
      eHSLocationType - Location Type
    • setEHSLocationType_Text

      public void setEHSLocationType_Text(@Nullable String eHSLocationType_Text)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: EHSLocationType_Text

      Parameters:
      eHSLocationType_Text - Location Type Description
    • setEHSLocationStatus

      public void setEHSLocationStatus(@Nullable String eHSLocationStatus)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: EHSLocationStatus

      Parameters:
      eHSLocationStatus - Location Status
    • setEHSLocationStatus_Text

      public void setEHSLocationStatus_Text(@Nullable String eHSLocationStatus_Text)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: EHSLocationStatus_Text

      Parameters:
      eHSLocationStatus_Text - Location Status Description
    • setEHSClassifierName

      public void setEHSClassifierName(@Nullable String eHSClassifierName)
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: EHSClassifierName

      Parameters:
      eHSClassifierName - Location Classifier Name
    • setEHSLocClassifiersText

      public void setEHSLocClassifiersText(@Nullable String eHSLocClassifiersText)
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: EHSLocClassifiersText

      Parameters:
      eHSLocClassifiersText - List of Classifiers (Comma Separated) - short
    • setGeographicalLocationLatitude

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

      Original property name from the Odata EDM: GeographicalLocationLatitude

      Parameters:
      geographicalLocationLatitude - Geographic Latitude
    • setGeographicalLocationLongitude

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

      Original property name from the Odata EDM: GeographicalLocationLongitude

      Parameters:
      geographicalLocationLongitude - Geographic Longitude
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> EHSLocationValueHelpField<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> EHSLocationValueHelpField<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<EHSLocationValueHelp>
    • setServicePathForFetch

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

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

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

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

      @Nonnull public List<EHSLocClassifierText> fetchLocClassifierText()
      Fetches the EHSLocClassifierText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_LocClassifierText.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated EHSLocClassifierText entities. If no entities are associated then an empty list is returned.
      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.
    • getLocClassifierTextOrFetch

      @Nonnull public List<EHSLocClassifierText> getLocClassifierTextOrFetch()
      Retrieval of associated EHSLocClassifierText entities (one to many). This corresponds to the OData navigation property to_LocClassifierText.

      If the navigation property to_LocClassifierText of a queried EHSLocationValueHelp 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 EHSLocClassifierText entities.
      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.
    • getLocClassifierTextIfPresent

      @Nonnull public io.vavr.control.Option<List<EHSLocClassifierText>> getLocClassifierTextIfPresent()
      Retrieval of associated EHSLocClassifierText entities (one to many). This corresponds to the OData navigation property to_LocClassifierText.

      If the navigation property for an entity EHSLocationValueHelp 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_LocClassifierText is already loaded, the result will contain the EHSLocClassifierText entities. If not, an Option with result state empty is returned.
    • setLocClassifierText

      public void setLocClassifierText(@Nonnull List<EHSLocClassifierText> value)
      Overwrites the list of associated EHSLocClassifierText entities for the loaded navigation property to_LocClassifierText.

      If the navigation property to_LocClassifierText of a queried EHSLocationValueHelp 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.

      Parameters:
      value - List of EHSLocClassifierText entities.
    • addLocClassifierText

      public void addLocClassifierText(EHSLocClassifierText... entity)
      Adds elements to the list of associated EHSLocClassifierText entities. This corresponds to the OData navigation property to_LocClassifierText.

      If the navigation property to_LocClassifierText of a queried EHSLocationValueHelp 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.

      Parameters:
      entity - Array of EHSLocClassifierText entities.
    • builder

      @Nonnull public static EHSLocationValueHelp.EHSLocationValueHelpBuilder builder()
    • getEHSLocationUUID

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

      Original property name from the Odata EDM: EHSLocationUUID

      Returns:
      Location
    • getEHSLocationNameFreeSrch

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

      Original property name from the Odata EDM: EHSLocationNameFreeSrch

      Returns:
      Location
    • getEHSLocationName

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

      Original property name from the Odata EDM: EHSLocationName

      Returns:
      Location
    • getEHSLocationIDAndName

      @Nullable public String getEHSLocationIDAndName()
      Constraints: Not nullable, Maximum length: 132

      Original property name from the Odata EDM: EHSLocationIDAndName

      Returns:
      Text (length 132)
    • getEHSLocationID

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

      Original property name from the Odata EDM: EHSLocationID

      Returns:
      ID
    • getEHSLocationType

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

      Original property name from the Odata EDM: EHSLocationType

      Returns:
      Location Type
    • getEHSLocationType_Text

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

      Original property name from the Odata EDM: EHSLocationType_Text

      Returns:
      Location Type Description
    • getEHSLocationStatus

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

      Original property name from the Odata EDM: EHSLocationStatus

      Returns:
      Location Status
    • getEHSLocationStatus_Text

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

      Original property name from the Odata EDM: EHSLocationStatus_Text

      Returns:
      Location Status Description
    • getEHSClassifierName

      @Nullable public String getEHSClassifierName()
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: EHSClassifierName

      Returns:
      Location Classifier Name
    • getEHSLocClassifiersText

      @Nullable public String getEHSLocClassifiersText()
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: EHSLocClassifiersText

      Returns:
      List of Classifiers (Comma Separated) - short
    • getGeographicalLocationLatitude

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

      Original property name from the Odata EDM: GeographicalLocationLatitude

      Returns:
      Geographic Latitude
    • getGeographicalLocationLongitude

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

      Original property name from the Odata EDM: GeographicalLocationLongitude

      Returns:
      Geographic Longitude
    • toString

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

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

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

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