|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.org.ogsadai.engine.Activity
|
+--uk.org.ogsadai.activity.xmldb.XMLDBActivity
|
+--uk.org.ogsadai.activity.xmldb.XMLBulkLoadActivity
An XMLDBActivity for bulk loading data into a XMLDB
compliant database collection.
| Field Summary | |
static java.lang.String |
ATTRIBUTE_CREATE
|
static java.lang.String |
ELEMENT_FROM_LOCAL
|
static java.lang.String |
ELEMENT_OUTPUT
|
static java.lang.String |
FOOTER
Footer for the XML representation. |
static java.lang.String |
HEADER
Header for the XML representation. |
| Fields inherited from class uk.org.ogsadai.activity.xmldb.XMLDBActivity |
mDataResource, mOutput, mSubCollectionName, mUserCredentials |
| Fields inherited from class uk.org.ogsadai.engine.Activity |
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs |
| Constructor Summary | |
XMLBulkLoadActivity(org.w3c.dom.Element element)
Constructs an instance for the specified Element. |
|
| Method Summary | |
protected void |
initialise()
Initialises the activity prior to processing by retrieving the ConnectionManager, the user credentials and the
activity output from the context. |
void |
processBlock()
Loads a resource into the open collection. |
void |
processFirst()
Starts the processing by opening the collection for bulk loading. |
| Methods inherited from class uk.org.ogsadai.engine.Activity |
cleanUp, connectsTo, getActivityConfiguration, getName, getObservableStatus, getProperties, getStatus, hasActivityConfiguration, hasProperties, setCompleted, setError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String ELEMENT_FROM_LOCAL
public static final java.lang.String ELEMENT_OUTPUT
public static final java.lang.String ATTRIBUTE_CREATE
public static final java.lang.String HEADER
public static final java.lang.String FOOTER
| Constructor Detail |
public XMLBulkLoadActivity(org.w3c.dom.Element element)
throws ActivitySystemException,
ActivityUserException
Element.
element - The activity Element, conforming to
the associated schema.
ActivityUserException - If there is a user problem constructing the
activity.
ActivitySystemException - If there is a system problem constructing the
activity.| Method Detail |
protected void initialise()
throws ActivityUserException
XMLDBActivityConnectionManager, the user credentials and the
activity output from the context.
initialise in class XMLDBActivityActivityUserException - If a user problem prevents the activity from
initialising.public void processFirst()
processFirst in class Activitypublic void processBlock()
processBlock in class XMLDBActivity
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||