|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.activity.sql.parameters.StreamInput
Class managing activity stream input to a parameterised SQL statement.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private BlockReader |
mInput
Activity output stream from another activity |
private boolean |
mIsClosed
Is the stream closed (initially false) |
private int |
mPosition
Position of this parameter |
private java.lang.String |
mStreamName
Name of stream of another activity providing the parameter values |
| Constructor Summary | |
StreamInput(BlockReader reader)
Constructor. |
|
StreamInput(java.lang.String streamName)
Constructor This object must be initialised with a ActivityContext using initialise. |
|
| Method Summary | |
java.lang.Object |
getNextObject()
Get the next value for the parameter. |
void |
initialise(int position,
ActivityContext context)
Optionally initialise a parameter using the current activity context. |
boolean |
isDone()
Indicates whether the stream is closed. |
| 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 java.lang.String mStreamName
private BlockReader mInput
private boolean mIsClosed
false)
private int mPosition
| Constructor Detail |
public StreamInput(java.lang.String streamName)
ActivityContext using initialise.
streamName - Name of output stream name of another activity.public StreamInput(BlockReader reader)
reader - Output stream of another activity.| Method Detail |
public java.lang.Object getNextObject()
throws java.util.NoSuchElementException,
ParameterAccessException
ParameterInput
getNextObject in interface ParameterInputParameterAccessException - If a problem occurs.
java.util.NoSuchElementException - If there are no more values.
public void initialise(int position,
ActivityContext context)
throws ParameterSetupException
ParameterInput
initialise in interface ParameterInputposition - Current position of this parametercontext - Activity context
ParameterSetupException - If some error occurs due to the client's settings.public boolean isDone()
isDone in interface ParameterInputtrue if this input stream is closed
i.e. if the last block has been read.ParameterInput.isDone()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||