public class SQLResultSet extends Object implements org.pentaho.commons.connection.IPentahoResultSet, org.pentaho.commons.connection.IPeekable
Constructor and Description |
---|
SQLResultSet(ResultSet nativeResultSet,
SQLConnection nativeConnection) |
Modifier and Type | Method and Description |
---|---|
void |
beforeFirst() |
void |
close() |
void |
closeConnection() |
void |
dispose() |
int |
getColumnCount()
Returns the column count from the result set.
|
Object[] |
getDataColumn(int column) |
Object[] |
getDataRow(int row) |
org.pentaho.commons.connection.IPentahoMetaData |
getMetaData() |
int |
getRowCount()
Get a rowCount from the resultset.
|
Object |
getValueAt(int row,
int column)
Returns the value of the specified row and the specified column from within the resultset.
|
boolean |
isScrollable() |
org.pentaho.commons.connection.IPentahoResultSet |
memoryCopy()
Attention: It does not clone data! It is create the shallow copy of metadata!
It is create the shallow copy of data.
|
Object[] |
next()
(non-Javadoc)
|
Object[] |
peek() |
void |
setMetaData(org.pentaho.commons.connection.IPentahoMetaData metadata) |
protected Object[] peekRow
public SQLResultSet(ResultSet nativeResultSet, SQLConnection nativeConnection)
public void setMetaData(org.pentaho.commons.connection.IPentahoMetaData metadata)
public org.pentaho.commons.connection.IPentahoMetaData getMetaData()
getMetaData
in interface org.pentaho.commons.connection.IPentahoResultSet
public Object[] peek()
peek
in interface org.pentaho.commons.connection.IPeekable
public Object[] next()
next
in interface org.pentaho.commons.connection.IPentahoResultSet
SQLResultSetException
returns null if no more rows
public void closeConnection()
closeConnection
in interface org.pentaho.commons.connection.IPentahoResultSet
public void close()
close
in interface org.pentaho.commons.connection.IPentahoResultSet
public void dispose()
dispose
in interface org.pentaho.commons.connection.IDisposable
public boolean isScrollable()
isScrollable
in interface org.pentaho.commons.connection.IPentahoResultSet
public int getColumnCount()
getColumnCount
in interface org.pentaho.commons.connection.IPentahoResultSet
public int getRowCount()
getRowCount
in interface org.pentaho.commons.connection.IPentahoResultSet
public Object getValueAt(int row, int column)
getValueAt
in interface org.pentaho.commons.connection.IPentahoResultSet
row
- the row index.column
- the column index.public org.pentaho.commons.connection.IPentahoResultSet memoryCopy()
memoryCopy
in interface org.pentaho.commons.connection.IPentahoResultSet
MemoryResultSet
with same metadatapublic void beforeFirst()
beforeFirst
in interface org.pentaho.commons.connection.IPentahoResultSet
public Object[] getDataColumn(int column)
getDataColumn
in interface org.pentaho.commons.connection.IPentahoResultSet
public Object[] getDataRow(int row)
getDataRow
in interface org.pentaho.commons.connection.IPentahoResultSet
Copyright © 2021 Hitachi Vantara. All rights reserved.