Xindice API
version 1.2m1

org.apache.xindice.core.xupdate
Class XUpdateImpl

java.lang.Object
  extended byorg.xmldb.xupdate.lexus.XUpdateQueryImpl
      extended byorg.apache.xindice.core.xupdate.XUpdateImpl
All Implemented Interfaces:
Serializable, org.xmldb.common.xml.queries.XUpdateQuery

public class XUpdateImpl
extends org.xmldb.xupdate.lexus.XUpdateQueryImpl

Provides Collection and document based XUpdate capabilities. For more detail about XUpdate look at the XUpdate Working Draft.

Version:
$Revision: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $
See Also:
Serialized Form

Field Summary
protected  int nodesModified
           
protected  NamespaceMap nsMap
           
 
Fields inherited from class org.xmldb.xupdate.lexus.XUpdateQueryImpl
commandConstants, namespace, NAMESPACE_URI, namespaces, query
 
Constructor Summary
XUpdateImpl()
           
 
Method Summary
 void execute(Collection col)
          Execute the set of XUpdate commands against a collection.
 void execute(org.w3c.dom.Node contextNode)
          Execute the XUpdate commands against a document.
 int getModifiedCount()
           
 void setNamespaceMap(NamespaceMap nsMap)
          Set the namespace map to be used when resolving queries
 void setQString(String query)
          Sets the query string to be used when executing update
 
Methods inherited from class org.xmldb.xupdate.lexus.XUpdateQueryImpl
main, setNamespace, setNodeFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodesModified

protected int nodesModified

nsMap

protected NamespaceMap nsMap
Constructor Detail

XUpdateImpl

public XUpdateImpl()
Method Detail

setNamespaceMap

public void setNamespaceMap(NamespaceMap nsMap)
Set the namespace map to be used when resolving queries


setQString

public void setQString(String query)
                throws org.xml.sax.SAXException
Sets the query string to be used when executing update

Throws:
org.xml.sax.SAXException

execute

public void execute(org.w3c.dom.Node contextNode)
             throws Exception
Execute the XUpdate commands against a document.

Throws:
Exception

execute

public void execute(Collection col)
             throws Exception
Execute the set of XUpdate commands against a collection.

Parameters:
col - The collection against which the command will be executed
Throws:
Exception - Description of Exception

getModifiedCount

public int getModifiedCount()

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.