|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.xupdate.Modification
Base class for all XUpdate modifications.
| Field Summary | |
protected DBBroker |
broker
|
protected org.w3c.dom.NodeList |
content
NodeList to keep track of created document fragments within the currently processed XUpdate modification. |
protected DocumentSet |
docs
Documents concerned by this XUpdate modification, i.e. |
protected DocumentSet |
lockedDocuments
|
protected static Logger |
LOG
|
protected java.util.Map |
namespaces
|
protected java.lang.String |
selectStmt
select Statement in the current XUpdate definition; defines the set of nodes to which this XUpdate might apply. |
protected java.util.Map |
variables
|
| Constructor Summary | |
Modification(DBBroker broker,
DocumentSet docs,
java.lang.String selectStmt,
java.util.Map namespaces,
java.util.Map variables)
Constructor for Modification. |
|
| Method Summary | |
protected void |
checkFragmentation(Txn transaction,
DocumentSet docs)
Check if any of the modified documents needs defragmentation. |
protected void |
declareNamespaces(XQueryContext context)
|
protected void |
declareVariables(XQueryContext context)
|
AccessContext |
getAccessContext()
|
abstract java.lang.String |
getName()
|
abstract long |
process(Txn transaction)
Process the modification. |
protected org.w3c.dom.NodeList |
select(DocumentSet docs)
Evaluate the select expression. |
protected StoredNode[] |
selectAndLock()
Acquire a lock on all documents processed by this modification. |
void |
setAccessContext(AccessContext accessCtx)
|
void |
setContent(org.w3c.dom.NodeList nodes)
|
java.lang.String |
toString()
|
protected void |
unlockDocuments()
Release all acquired document locks; feature trigger_update : at the same time we leverage on the fact that it's called after database modification to call the eventual triggers |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final Logger LOG
protected java.lang.String selectStmt
protected org.w3c.dom.NodeList content
XUpdateProcessor#contents
protected DBBroker broker
protected DocumentSet docs
protected java.util.Map namespaces
protected java.util.Map variables
protected DocumentSet lockedDocuments
| Constructor Detail |
public Modification(DBBroker broker,
DocumentSet docs,
java.lang.String selectStmt,
java.util.Map namespaces,
java.util.Map variables)
| Method Detail |
public final void setAccessContext(AccessContext accessCtx)
public final AccessContext getAccessContext()
public abstract long process(Txn transaction)
throws PermissionDeniedException,
LockException,
EXistException,
XPathException
PermissionDeniedException
LockException
EXistException
XPathExceptionpublic abstract java.lang.String getName()
public void setContent(org.w3c.dom.NodeList nodes)
protected org.w3c.dom.NodeList select(DocumentSet docs)
throws PermissionDeniedException,
EXistException,
XPathException
docs -
PermissionDeniedException
EXistException
XPathException
protected void declareVariables(XQueryContext context)
throws XPathException
context -
XPathException
protected void declareNamespaces(XQueryContext context)
throws XPathException
context -
XPathException
protected final StoredNode[] selectAndLock()
throws LockException,
PermissionDeniedException,
EXistException,
XPathException
LockException
PermissionDeniedException
EXistException
XPathExceptionprotected final void unlockDocuments()
protected void checkFragmentation(Txn transaction,
DocumentSet docs)
throws EXistException
docs -
EXistExceptionpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||