|
|||||||||||
| 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.ResultSetInput
Class managing java.sql.ResultSet input to a parameterised SQL statement.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICECopyright statement. |
private int |
mCurrentColumnCurrent column |
private int |
mNumColumnsNumber of columns |
private int |
mPositionPosition of this parameter |
private boolean |
mProcessingIs the ResultSet still providing data (initially true) |
private java.sql.ResultSet |
mResultSetInput to the parameter |
| Constructor Summary | |
ResultSetInput(java.sql.ResultSet resultSet, int numCols)Constructor |
|
| 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 ResultSet 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.sql.ResultSet mResultSet
private int mCurrentColumn
private int mNumColumns
private boolean mProcessing
ResultSet still providing data (initially true)
private int mPosition
| Constructor Detail |
public ResultSetInput(java.sql.ResultSet resultSet,
int numCols)
resultSet - ResultSet containing input for the parameter.numCols - Number of columns in ResultSet| Method Detail |
public void initialise(int position,
ActivityContext context)
throws ParameterSetupException
ParameterInputinitialise in interface ParameterInputposition - Current position of this parametercontext - Activity contextParameterSetupException - If some error occurs due to the client's settings.
public java.lang.Object getNextObject()
throws java.util.NoSuchElementException,
ParameterAccessException
ParameterInputgetNextObject in interface ParameterInputParameterAccessException - If a problem occurs.java.util.NoSuchElementException - If there are no more values.public boolean isDone()
ResultSet is closed.
isDone in interface ParameterInputtrue the ResultSet is closed. i.e. if the all the data has been read.ParameterInput.isDone()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||