Package com.sap.cds.services.changeset
Interface ChangeSetContextAccessor
public interface ChangeSetContextAccessor
Interface to access
ChangeSetContext objects. It's preferred to use it via ChangeSetContext.getCurrent().
The implementation of the factory is loaded via ExtendedServiceLoader and is therefore pluggable.-
Method Summary
Modifier and TypeMethodDescriptionGives access to the currently activeChangeSetContext.booleanisActive()
-
Method Details
-
isActive
boolean isActive()- Returns:
- true, if a
ChangeSetContextis currently active
-
getCurrent
ChangeSetContext getCurrent()Gives access to the currently activeChangeSetContext. If noChangeSetContextis currently opened this method will returnnull- Returns:
- the currently active
ChangeSetContextornull.
-