Class Location
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: Location_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of Location instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<Location,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty.String<Location>static final SimpleProperty<Location>Selector for all available fields of Location.static final SimpleProperty.DateTime<Location>static final SimpleProperty.String<Location>static final SimpleProperty.DateTime<Location>static final SimpleProperty.NumericDecimal<Location>static final SimpleProperty.NumericDecimal<Location>static final SimpleProperty.Boolean<Location>static final SimpleProperty.DateTime<Location>static final SimpleProperty.String<Location>static final SimpleProperty.String<Location>static final SimpleProperty.String<Location>static final SimpleProperty.DateTime<Location>static final SimpleProperty.String<Location>static final SimpleProperty.Guid<Location>static final SimpleProperty.String<Location>static final SimpleProperty.String<Location>static final SimpleProperty.Boolean<Location>static final SimpleProperty.String<Location>static final SimpleProperty.String<Location>static final SimpleProperty.String<Location>static final SimpleProperty.Guid<Location>static final NavigationProperty.Single<Location,LocationAddress> Use with available request builders to apply the _LocationAddressTP navigation property to query operations.static final NavigationProperty.Collection<Location,LocationText> Use with available request builders to apply the _LocationTextTP navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionLocation()Location(UUID locationUUID, String location, String locationType, UUID locationAdditionalUUID, String locationTimeZone, String globalLocationNumber, String locationDUNSNumber, String locationUNCode, String locationIATACode, Double geoCoordinatesLongitudeValue, Double geoCoordinatesLatitudeValue, OffsetDateTime geoCoordsValidityEndDateTime, Boolean geoCoordsAreManuallyChanged, OffsetDateTime creationDateTime, String createdByUser, OffsetDateTime changedDateTime, OffsetDateTime localLastChangeDateTime, String lastChangedByUser, Boolean locationIsTemporary, String isBusinessPurposeCompleted, String addressID, Collection<SAP__Message> _Messages, LocationAddress to_LocationAddressTP, List<LocationText> to_LocationTextTP) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocationTextTP(LocationText... entity) Adds elements to the list of associated LocationText entities.static Location.LocationBuilderbuilder()protected booleanbooleanprotected voidConstraints: Not nullableConstraints: Not nullable, Maximum length: 10Constraints: NullableConstraints: Not nullable, Maximum length: 12Constraints: Nullable, Precision: 7protected Stringprotected StringConstraints: Not nullableConstraints: Not nullableConstraints: Not nullableConstraints: NullableConstraints: Not nullable, Maximum length: 13Constraints: Not nullable, Maximum length: 1protected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 12Constraints: NullableConstraints: Not nullable, Maximum length: 20Constraints: Nullableio.vavr.control.Option<LocationAddress>Retrieval of associated LocationAddress entity (one to one).Constraints: Not nullable, Maximum length: 13Constraints: Not nullable, Maximum length: 3Constraints: Not nullableio.vavr.control.Option<List<LocationText>>Retrieval of associated LocationText entities (one to many).Constraints: Not nullable, Maximum length: 6Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 5(Key Field) Constraints: Not nullablegetType()Action that can be applied to any entity object of this class.inthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetAddressID(String addressID) Constraints: Not nullable, Maximum length: 10voidsetChangedDateTime(OffsetDateTime changedDateTime) Constraints: NullablevoidsetCreatedByUser(String createdByUser) Constraints: Not nullable, Maximum length: 12voidsetCreationDateTime(OffsetDateTime creationDateTime) Constraints: Nullable, Precision: 7voidsetGeoCoordinatesLatitudeValue(Double geoCoordinatesLatitudeValue) Constraints: Not nullablevoidsetGeoCoordinatesLongitudeValue(Double geoCoordinatesLongitudeValue) Constraints: Not nullablevoidsetGeoCoordsAreManuallyChanged(Boolean geoCoordsAreManuallyChanged) Constraints: Not nullablevoidsetGeoCoordsValidityEndDateTime(OffsetDateTime geoCoordsValidityEndDateTime) Constraints: NullablevoidsetGlobalLocationNumber(String globalLocationNumber) Constraints: Not nullable, Maximum length: 13voidsetIsBusinessPurposeCompleted(String isBusinessPurposeCompleted) Constraints: Not nullable, Maximum length: 1voidsetLastChangedByUser(String lastChangedByUser) Constraints: Not nullable, Maximum length: 12voidsetLocalLastChangeDateTime(OffsetDateTime localLastChangeDateTime) Constraints: NullablevoidsetLocation(String location) Constraints: Not nullable, Maximum length: 20voidsetLocationAdditionalUUID(UUID locationAdditionalUUID) Constraints: NullablevoidOverwrites the associated LocationAddress entity for the loaded navigation property _LocationAddressTP.voidsetLocationDUNSNumber(String locationDUNSNumber) Constraints: Not nullable, Maximum length: 13voidsetLocationIATACode(String locationIATACode) Constraints: Not nullable, Maximum length: 3voidsetLocationIsTemporary(Boolean locationIsTemporary) Constraints: Not nullablevoidsetLocationTextTP(List<LocationText> value) Overwrites the list of associated LocationText entities for the loaded navigation property _LocationTextTP.voidsetLocationTimeZone(String locationTimeZone) Constraints: Not nullable, Maximum length: 6voidsetLocationType(String locationType) Constraints: Not nullable, Maximum length: 4voidsetLocationUNCode(String locationUNCode) Constraints: Not nullable, Maximum length: 5voidsetLocationUUID(UUID locationUUID) (Key Field) Constraints: Not nullabletoString()Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
getAnnotationProperties, getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of Location. -
LOCATION_UUID
-
LOCATION
-
LOCATION_TYPE
-
LOCATION_ADDITIONAL_UUID
-
LOCATION_TIME_ZONE
-
GLOBAL_LOCATION_NUMBER
-
LOCATION_DUNS_NUMBER
-
LOCATION_UN_CODE
-
LOCATION_IATA_CODE
-
GEO_COORDINATES_LONGITUDE_VALUE
-
GEO_COORDINATES_LATITUDE_VALUE
-
GEO_COORDS_VALIDITY_END_DATE_TIME
-
GEO_COORDS_ARE_MANUALLY_CHANGED
-
CREATION_DATE_TIME
-
CREATED_BY_USER
-
CHANGED_DATE_TIME
-
LOCAL_LAST_CHANGE_DATE_TIME
-
LAST_CHANGED_BY_USER
-
LOCATION_IS_TEMPORARY
-
IS_BUSINESS_PURPOSE_COMPLETED
-
ADDRESS_ID
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__LOCATION_ADDRESS_TP
Use with available request builders to apply the _LocationAddressTP navigation property to query operations. -
TO__LOCATION_TEXT_TP
Use with available request builders to apply the _LocationTextTP navigation property to query operations.
-
-
Constructor Details
-
Location
public Location() -
Location
public Location(@Nullable UUID locationUUID, @Nullable String location, @Nullable String locationType, @Nullable UUID locationAdditionalUUID, @Nullable String locationTimeZone, @Nullable String globalLocationNumber, @Nullable String locationDUNSNumber, @Nullable String locationUNCode, @Nullable String locationIATACode, @Nullable Double geoCoordinatesLongitudeValue, @Nullable Double geoCoordinatesLatitudeValue, @Nullable OffsetDateTime geoCoordsValidityEndDateTime, @Nullable Boolean geoCoordsAreManuallyChanged, @Nullable OffsetDateTime creationDateTime, @Nullable String createdByUser, @Nullable OffsetDateTime changedDateTime, @Nullable OffsetDateTime localLastChangeDateTime, @Nullable String lastChangedByUser, @Nullable Boolean locationIsTemporary, @Nullable String isBusinessPurposeCompleted, @Nullable String addressID, @Nullable Collection<SAP__Message> _Messages, @Nullable LocationAddress to_LocationAddressTP, List<LocationText> to_LocationTextTP)
-
-
Method Details
-
getType
-
setLocationUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: LocationUUID
- Parameters:
locationUUID- Internal Location Number (Customer, Supplier, or Plant)
-
setLocation
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: Location
- Parameters:
location- Location
-
setLocationType
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: LocationType
- Parameters:
locationType- Location Type
-
setLocationAdditionalUUID
Constraints: NullableOriginal property name from the Odata EDM: LocationAdditionalUUID
- Parameters:
locationAdditionalUUID- Location UUID
-
setLocationTimeZone
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: LocationTimeZone
- Parameters:
locationTimeZone- Time Zone
-
setGlobalLocationNumber
Constraints: Not nullable, Maximum length: 13Original property name from the Odata EDM: GlobalLocationNumber
- Parameters:
globalLocationNumber- Global Location Number
-
setLocationDUNSNumber
Constraints: Not nullable, Maximum length: 13Original property name from the Odata EDM: LocationDUNSNumber
- Parameters:
locationDUNSNumber- DUNS+4 Number
-
setLocationUNCode
Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: LocationUNCode
- Parameters:
locationUNCode- United Nations Code for Trade and Transport Locations
-
setLocationIATACode
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: LocationIATACode
- Parameters:
locationIATACode- International Air Transport Association Location Identifier
-
setGeoCoordinatesLongitudeValue
Constraints: Not nullableOriginal property name from the Odata EDM: GeoCoordinatesLongitudeValue
- Parameters:
geoCoordinatesLongitudeValue- Longitude Specified in GPS Coordinates
-
setGeoCoordinatesLatitudeValue
Constraints: Not nullableOriginal property name from the Odata EDM: GeoCoordinatesLatitudeValue
- Parameters:
geoCoordinatesLatitudeValue- Latitude Specified in GPS Coordinates
-
setGeoCoordsValidityEndDateTime
Constraints: NullableOriginal property name from the Odata EDM: GeoCoordsValidityEndDateTime
- Parameters:
geoCoordsValidityEndDateTime- UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
-
setGeoCoordsAreManuallyChanged
Constraints: Not nullableOriginal property name from the Odata EDM: GeoCoordsAreManuallyChanged
- Parameters:
geoCoordsAreManuallyChanged- Manually Changed Geocoordinates
-
setCreationDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Parameters:
creationDateTime- UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun)
-
setCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Parameters:
createdByUser- Name of Person Who Created the Object
-
setChangedDateTime
Constraints: NullableOriginal property name from the Odata EDM: ChangedDateTime
- Parameters:
changedDateTime- UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
-
setLocalLastChangeDateTime
Constraints: NullableOriginal property name from the Odata EDM: LocalLastChangeDateTime
- Parameters:
localLastChangeDateTime- UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
-
setLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Parameters:
lastChangedByUser- Name of Person Who Changed Object
-
setLocationIsTemporary
Constraints: Not nullableOriginal property name from the Odata EDM: LocationIsTemporary
- Parameters:
locationIsTemporary- Temporary Location
-
setIsBusinessPurposeCompleted
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: IsBusinessPurposeCompleted
- Parameters:
isBusinessPurposeCompleted- Business Purpose Completed Flag
-
setAddressID
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: AddressID
- Parameters:
addressID- Address Number
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<Location>
-
getKey
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<Location>
-
fromMap
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<Location>
-
getLocationAddressTPIfPresent
Retrieval of associated LocationAddress entity (one to one). This corresponds to the OData navigation property _LocationAddressTP.If the navigation property for an entity Location has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property _LocationAddressTP is already loaded, the result will
contain the LocationAddress entity. If not, an
Optionwith result stateemptyis returned.
-
setLocationAddressTP
Overwrites the associated LocationAddress entity for the loaded navigation property _LocationAddressTP.- Parameters:
value- New LocationAddress entity.
-
getLocationTextTPIfPresent
Retrieval of associated LocationText entities (one to many). This corresponds to the OData navigation property _LocationTextTP.If the navigation property for an entity Location has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property _LocationTextTP is already loaded, the result will
contain the LocationText entities. If not, an
Optionwith result stateemptyis returned.
-
setLocationTextTP
Overwrites the list of associated LocationText entities for the loaded navigation property _LocationTextTP.If the navigation property _LocationTextTP of a queried Location 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 LocationText entities.
-
addLocationTextTP
Adds elements to the list of associated LocationText entities. This corresponds to the OData navigation property _LocationTextTP.If the navigation property _LocationTextTP of a queried Location 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 LocationText entities.
-
glMnlGeoCoordinatesMaint
Action that can be applied to any entity object of this class.- Returns:
- Action object prepared with the given parameters to be applied to any entity object of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
builder
-
getLocationUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: LocationUUID
- Returns:
- Internal Location Number (Customer, Supplier, or Plant)
-
getLocation
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: Location
- Returns:
- Location
-
getLocationType
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: LocationType
- Returns:
- Location Type
-
getLocationAdditionalUUID
Constraints: NullableOriginal property name from the Odata EDM: LocationAdditionalUUID
- Returns:
- Location UUID
-
getLocationTimeZone
Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: LocationTimeZone
- Returns:
- Time Zone
-
getGlobalLocationNumber
Constraints: Not nullable, Maximum length: 13Original property name from the Odata EDM: GlobalLocationNumber
- Returns:
- Global Location Number
-
getLocationDUNSNumber
Constraints: Not nullable, Maximum length: 13Original property name from the Odata EDM: LocationDUNSNumber
- Returns:
- DUNS+4 Number
-
getLocationUNCode
Constraints: Not nullable, Maximum length: 5Original property name from the Odata EDM: LocationUNCode
- Returns:
- United Nations Code for Trade and Transport Locations
-
getLocationIATACode
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: LocationIATACode
- Returns:
- International Air Transport Association Location Identifier
-
getGeoCoordinatesLongitudeValue
Constraints: Not nullableOriginal property name from the Odata EDM: GeoCoordinatesLongitudeValue
- Returns:
- Longitude Specified in GPS Coordinates
-
getGeoCoordinatesLatitudeValue
Constraints: Not nullableOriginal property name from the Odata EDM: GeoCoordinatesLatitudeValue
- Returns:
- Latitude Specified in GPS Coordinates
-
getGeoCoordsValidityEndDateTime
Constraints: NullableOriginal property name from the Odata EDM: GeoCoordsValidityEndDateTime
- Returns:
- UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
-
getGeoCoordsAreManuallyChanged
Constraints: Not nullableOriginal property name from the Odata EDM: GeoCoordsAreManuallyChanged
- Returns:
- Manually Changed Geocoordinates
-
getCreationDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Returns:
- UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun)
-
getCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Returns:
- Name of Person Who Created the Object
-
getChangedDateTime
Constraints: NullableOriginal property name from the Odata EDM: ChangedDateTime
- Returns:
- UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
-
getLocalLastChangeDateTime
Constraints: NullableOriginal property name from the Odata EDM: LocalLastChangeDateTime
- Returns:
- UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
-
getLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Returns:
- Name of Person Who Changed Object
-
getLocationIsTemporary
Constraints: Not nullableOriginal property name from the Odata EDM: LocationIsTemporary
- Returns:
- Temporary Location
-
getIsBusinessPurposeCompleted
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: IsBusinessPurposeCompleted
- Returns:
- Business Purpose Completed Flag
-
getAddressID
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: AddressID
- Returns:
- Address Number
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getOdataType
- Specified by:
getOdataTypein classVdmObject<Location>
-