org.pentaho.platform.plugin.services.connections.sql
Class SQLResultSet

java.lang.Object
  extended by org.pentaho.platform.plugin.services.connections.sql.SQLResultSet

public class SQLResultSet
extends Object

Author:
wseyler TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
SQLResultSet(ResultSet nativeResultSet, SQLConnection nativeConnection)
           
 
Method Summary
 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)
           
 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()
           
 IPentahoResultSet memoryCopy()
           
 Object[] next()
          (non-Javadoc)
 void rewindNext()
           
 void setMetaData(IPentahoMetaData metadata)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLResultSet

public SQLResultSet(ResultSet nativeResultSet,
                    SQLConnection nativeConnection)
Method Detail

setMetaData

public void setMetaData(IPentahoMetaData metadata)

getMetaData

public IPentahoMetaData getMetaData()

rewindNext

public void rewindNext()

next

public Object[] next()
(non-Javadoc)

Throws:
SQLResultSetException
See Also:
returns null if no more rows

closeConnection

public void closeConnection()

close

public void close()

dispose

public void dispose()

isScrollable

public boolean isScrollable()

getColumnCount

public int getColumnCount()
Returns the column count from the result set.

Returns:
the column count.

getRowCount

public int getRowCount()
Get a rowCount from the resultset. If the resultset

Returns:
the row count.

getValueAt

public Object getValueAt(int row,
                         int column)
Returns the value of the specified row and the specified column from within the resultset.

Parameters:
row - the row index.
column - the column index.
Returns:
the value.

memoryCopy

public IPentahoResultSet memoryCopy()

beforeFirst

public void beforeFirst()

getDataColumn

public Object[] getDataColumn(int column)

getDataRow

public Object[] getDataRow(int row)