|
|||||||||||
?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.sql.SQLQueryMultipleActivity | +--uk.org.ogsadai.activity.sql.SQLBagActivity
This activity runs queries over two relational data service resources and merges the results into a single WebRowSet document and sends it back as the output of this activity.
Each one of the above data service resources is linked to the multiple data service resource implemented by the SQLMultipleDataResource
accessor.
The activity's perform document is defined by schema/ogsadai/xsd/activities/sql_bag.xsd
.
The activity calls multiple data service resources each one being executed in its own thread.
For information on this activity see the OGSA-DAI user doc: OGSA-DAI/doc/interaction/activities/relational/sqlBag.html
Field Summary | |
static?java.lang.String |
ACTIVITY_OUTPUT ??????????Constant used to parse request - activity element |
private static?java.lang.String |
COPYRIGHT_NOTICE ??????????Copyright statement |
private static?DAILogger |
LOG ??????????Logger object for this activity |
private ?org.w3c.dom.Element |
mActivityElement ??????????XML element containing activity information from request |
private ?boolean |
mIsAllNull ??????????Check whether all the returned results are null |
private ?boolean |
mIsError ??????????Check whether an error has occured or not |
private ?java.lang.Throwable |
mThrowable ??????????Exception to be forwarded if there is an error and there are no results returned. |
static?java.lang.String |
SQL_STATEMENT ??????????Constant used to parse request - SQL query statement element |
static?java.lang.String |
TIMEOUT ??????????Constant used to parse request - timeout |
Fields inherited from class uk.org.ogsadai.activity.sql.SQLQueryMultipleActivity |
mClientTimeout, mMultipleDS, mOutput, mOutputString, mSqlStatement, mTimeoutStatus, mTimer |
Fields inherited from class uk.org.ogsadai.activity.Activity |
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs |
Constructor Summary | |
SQLBagActivity(org.w3c.dom.Element?element) ??????????? |
Method Summary | |
private ?java.lang.String |
mergeResults(java.lang.String[]?rowsets) ??????????Merge N WebRowSets. |
?void |
processBlock() ??????????Performs an iteration of the processing of an activity. |
Methods inherited from class uk.org.ogsadai.activity.sql.SQLQueryMultipleActivity |
cleanUp, initialise, isTimeout, setTimeout |
Methods inherited from class uk.org.ogsadai.activity.Activity |
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 final DAILogger LOG
private org.w3c.dom.Element mActivityElement
private boolean mIsError
private boolean mIsAllNull
private java.lang.Throwable mThrowable
public static final java.lang.String ACTIVITY_OUTPUT
public static final java.lang.String SQL_STATEMENT
public static final java.lang.String TIMEOUT
Constructor Detail |
public SQLBagActivity(org.w3c.dom.Element?element) throws ActivitySpecificationException, ActivityCreationException
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 Activity
private java.lang.String mergeResults(java.lang.String[]?rowsets) throws XMLDocumentException, XMLParseException
rowsets
- N WebRowSet documentsnull
if there are no documents.XMLDocumentException
- If any of the documents are not valid XMLXMLParseException
- If an internal parsing exception occurs
|
|||||||||||
?PREV CLASS? ?NEXT CLASS | FRAMES ? ?NO FRAMES ? ? | ||||||||||
SUMMARY:?NESTED?|?FIELD?|?CONSTR?|?METHOD | DETAIL:?FIELD?|?CONSTR?|?METHOD |