|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.jdbc.StarResultSet
public class StarResultSet
Wraps the ResultSet
class to provide the functions which
are required to provide StarTable
functionality.
Constructor Summary | |
---|---|
StarResultSet(java.sql.ResultSet rset)
Constructs a StarResultSet with default type mapping behaviour. |
|
StarResultSet(java.sql.ResultSet rset,
TypeMapper typeMapper)
Constructs a StarResultSet with given type mapping behaviour. |
Method Summary | |
---|---|
RowSequence |
createRowSequence()
Returns a sequential RowSequence based on this object. |
java.lang.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. |
java.util.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. |
java.sql.ResultSet |
getResultSet()
Returns the result set on which this table is based. |
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StarResultSet(java.sql.ResultSet rset) throws java.sql.SQLException
rset
- result set
java.sql.SQLException
public StarResultSet(java.sql.ResultSet rset, TypeMapper typeMapper) throws java.sql.SQLException
rset
- result settypeMapper
- handles conversion of JDBC types to cell types
java.sql.SQLException
Method Detail |
---|
public java.sql.ResultSet getResultSet()
public ColumnInfo[] getColumnInfos()
public boolean isRandom()
public long getRowCount()
public java.util.List<ValueInfo> getColumnAuxDataInfos()
ValueInfo
objects representing the auxilliary metadata returned by
this object's ColumnInfo objects.
StarTable.getColumnAuxDataInfos()
public void setRowIndex(long lrow) throws java.io.IOException
getCell(int)
and getRow()
calls will read.
Callers may need to worry about synchronization.
lrow
- row index (0-based)
java.lang.UnsupportedOperationException
- for non-random result sets
java.io.IOException
public java.lang.Object getCell(int icol) throws java.io.IOException
icol
- the column to use (first column is 0)
java.io.IOException
public java.lang.Object[] getRow() throws java.io.IOException
java.io.IOException
public RowSequence createRowSequence() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |