|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.toolkit.activity.RequestComponent | +--uk.org.ogsadai.client.toolkit.activity.Activity | +--uk.org.ogsadai.client.toolkit.activity.delivery.DTOutputStream
This activity exposes data through a data service's get
operations.
It has one input - the data to expose - and no outputs.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
DTOutputStream()
Constructs a request to read file from URL. |
|
DTOutputStream(ActivityOutput input)
Constructs a request to read file from URL. |
Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
DataTransport |
getDataTransport()
Gets an object which can be used to get data from the data service which received the request containing this activity. |
java.sql.ResultSet |
getResultSet()
|
java.sql.ResultSet |
getResultSet(int numberOfRowsToFetch)
Coverts data exposed by this activity into a forward-only java.sql.ResultSet only if the activity
providing input to this activity outputs data in WebRowSet XML
format. |
Session |
getSession()
Gets the session that the request to which this request component belongs has been executed within. |
void |
setInput(ActivityOutput input)
Sets the input of this activity to be the output from another activity that will provide the data to be exposed. |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, setDataService, setSession |
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
Constructor Detail |
public DTOutputStream()
setInput
.
public DTOutputStream(ActivityOutput input)
input
- Output from another activity.
java.lang.IllegalArgumentException
- If input
is null
.Method Detail |
public final void setInput(ActivityOutput input)
input
- Output from another activity.
java.lang.IllegalArgumentException
- If input
is null
.public DataTransport getDataTransport()
DataTransport
object.
java.lang.IllegalStateException
- If invoked before the response for the request containing
this activity has been received.public Session getSession()
RequestComponent
getSession
in class RequestComponent
protected java.lang.String generateXML()
RequestComponent
generateXML
in class Activity
Activity.generateXML()
public java.sql.ResultSet getResultSet() throws StreamDataException, DataFormatException
StreamDataException
DataFormatException
public java.sql.ResultSet getResultSet(int numberOfRowsToFetch) throws StreamDataException, DataFormatException
java.sql.ResultSet
only if the activity
providing input to this activity outputs data in WebRowSet XML
format. The ResultSet
will fetch rows from
this activity server-side on demand.
numberOfRowsToFetch
- Number of rows to fetch from service at a time.
java.lang.IllegalArgumentException
- If numberOfRowsToFetch
is <= 0.
StreamDataException
- If there is a problem when streaming the data from the
service.
DataFormatException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |