|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.xquery.AbstractExpression
org.exist.xquery.update.Modification
| Field Summary | |
protected DocumentSet |
lockedDocuments
|
protected static Logger |
LOG
|
protected Expression |
select
|
protected Expression |
value
|
| Fields inherited from class org.exist.xquery.AbstractExpression |
astNode, context, contextDocSet, contextId |
| Fields inherited from interface org.exist.xquery.Expression |
EXPRESSION_ID_INVALID, IGNORE_CONTEXT, IN_PREDICATE, IN_UPDATE, IN_WHERE_CLAUSE, NO_CONTEXT_ID, SINGLE_STEP_EXECUTION |
| Constructor Summary | |
Modification(XQueryContext context,
Expression select,
Expression value)
|
|
| Method Summary | |
void |
analyze(AnalyzeContextInfo contextInfo)
Statically analyze the expression and its subexpressions. |
protected void |
checkFragmentation(Txn transaction,
DocumentSet docs)
Check if any of the modified documents needs defragmentation. |
protected Sequence |
deepCopy(Sequence inSeq)
|
int |
getCardinality()
The default cardinality is Cardinality.EXACTLY_ONE. |
void |
resetState()
Called to inform an expression that it should reset to its initial state. |
int |
returnsType()
The static return type of the expression. |
protected StoredNode[] |
selectAndLock(NodeSet nodes)
Acquire a lock on all documents processed by this modification. |
protected void |
unlockDocuments()
Release all acquired document locks. |
| Methods inherited from class org.exist.xquery.AbstractExpression |
eval, eval, getASTNode, getContextDocSet, getContextId, getDependencies, getExpressionId, setASTNode, setContextDocSet, setPrimaryAxis |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exist.xquery.Expression |
dump |
| Field Detail |
protected static final Logger LOG
protected final Expression select
protected final Expression value
protected DocumentSet lockedDocuments
| Constructor Detail |
public Modification(XQueryContext context,
Expression select,
Expression value)
context - | Method Detail |
public int getCardinality()
AbstractExpressionCardinality.EXACTLY_ONE.
getCardinality in interface ExpressiongetCardinality in class AbstractExpressionpublic int returnsType()
ExpressionType. If the return type cannot be determined
statically, return Type.ITEM.
returnsType in interface ExpressionreturnsType in class AbstractExpressionpublic void resetState()
Expression
resetState in interface ExpressionresetState in class AbstractExpression
public void analyze(AnalyzeContextInfo contextInfo)
throws XPathException
Expression
XPathException
protected StoredNode[] selectAndLock(NodeSet nodes)
throws LockException,
PermissionDeniedException,
XPathException
LockException
PermissionDeniedException
XPathException
protected Sequence deepCopy(Sequence inSeq)
throws XPathException
XPathExceptionprotected void unlockDocuments()
protected void checkFragmentation(Txn transaction,
DocumentSet docs)
throws EXistException
docs -
EXistException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||