com.iisc.jwc.jsheet.db
Class JSDbRowSet

java.lang.Object
  extended bycom.iisc.jwc.jsheet.db.JSDbRowSet
All Implemented Interfaces:
java.lang.Cloneable

public class JSDbRowSet
extends java.lang.Object
implements java.lang.Cloneable

JSDbRowSet is the resulting data from a database query.


Constructor Summary
JSDbRowSet(com.iisc.jwc.orb.DBRowSet dbrowset)
          For internal use only!
 
Method Summary
 java.lang.Object clone()
          Creates a new object of the same class as this object.
 int getDbResultCode()
          Returns the database result code.
 JSValue getElement(int row, int col)
          Returns the specified element
 int getNumCols()
          Returns the number of columns in the result set.
 int getNumRows()
          Returns the number of rows in the result set.
 JSValueMatrix getRowSet()
          Returns the entire result set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSDbRowSet

public JSDbRowSet(com.iisc.jwc.orb.DBRowSet dbrowset)
For internal use only!

Parameters:
dbrowset - for internal use only!
Method Detail

clone

public java.lang.Object clone()
Creates a new object of the same class as this object. It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No constructor is called.

Returns:
A clone of this instance.

getDbResultCode

public int getDbResultCode()
Returns the database result code. If no errors have occured, the value is 0. If there are no more rows of data, the value is -100.

Returns:
The database result code.

getElement

public JSValue getElement(int row,
                          int col)
                   throws JSException
Returns the specified element

Parameters:
row - The row number (0 based);
col - The column number (0 based);
Returns:
The value from the specified row and column in the result set.
Throws:
JSException - An exception occured retrieving the element from the result set..

getNumCols

public int getNumCols()
Returns the number of columns in the result set.

Returns:
The number of columns.

getNumRows

public int getNumRows()
Returns the number of rows in the result set.

Returns:
The number of rows.

getRowSet

public JSValueMatrix getRowSet()
Returns the entire result set.

Returns:
The entire result set.

Email JSheet Support

www.jsheet.com
Copyright 1995 - 2003 Investment Intelligence Systems Limited.