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
.boolean
isActive()
-
Method Details
-
isActive
boolean isActive()- Returns:
- true, if a
ChangeSetContext
is currently active
-
getCurrent
ChangeSetContext getCurrent()Gives access to the currently activeChangeSetContext
. If noChangeSetContext
is currently opened this method will returnnull
- Returns:
- the currently active
ChangeSetContext
ornull
.
-