net.cfoster.sedna
Interface SednaUpdateService

All Superinterfaces:
Configurable, Service

public interface SednaUpdateService
extends Service

SednaUpdateService is a simple Service which allows you to execute UPDATE statements against the Database.

For example

UPDATE
insert <warning>High Blood Pressure!</warning>
preceeding doc("hospital")//blood_pressure[systolic>180]

This class can also be used for any kind of general update / insert / administrative statements, e.g.

LOAD "http://www.example.org/very-large-document.xml" "very-large-document.xml"

Or even

LOAD MODULE "ftp://xquery-masters.com/latest-cool-functions.xqlib", "http://example.org/company-functions.xqlib"

This interface class is proprietary to the Sedna XML:DB API and is not part of the original XML:DB specification.

Since:
Sedna XML:DB 1.0

Field Summary
static java.lang.String SERVICE_NAME
           
 
Method Summary
 void update(java.lang.String updateStatement)
          Execute an update statement against the Sedna database.
 
Methods inherited from interface org.xmldb.api.base.Service
getName, getVersion, setCollection
 
Methods inherited from interface org.xmldb.api.base.Configurable
getProperty, setProperty
 

Field Detail

SERVICE_NAME

static final java.lang.String SERVICE_NAME
See Also:
Constant Field Values
Method Detail

update

void update(java.lang.String updateStatement)
            throws XMLDBException
Execute an update statement against the Sedna database. Here you can use Sedna's update language or create something like a XQuery trigger. Unlike XPathQueryService and XQueryService, this method updates against the entire database. The syntax of the Sedna Update statement is not changed. One must be explicit with collection() and/or document() functions.

Parameters:
updateStatement - the statement to send to the server to perform an update.
Throws:
XMLDBException
Since:
Sedna XML:DB 1.0