org.pentaho.platform.plugin.services.connections.hql
Class HQLResultSet

java.lang.Object
  extended by org.pentaho.platform.plugin.services.connections.hql.HQLResultSet

public class HQLResultSet
extends Object

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

Constructor Summary
HQLResultSet(List list, String[] columnNames, Type[] columnTypes)
           
 
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()
           
 void rewindNext()
           
 void setMetaData(IPentahoMetaData metadata)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HQLResultSet

public HQLResultSet(List list,
                    String[] columnNames,
                    Type[] columnTypes)
Method Detail

setMetaData

public void setMetaData(IPentahoMetaData metadata)

getMetaData

public IPentahoMetaData getMetaData()

next

public Object[] next()

rewindNext

public void rewindNext()

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)