org.xmldb.api.modules
Interface XUpdateQueryService
- Configurable, Service
public interface XUpdateQueryService
XUpdateQueryService is a Service that enables the execution of
XUpdate queries within the context of a Collection or against a
single document stored in a collection.
long | update(String commands)- Runs a set of XUpdate operations against the collection.
|
long | updateResource(String id, String commands)- Runs a set of XUpdate operations against a resource stored in a
collection.
|
update
public long update(String commands)
throws XMLDBException Runs a set of XUpdate operations against the collection. All selected
documents are to be updated and stored back to the repository.
commands - The XUpdate commands to use.
- the number of modified nodes.
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.
updateResource
public long updateResource(String id,
String commands)
throws XMLDBException Runs a set of XUpdate operations against a resource stored in a
collection. The resource will be updated in place in the collection.
commands - The XUpdate commands to use.
- the number of modified nodes.
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.