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
-
-
Constructor Summary
Constructors Constructor Description SQLResultSet(ResultSet nativeResultSet, SQLConnection nativeConnection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeFirst()voidclose()voidcloseConnection()voiddispose()intgetColumnCount()Returns the column count from the result set.Object[]getDataColumn(int column)Object[]getDataRow(int row)org.pentaho.commons.connection.IPentahoMetaDatagetMetaData()intgetRowCount()Get a rowCount from the resultset.ObjectgetValueAt(int row, int column)Returns the value of the specified row and the specified column from within the resultset.booleanisScrollable()org.pentaho.commons.connection.IPentahoResultSetmemoryCopy()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()voidsetMetaData(org.pentaho.commons.connection.IPentahoMetaData metadata)
-
-
-
Field Detail
-
peekRow
protected Object[] peekRow
-
-
Constructor Detail
-
SQLResultSet
public SQLResultSet(ResultSet nativeResultSet, SQLConnection nativeConnection)
-
-
Method Detail
-
setMetaData
public void setMetaData(org.pentaho.commons.connection.IPentahoMetaData metadata)
-
getMetaData
public org.pentaho.commons.connection.IPentahoMetaData getMetaData()
- Specified by:
getMetaDatain interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
peek
public Object[] peek()
- Specified by:
peekin interfaceorg.pentaho.commons.connection.IPeekable
-
next
public Object[] next()
(non-Javadoc)- Specified by:
nextin interfaceorg.pentaho.commons.connection.IPentahoResultSet- Throws:
SQLResultSetException- See Also:
returns null if no more rows
-
closeConnection
public void closeConnection()
- Specified by:
closeConnectionin interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
close
public void close()
- Specified by:
closein interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.pentaho.commons.connection.IDisposable
-
isScrollable
public boolean isScrollable()
- Specified by:
isScrollablein interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getColumnCount
public int getColumnCount()
Returns the column count from the result set.- Specified by:
getColumnCountin interfaceorg.pentaho.commons.connection.IPentahoResultSet- Returns:
- the column count.
-
getRowCount
public int getRowCount()
Get a rowCount from the resultset. If the resultset- Specified by:
getRowCountin interfaceorg.pentaho.commons.connection.IPentahoResultSet- 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.- Specified by:
getValueAtin interfaceorg.pentaho.commons.connection.IPentahoResultSet- Parameters:
row- the row index.column- the column index.- Returns:
- the value.
-
memoryCopy
public 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 interfaceorg.pentaho.commons.connection.IPentahoResultSet- Returns:
- new instance the
MemoryResultSetwith same metadata
-
beforeFirst
public void beforeFirst()
- Specified by:
beforeFirstin interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getDataColumn
public Object[] getDataColumn(int column)
- Specified by:
getDataColumnin interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getDataRow
public Object[] getDataRow(int row)
- Specified by:
getDataRowin interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
-