Class SQLResultSet
java.lang.Object
org.pentaho.platform.plugin.services.connections.sql.SQLResultSet
- All Implemented Interfaces:
- org.pentaho.commons.connection.IDisposable,- org.pentaho.commons.connection.IPeekable,- org.pentaho.commons.connection.IPentahoResultSet
public class SQLResultSet
extends Object
implements org.pentaho.commons.connection.IPentahoResultSet, org.pentaho.commons.connection.IPeekable
- Author:
- wseyler TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidclose()voidvoiddispose()intReturns the column count from the result set.Object[]getDataColumn(int column) Object[]getDataRow(int row) org.pentaho.commons.connection.IPentahoMetaDataintGet a rowCount from the resultset.getValueAt(int row, int column) Returns the value of the specified row and the specified column from within the resultset.booleanorg.pentaho.commons.connection.IPentahoResultSetAttention: 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()voidsetMetaData(org.pentaho.commons.connection.IPentahoMetaData metadata) 
- 
Field Details- 
peekRow
 
- 
- 
Constructor Details- 
SQLResultSet
 
- 
- 
Method Details- 
setMetaDatapublic void setMetaData(org.pentaho.commons.connection.IPentahoMetaData metadata) 
- 
getMetaDatapublic org.pentaho.commons.connection.IPentahoMetaData getMetaData()- Specified by:
- getMetaDatain interface- org.pentaho.commons.connection.IPentahoResultSet
 
- 
peek- Specified by:
- peekin interface- org.pentaho.commons.connection.IPeekable
 
- 
next(non-Javadoc)- Specified by:
- nextin interface- org.pentaho.commons.connection.IPentahoResultSet
- Throws:
- SQLResultSetException
- See Also:
- 
- returns null if no more rows
 
 
- 
closeConnectionpublic void closeConnection()- Specified by:
- closeConnectionin interface- org.pentaho.commons.connection.IPentahoResultSet
 
- 
closepublic void close()- Specified by:
- closein interface- org.pentaho.commons.connection.IPentahoResultSet
 
- 
disposepublic void dispose()- Specified by:
- disposein interface- org.pentaho.commons.connection.IDisposable
 
- 
isScrollablepublic boolean isScrollable()- Specified by:
- isScrollablein interface- org.pentaho.commons.connection.IPentahoResultSet
 
- 
getColumnCountpublic int getColumnCount()Returns the column count from the result set.- Specified by:
- getColumnCountin interface- org.pentaho.commons.connection.IPentahoResultSet
- Returns:
- the column count.
 
- 
getRowCountpublic int getRowCount()Get a rowCount from the resultset. If the resultset- Specified by:
- getRowCountin interface- org.pentaho.commons.connection.IPentahoResultSet
- Returns:
- the row count.
 
- 
getValueAtReturns the value of the specified row and the specified column from within the resultset.- Specified by:
- getValueAtin interface- org.pentaho.commons.connection.IPentahoResultSet
- Parameters:
- row- the row index.
- column- the column index.
- Returns:
- the value.
 
- 
memoryCopypublic 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. You must avoid to use this method.- Specified by:
- memoryCopyin interface- org.pentaho.commons.connection.IPentahoResultSet
- Returns:
- new instance the MemoryResultSetwith same metadata
 
- 
beforeFirstpublic void beforeFirst()- Specified by:
- beforeFirstin interface- org.pentaho.commons.connection.IPentahoResultSet
 
- 
getDataColumn- Specified by:
- getDataColumnin interface- org.pentaho.commons.connection.IPentahoResultSet
 
- 
getDataRow- Specified by:
- getDataRowin interface- org.pentaho.commons.connection.IPentahoResultSet
 
 
-