|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.databrowser.sql.DBJoin
Handles a "Join" across databases.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private static DataTransportMode |
MODE
The mode of the data transfer, here we use BLOCK |
private static TimeoutProperty |
TEN_MINUTE_TIMEOUT
timeout property for a 10 minute timeout |
private static int |
TEN_MINUTES
timeout of the request |
Constructor Summary | |
DBJoin()
|
Method Summary | |
private void |
createTable(DataService service,
DBUpdate createTable)
|
private void |
destroyTable(DataService service,
DBUpdate dropTable)
Destroy a table |
private java.lang.String |
getTableName(DBUpdate update)
Gets the intermediate table name (assumes the SQL statement ends with the table name, e.g. |
java.sql.ResultSet |
join(DBProgressModel pm,
DBJoinParameter params)
Performs a join. |
private DTOutputStream |
launchOutputActivity(SQLQuery query,
WebRowSet webrowset,
DataService service,
Session session)
Launches an output activity which sends the results of a query to an output stream for use in another activity. |
private void |
performBulkLoad(DTOutputStream outputStream,
java.lang.String tableNameTo,
DataService serviceFrom,
DataService serviceTo)
Delivers data from a source data service resource and bulk loads this data into a table at the sink data service resource. |
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 DataTransportMode MODE
private static final int TEN_MINUTES
private static final TimeoutProperty TEN_MINUTE_TIMEOUT
Constructor Detail |
public DBJoin()
Method Detail |
public java.sql.ResultSet join(DBProgressModel pm, DBJoinParameter params) throws java.lang.Exception
pm
- The progress monitorparams
- The join parameters
java.lang.Exception
- if anything goes wrong while executing actions on the
services.private java.lang.String getTableName(DBUpdate update)
update
- The 'DROP TABLE' SQL
private void destroyTable(DataService service, DBUpdate dropTable) throws java.lang.Exception
service
- The service which will run the SQLdropTable
- The SQL to run 'DROP TABLE ...'
java.lang.Exception
- if anything goes wrong while executing the action
on the service.private void createTable(DataService service, DBUpdate createTable) throws java.lang.Exception
service
- The data service which will run the SQLcreateTable
- The SQL to run 'CREATE TABLE ...'
java.lang.Exception
- if anything goes wrong while executing the action
on the service.private DTOutputStream launchOutputActivity(SQLQuery query, WebRowSet webrowset, DataService service, Session session) throws java.lang.Exception
query
- The SQL query activitywebrowset
- The webrowset result convertor activity which contains
the outputservice
- The data service to run the query
java.lang.Exception
- if anything goes wrong while executing the action
on the service.private void performBulkLoad(DTOutputStream outputStream, java.lang.String tableNameTo, DataService serviceFrom, DataService serviceTo) throws java.lang.Exception
outputStream
- The name of the output activitytableNameTo
- The name of the table where the results will be loadedserviceFrom
- The source data service providing data via an output streamserviceTo
- The sink data service performing the loading activity
java.lang.Exception
- if anything goes wrong while executing the action on the
service.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |