public class RandomResultSetStarTable extends RandomStarTable
ResultSet.
Such results sets have a type of
ResultSet.TYPE_SCROLL_* and are generally produced from
by using a Statement which has been constructed using corresponding type.
This implementation is thread-safe.| Constructor and Description |
|---|
RandomResultSetStarTable(java.sql.ResultSet rset)
Constructor.
|
RandomResultSetStarTable(StarResultSet srset)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
The AbstractStarTable implementation of this method
does nothing.
|
java.lang.Object |
getCell(long lrow,
int icol)
Implementations of this method must be safe for concurrent calls
from multiple threads.
|
java.util.List<ValueInfo> |
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.
|
java.lang.Object[] |
getRow(long lrow)
The AbstractStarTable implementation of this method
constructs a row by repeated invocation of
AbstractStarTable.getCell(long, int). |
long |
getRowCount()
Implementations must supply a non-negative return value.
|
getRowAccess, getRowSequence, isRandomcheckedLongToInt, getName, getParameters, getRowSplittable, getURL, setName, setParameters, setURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterByName, setParameterpublic RandomResultSetStarTable(java.sql.ResultSet rset)
throws java.sql.SQLException
rset - result set containing datajava.lang.IllegalArgumentException - if rset is not
random accessjava.sql.SQLExceptionpublic RandomResultSetStarTable(StarResultSet srset)
srset - result set containing datajava.lang.IllegalArgumentException - if srset is not
random accesspublic 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()
RandomStarTablegetRowCount in interface StarTablegetRowCount in class RandomStarTablepublic java.util.List<ValueInfo> getColumnAuxDataInfos()
AbstractStarTablegetColumnAuxDataInfos in interface StarTablegetColumnAuxDataInfos in class AbstractStarTableDefaultValueInfo.getAuxData()public java.lang.Object getCell(long lrow,
int icol)
throws java.io.IOException
RandomStarTablegetCell in interface StarTablegetCell in class RandomStarTablelrow - the index of the cell's rowicol - the index of the cell's columnjava.io.IOException - if there is an error reading the datapublic java.lang.Object[] getRow(long lrow)
throws java.io.IOException
AbstractStarTableAbstractStarTable.getCell(long, int).getRow in interface StarTablegetRow in class AbstractStarTablelrow - the index of the row to retrievejava.io.IOException - if there is an error reading the datapublic void close()
throws java.io.IOException
AbstractStarTableclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface StarTableclose in class AbstractStarTablejava.io.IOException