public interface UpdateAgentAn UpdateAgent is a callback class that is called to handle a document after it has been updated. Typically the UpdateAgent might take responsibility for writing the updated document back to persistent storage.
void update(NodeInfo node, Controller controller) throws XPathExceptionHandle an updated document. This method is called by
XQueryExpression.runUpdate(DynamicQueryContext, UpdateAgent)once for each document (or more generally, for the root of each tree) that has been modified by the update query.
node- the root of the tree that has been updated
controller- the Controller that was used for executing the query
XPathException- if the callback code cannot handle the updated document