|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.activity.Activity | +--uk.org.ogsadai.activity.xmldb.XMLDBActivity | +--uk.org.ogsadai.activity.xmldb.XUpdateStatementActivity
An XMLDBActivity
for performing XUpdate statements on XMLDB
compliant database Collections and specified resources within them.
For information on this activity see the OGSA-DAI user doc:
OGSA-DAI/doc/interaction/activities/xml/xUpdateStatement.html
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private static DAILogger |
LOG
Logger object for logging in this class |
private java.lang.String |
mExpression
The XUpdate expression. |
private java.lang.String |
mResourceID
The resource ID to update or null to update the whole collection. |
Fields inherited from class uk.org.ogsadai.activity.xmldb.XMLDBActivity |
mDataResource, mOutput, mSubCollectionName, mUserCredentials |
Fields inherited from class uk.org.ogsadai.activity.Activity |
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs |
Constructor Summary | |
XUpdateStatementActivity(org.w3c.dom.Element element)
Constructs an XUpdate activity using the specified XML element. |
Method Summary | |
void |
processBlock()
Performs an iteration of the processing of an activity. |
private java.lang.String |
resultsToXML(long modifiedNodes)
Converts the results of the XUpdate execution into an XML string representation. |
private long |
update()
This method executes the XUpdate expression. |
Methods inherited from class uk.org.ogsadai.activity.xmldb.XMLDBActivity |
initialise |
Methods inherited from class uk.org.ogsadai.activity.Activity |
cleanUp, connectsTo, createOutputPipe, getActivityConfiguration, getActivityName, getCause, getName, getObservableStatus, getProperties, getSession, getStatus, hasActivityConfiguration, hasProperties, process, processFirst, setActivityName, setCompleted, setError |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static DAILogger LOG
private java.lang.String mExpression
private java.lang.String mResourceID
Constructor Detail |
public XUpdateStatementActivity(org.w3c.dom.Element element) throws ActivitySpecificationException, ActivityCreationException
element
- Element
to configure the activity with - from
a perform document.
ActivityCreationException
- If there is a problem constructing the activity due to an
implementation error or OGSA-DAI confguration problem.
ActivitySpecificationException
- If there is a problem constructing the activity due to an
invalid setting in element
.
mistake such as an invalid setting.Method Detail |
public void processBlock()
Activity
setCompleted
method to indicate that
processing is complete, or the setError
method if
an error occurs that will prevent the processing from
completing.
processBlock
in class XMLDBActivity
private long update() throws ActivityExecutionException, ActivitySpecificationException
ActivitySpecificationException
- If some problem arises due to incorrect data from the client.
ActivityExecutionException
- If some internal problem arises.private java.lang.String resultsToXML(long modifiedNodes)
<modifiedNodes>N<l/modifiedNodes>
modifiedNodes
- number of modified nodes.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |