public class SequentialResultSetStarTable extends AbstractStarTable
ResultSet.
It can read through the data once, and no more.
Beware: it therefore breaks the general contract of
StarTable, in that calls of
getRowSequence() after the first one will throw a
UnrepeatableSequenceException.
Only use this class if you know that the table needs to be read once only.
| Constructor and Description |
|---|
SequentialResultSetStarTable(java.sql.ResultSet rset)
Constructor.
|
SequentialResultSetStarTable(StarResultSet srset)
Constructs from a StarResultSet.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getColumnAuxDataInfos()
Goes through the table columns (ColumnInfo objects)
and picks out all the AuxData items which exist, generalising
where necessary and returning a union of them in
alphabetical order by name.
|
int |
getColumnCount()
Returns the number of columns in this table.
|
ColumnInfo |
getColumnInfo(int icol)
Returns the object describing the data in a given column.
|
java.sql.ResultSet |
getResultSet()
Returns the result set on which this table is built.
|
long |
getRowCount()
Returns the number of rows in this table, if known.
|
RowSequence |
getRowSequence()
The first time it is called, returns an iterator over the rows of the
result set.
|
checkedLongToInt, getCell, getName, getParameterByName, getParameters, getRow, getURL, isRandom, setName, setParameter, setParameters, setURLpublic SequentialResultSetStarTable(java.sql.ResultSet rset)
throws java.sql.SQLException
rset - result set containing data - should be positioned at startjava.sql.SQLExceptionpublic SequentialResultSetStarTable(StarResultSet srset)
srset - result set containing data - should be positioned at startpublic java.sql.ResultSet getResultSet()
public int getColumnCount()
StarTablegetColumnCount in interface StarTablegetColumnCount in class AbstractStarTablepublic ColumnInfo getColumnInfo(int icol)
StarTablegetColumnInfo in interface StarTablegetColumnInfo in class AbstractStarTableicol - the column for which header information is requiredpublic long getRowCount()
StarTablegetRowCount in interface StarTablegetRowCount in class AbstractStarTablepublic java.util.List getColumnAuxDataInfos()
AbstractStarTablegetColumnAuxDataInfos in interface StarTablegetColumnAuxDataInfos in class AbstractStarTableColumnInfo.getAuxData()public RowSequence getRowSequence() throws UnrepeatableSequenceException, java.io.IOException
UnrepeatableSequenceException.getRowSequence in interface StarTablegetRowSequence in class AbstractStarTableUnrepeatableSequenceException - if called more than oncejava.io.IOException - if there is an error providing accessCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.