|
|||||||||||
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.ParameterList
Class managing input to all the parameters of a parameterised SQL statement.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private int |
mClosedStreams
Number of these that take their inputs from streams (those are not ValueInput s and that are closed). |
private boolean |
mFinishedProcessing
Have all parameters produced all their values (default false ). |
private int |
mNumStreams
Number of these that take their inputs from streams (those that are not ValueInput s). |
private ParameterInput[] |
mParameters
Parameter list |
Constructor Summary | |
ParameterList(int length)
Constructs a new parameter list. |
Method Summary | |
boolean |
allStreamsClosed()
Indicates whether all parameters that receive their inputs from streams are closed - all parameters have provided all their values. |
void |
countNumStreams()
Count the number of parameters that receive their inputs from streams and store this value. |
int |
getLength()
Gets the length of this parameter list. |
ParameterInput |
getParameter(int i)
Gets the parameter at a specific position |
java.lang.Object |
getParameterObject(int i)
Returns the next value of a specific parameter |
void |
initialise(ActivityContext context)
Initialises the parameters in this list. |
void |
setParameter(int i,
ParameterInput parameter)
Sets a specific parameter. |
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 ParameterInput[] mParameters
private int mNumStreams
ValueInput
s).
private int mClosedStreams
ValueInput
s and that are closed).
private boolean mFinishedProcessing
false
).
Constructor Detail |
public ParameterList(int length)
length
.
length
- Length of the parameter listMethod Detail |
public void initialise(ActivityContext context) throws MissingParametersException, ParameterSetupException
context
- Activity context
MissingParametersException
- If a parameter in the list is null
.
ParameterSetupException
- If there is a problem when initialising a parameter.public boolean allStreamsClosed() throws MissingParametersException
true
if all parameters have provided all
their values.
MissingParametersException
- If a stream-based parameter has not provided all its values
but others have.public ParameterInput getParameter(int i)
i
- Position
public java.lang.Object getParameterObject(int i) throws ParameterAccessException
i
- Position of the parameter in the list
null
if the parameter input
was closed.
ParameterAccessException
- If there was a problem encountered when accessing the
values.public void setParameter(int i, ParameterInput parameter)
i
- Positionparameter
- Parameterpublic int getLength()
public void countNumStreams()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |