Package com.sap.cds.services.mt
Interface ModelChangedEventContext
- All Superinterfaces:
EventContext
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModelChangedEventContextcreate()Creates anEventContextalready overlaid with this interface.Returns the optional point in time the model changed or is known to have changed.voidsetTimestamp(Instant timestamp) Sets the optional point in time the model changed or is known to have changed.Methods inherited from interface com.sap.cds.services.EventContext
as, get, getAuthenticationInfo, getCdsRuntime, getChangeSetContext, getEvent, getFeatureTogglesInfo, getMessages, getModel, getParameterInfo, getService, getServiceCatalog, getTarget, getUserInfo, isCompleted, keySet, proceed, put, setCompleted
-
Method Details
-
create
Creates anEventContextalready overlaid with this interface. The event is set to beExtensibilityService.EVENT_MODEL_CHANGED- Returns:
- the
ModelChangedEventContext
-
setTimestamp
Sets the optional point in time the model changed or is known to have changed. The timestamp is used to only refresh the cached model in case it was cached previous to the given timestamp. If the timestamp is null, the model is always refreshed.- Parameters:
timestamp- the point in time the model changed or is known to have changed
-
getTimestamp
Instant getTimestamp()Returns the optional point in time the model changed or is known to have changed. The timestamp is used to only refresh the cached model in case it was cached previous to the given timestamp. If the timestamp is null, the model is always refreshed.- Returns:
- the point in time the model changed or is known to have changed
-