public abstract class VdmEntity<EntityT> extends VdmObject<EntityT>
changedOriginalFields
Constructor and Description |
---|
VdmEntity() |
Modifier and Type | Method and Description |
---|---|
protected String |
getEndpointUrl()
Deprecated.
Use
getServicePathForFetch() instead. |
protected abstract String |
getEntityCollection() |
protected String |
getServicePathForFetch()
The service path only used for the fetch commands of this entity.
|
Optional<String> |
getVersionIdentifier()
Getter for the version identifier of this entity.
|
protected void |
setErpConfigContext(ErpConfigContext configContext) |
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setVersionIdentifier(String versionIdentifier)
Setter for the version identifier of this entity.
|
canEqual, equals, fromMap, getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getKey, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, getType, hasCustomField, hasCustomField, hashCode, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfFields, toMapOfNavigationProperties, toString
public Optional<String> getVersionIdentifier()
This identifier can be used to compare this entity with a remote one. As not the whole entity has to be sent this reduces the request overhead.
Actual use cases can be checking whether this entity is still current with regards to the remote entity, and ensuring that a update/delete operation is done on the expected version of the remote entity.
public void setVersionIdentifier(@Nullable String versionIdentifier)
This identifier can be used to compare this entity with a remote one. As not the whole entity has to be sent this reduces the request overhead.
Actual use cases can be checking whether this entity is still current with regards to the remote entity, and ensuring that a update/delete operation is done on the expected version of the remote entity.
versionIdentifier
- The version identifier of this entity.@Deprecated protected String getEndpointUrl()
getServicePathForFetch()
instead.protected abstract String getEntityCollection()
protected void setErpConfigContext(ErpConfigContext configContext)
protected String getServicePathForFetch()
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.
protected void setServicePathForFetch(String servicePathForFetch)
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.
Copyright © 2018 SAP SE. All rights reserved.