Modifier and Type | Class and Description |
---|---|
static class |
Location.LocationBuilder |
Modifier and Type | Field and Description |
---|---|
static LocationSelectable |
ALL_FIELDS
Selector for all available fields of Location.
|
static LocationField<BigDecimal> |
LOCATION_LATITUDE
Use with available fluent helpers to apply the LocationLatitude field to query operations.
|
static LocationField<BigDecimal> |
LOCATION_LONGTITUDE
Use with available fluent helpers to apply the LocationLongtitude field to query operations.
|
static LocationField<String> |
LOCATION_NAME
Use with available fluent helpers to apply the LocationName field to query operations.
|
static LocationField<String> |
LOCATION_TYPE
Use with available fluent helpers to apply the LocationType field to query operations.
|
static LocationField<UUID> |
LOCATION_UUID
Use with available fluent helpers to apply the LocationUUID field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
Location() |
Location(UUID locationUUID,
String locationName,
String locationType,
BigDecimal locationLatitude,
BigDecimal locationLongtitude) |
Modifier and Type | Method and Description |
---|---|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static Location.LocationBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static <T> LocationField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
protected String |
getDefaultServicePath()
Used by fluent helpers and navigation property methods to construct OData queries.
|
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection()
Used by fluent helpers and navigation property methods to construct OData queries.
|
protected Map<String,Object> |
getKey() |
BigDecimal |
getLocationLatitude()
Constraints: Not nullable, Precision: 15, Scale: 12
|
BigDecimal |
getLocationLongtitude()
Constraints: Not nullable, Precision: 15, Scale: 12
|
String |
getLocationName()
Constraints: Not nullable, Maximum length: 60
|
String |
getLocationType()
Constraints: Not nullable, Maximum length: 40
|
UUID |
getLocationUUID()
(Key Field) Constraints: Not nullable
|
Class<Location> |
getType() |
int |
hashCode() |
void |
setLocationLatitude(BigDecimal locationLatitude)
Constraints: Not nullable, Precision: 15, Scale: 12
|
void |
setLocationLongtitude(BigDecimal locationLongtitude)
Constraints: Not nullable, Precision: 15, Scale: 12
|
void |
setLocationName(String locationName)
Constraints: Not nullable, Maximum length: 60
|
void |
setLocationType(String locationType)
Constraints: Not nullable, Maximum length: 40
|
void |
setLocationUUID(UUID locationUUID)
(Key Field) Constraints: Not nullable
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
protected Map<String,Object> |
toMapOfFields() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfNavigationProperties
public static final LocationSelectable ALL_FIELDS
public static final LocationField<UUID> LOCATION_UUID
public static final LocationField<String> LOCATION_NAME
public static final LocationField<String> LOCATION_TYPE
public static final LocationField<BigDecimal> LOCATION_LATITUDE
public static final LocationField<BigDecimal> LOCATION_LONGTITUDE
public Location()
public Location(@Nullable UUID locationUUID, @Nullable String locationName, @Nullable String locationType, @Nullable BigDecimal locationLatitude, @Nullable BigDecimal locationLongtitude)
public void setLocationUUID(@Nullable UUID locationUUID)
Original property name from the Odata EDM: LocationUUID
locationUUID
- NodeIDpublic void setLocationName(@Nullable String locationName)
Original property name from the Odata EDM: LocationName
locationName
- Specifies the name of the location.public void setLocationType(@Nullable String locationType)
Original property name from the Odata EDM: LocationType
locationType
- Location Type Descriptionpublic void setLocationLatitude(@Nullable BigDecimal locationLatitude)
Original property name from the Odata EDM: LocationLatitude
You can use this master data to identify the exact position of a location. If you have integrated a map into the Environment, Health, and Safety component, you can use this data to visualize the location's position on the map.
locationLatitude
- Indicates the latitude coordinate of a geographical location according to standard WGS 84.public void setLocationLongtitude(@Nullable BigDecimal locationLongtitude)
Original property name from the Odata EDM: LocationLongtitude
You can use this master data to identify the exact position of a location. If you have integrated a map into the SAP Environment, Health, and Safety component, you can use this data to visualize the location's position on the map.
locationLongtitude
- Indicates the longitude coordinate of a geographical location according to standard WGS 84.protected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<Location>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<Location>
@Nonnull public static <T> LocationField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
T
- The type of the extension field when performing value comparisons.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.@Nonnull public static <T,DomainT> LocationField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<Location>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<Location>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
VdmEntity
Note: Use with caution, as this can easily break the fetch calls on this entity. See the interface of the corresponding service for the default service path.
attachToService
in class VdmEntity<Location>
servicePath
- Optional parameter. New service path to apply to this entity and any associated entities that were
previously fetched. If a null value is provided and the service path has never been set, then the
service path will be set to the default defined in the corresponding service interface.destination
- New destination to apply to this entity and any associated entities that were previously fetched.protected String getDefaultServicePath()
VdmEntity
getDefaultServicePath
in class VdmEntity<Location>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)public static Location.LocationBuilder builder()
@Nullable public UUID getLocationUUID()
Original property name from the Odata EDM: LocationUUID
@Nullable public String getLocationName()
Original property name from the Odata EDM: LocationName
@Nullable public String getLocationType()
Original property name from the Odata EDM: LocationType
@Nullable public BigDecimal getLocationLatitude()
Original property name from the Odata EDM: LocationLatitude
You can use this master data to identify the exact position of a location. If you have integrated a map into the Environment, Health, and Safety component, you can use this data to visualize the location's position on the map.
@Nullable public BigDecimal getLocationLongtitude()
Original property name from the Odata EDM: LocationLongtitude
You can use this master data to identify the exact position of a location. If you have integrated a map into the SAP Environment, Health, and Safety component, you can use this data to visualize the location's position on the map.
Copyright © 2020 SAP SE. All rights reserved.