Class VdmEntity<EntityT>
java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<EntityT>
- Type Parameters:
EntityT
- The entity type.
Base class for an OData entity.
-
Field Summary
Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static <EntityT> SimpleProperty<EntityT>
all()
Select all properties of an entity.protected boolean
boolean
protected String
Used by request builders and navigation property methods to construct OData requests.protected abstract String
Used by request builders and navigation property methods to construct OData requests.io.vavr.control.Option<String>
Getter for the version identifier of this entity.int
hashCode()
void
setVersionIdentifier
(String versionIdentifier) Setter for the version identifier of this entity.Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
fromMap, getAnnotationProperties, getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getKey, getOdataType, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, getType, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfFields, toMapOfNavigationProperties, toString
-
Constructor Details
-
VdmEntity
public VdmEntity()
-
-
Method Details
-
all
Select all properties of an entity.- Type Parameters:
EntityT
- The entity type.- Returns:
- A selector for all entity fields.
-
getVersionIdentifier
Getter for the version identifier of this entity.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.
- Returns:
- The version identifier.
-
setVersionIdentifier
Setter for the version identifier of this entity.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.
- Parameters:
versionIdentifier
- The version identifier of this entity.
-
getEntityCollection
Used by request builders and navigation property methods to construct OData requests.- Returns:
- EDMX name of the entity collection identifier.
-
getDefaultServicePath
Used by request builders and navigation property methods to construct OData requests.- Returns:
- Default context path to the OData service. In other words, everything in between the
protocol://hostname:port
and the OData resource name (entity set,$metadata
, etc.)
-
equals
-
canEqual
-
hashCode
public int hashCode()
-