Constructor and Description |
---|
StarResultSet(ResultSet rset)
Constructs a StarResultSet with default type mapping behaviour.
|
StarResultSet(ResultSet rset,
TypeMapper typeMapper)
Constructs a StarResultSet with given type mapping behaviour.
|
Modifier and Type | Method and Description |
---|---|
RowSequence |
createRowSequence()
Returns a sequential RowSequence based on this object.
|
Object |
getCell(int icol)
Returns the object at a given column in the current row of this
result set in a form suitable for use as the content of a
StarTable cell.
|
List<ValueInfo> |
getColumnAuxDataInfos()
Returns an ordered list of
ValueInfo
objects representing the auxilliary metadata returned by
this object's ColumnInfo objects. |
ColumnInfo[] |
getColumnInfos()
Returns the array of column metadata objects corresponding to the
columns in this result set.
|
ResultSet |
getResultSet()
Returns the result set on which this table is based.
|
Object[] |
getRow()
Returns the current row of this result set in a form suitable for use
as the content of a StarTable.
|
long |
getRowCount()
Lazily counts the number of rows in this result set, if it has random
access.
|
boolean |
isRandom()
Indicates whether this result set can be used for random access.
|
void |
setRowIndex(long lrow)
Sets the row index from which subsequent
getCell(int)
and getRow() calls will read. |
public StarResultSet(ResultSet rset) throws SQLException
rset
- result setSQLException
public StarResultSet(ResultSet rset, TypeMapper typeMapper) throws SQLException
rset
- result settypeMapper
- handles conversion of JDBC types to cell typesSQLException
public ResultSet getResultSet()
public ColumnInfo[] getColumnInfos()
public boolean isRandom()
public long getRowCount()
public List<ValueInfo> getColumnAuxDataInfos()
ValueInfo
objects representing the auxilliary metadata returned by
this object's ColumnInfo objects.StarTable.getColumnAuxDataInfos()
public void setRowIndex(long lrow) throws IOException
getCell(int)
and getRow()
calls will read.
Callers may need to worry about synchronization.lrow
- row index (0-based)UnsupportedOperationException
- for non-random result setsIOException
public Object getCell(int icol) throws IOException
icol
- the column to use (first column is 0)IOException
public Object[] getRow() throws IOException
IOException
public RowSequence createRowSequence() throws IOException
IOException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.