</syntaxhighlight>
An XQuery expression will be {{Updateshandled as an [[XQuery Update#Updating expressions|updating}} Updating expression]] if it calls a an updating Java function that is marked as updating. In contrast to XQuery update operations, the Java code will immediately be executed, but the result will be cached as if {{Function|Update|update:output}} was called.
The annotation is particularly helpful if combined with a lock annotation.