uk.org.ogsadai.activity.sql.parameters
Interface ParameterInput

All Known Implementing Classes:
ResultSetInput, StreamInput, ValueInput

public interface ParameterInput

Interface for classes managing input to a parameterised SQL statement.

Author:
The OGSA-DAI Project Team.

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 values have all been provided.
 

Method Detail

initialise

public void initialise(int position,
                       ActivityContext context)
                throws ParameterSetupException
Optionally initialise a parameter using the current activity context. Useful if the activity receives its values from another activity's output.

Parameters:
position - Current position of this parameter
context - Activity context
Throws:
ParameterSetupException - If some error occurs due to the client's settings.

getNextObject

public java.lang.Object getNextObject()
                               throws java.util.NoSuchElementException,
                                      ParameterAccessException
Get the next value for the parameter.

Throws:
java.util.NoSuchElementException - If there are no more values.
ParameterAccessException - If a problem occurs.

isDone

public boolean isDone()
Indicates whether the values have all been provided.

Returns:
true if so and false otherwise.