|
|||||||||||
| 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.sql.SQLActivity
|
+--uk.org.ogsadai.activity.sql.SQLBulkLoadRowSetActivity
Performs a bulk load to a database. This will get one row at a time and insert it into a table. It is assumed that the table already exists. If the table name is not specified in the perform document the table name of the first column is used.
| Nested Class Summary |
| Nested classes inherited from class uk.org.ogsadai.activity.sql.SQLActivity |
SQLActivity.ParameterInput, SQLActivity.StreamInput, SQLActivity.ValueInput |
| Field Summary | |
protected int |
mUpdateCount
|
| Fields inherited from class uk.org.ogsadai.activity.sql.SQLActivity |
CREATE_DATABASE, DROP_DATABASE, EXPRESSION, mAllInput, mConnection, mConnectionManager, mCredentials, mExpression, mExpressionInput, mInputStreams, mIsTransaction, mNameToInput, mOpenConnection, mOutput, mStatement, RESULT_STREAM, SQL_PARAMETERS, STORED_PROCEDURE, WEB_ROW_SET_STREAM |
| Fields inherited from class uk.org.ogsadai.engine.Activity |
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs |
| Constructor Summary | |
SQLBulkLoadRowSetActivity(org.w3c.dom.Element element)
Constructor |
|
| Method Summary | |
void |
cleanUp()
This method is called if an error occurred or the activity was terminated. |
protected void |
endProcessing()
This method will complete the processing and tidy up |
protected boolean |
getResult()
This method will try and complete the statement with parameters Then try and execute the query and obtain the resultSet |
void |
initialise()
Completes initialisation of Activity. |
void |
processBlock()
Performs an iteration of the processing of an activity. |
void |
processFirst()
This method is called during the first iteration of processing an activity. |
protected boolean |
startProcessing()
This method will start processing. |
| Methods inherited from class uk.org.ogsadai.activity.sql.SQLActivity |
loadNextExpression, parseCommand, parseResultStream, parseSQLParameters, prepareStatement, setupInputStreamNames |
| Methods inherited from class uk.org.ogsadai.engine.Activity |
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 |
protected int mUpdateCount
| Constructor Detail |
public SQLBulkLoadRowSetActivity(org.w3c.dom.Element element)
throws ActivityUserException,
ActivitySystemException
element - Element containing Statement conforming to schema for a SQLQueryStatement.
It is assumed schema checks have been carried out.
ActivityUserException
ActivitySystemException| Method Detail |
public void initialise()
throws ActivityUserException
SQLActivity
initialise in class SQLActivityActivityUserException - If a user problem prevents the activity from
initialising.
protected boolean startProcessing()
throws ActivityUserException,
ActivitySystemException,
java.sql.SQLException
ActivityUserException
ActivitySystemException
java.sql.SQLException
protected boolean getResult()
throws java.sql.SQLException,
ActivitySystemException,
ActivityUserException
getResult in class SQLActivityActivityUserException
ActivitySystemException
java.sql.SQLExceptionpublic void processFirst()
Activity
processFirst in class Activitypublic void processBlock()
ActivitysetCompleted 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
protected void endProcessing()
throws java.sql.SQLException,
ActivitySystemException
endProcessing in class SQLActivityjava.sql.SQLException
ActivitySystemExceptionpublic void cleanUp()
cleanUp in class Activity
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||