Tea Java Runtime API
Version 3.1.0

com.pdmfc.tea.modules.tdbc
Class SResultSet

java.lang.Object
  |
  +--com.pdmfc.tea.modules.tos.STosObj
        |
        +--com.pdmfc.tea.modules.tdbc.SResultSet
All Implemented Interfaces:
SObjFunction

public class SResultSet
extends STosObj

Implements a TOS object that acts similar to a Java java.sql.ResultSet.


Constructor Summary
SResultSet(STosClass myClass)
           
 
Method Summary
 void addClosedListener(com.pdmfc.tea.modules.tdbc.SClosedEventListener listener)
           
 void close()
           
 java.lang.Object close(SObjFunction obj, SContext context, java.lang.Object[] args)
           
 java.lang.Object constructor(SObjFunction obj, SContext context, java.lang.Object[] args)
           
 java.lang.Object getColumnCount(SObjFunction obj, SContext context, java.lang.Object[] args)
          Retrieves the number of columns in this result set.
 java.lang.Object getColumnName(SObjFunction obj, SContext context, java.lang.Object[] args)
           
 java.lang.Object getFloat(SObjFunction obj, SContext context, java.lang.Object[] args)
           
 java.lang.Object getInt(SObjFunction obj, SContext context, java.lang.Object[] args)
           
 java.lang.Object getString(SObjFunction obj, SContext context, java.lang.Object[] args)
           
static java.lang.String getTosClassName()
           
 java.lang.Object hasMoreRows(SObjFunction obj, SContext context, java.lang.Object[] args)
          Checks if there are more rows to be read.
 java.lang.Object hasRows(SObjFunction obj, SContext context, java.lang.Object[] args)
          Checks if the result set as any rows.
static SResultSet newInstance(SContext context)
           
 java.lang.Object next(SObjFunction obj, SContext context, java.lang.Object[] args)
          Skips to the next row of the result.
 void setResultSet(java.sql.ResultSet rSet)
           
 java.lang.Object skip(SObjFunction obj, SContext context, java.lang.Object[] args)
           
 
Methods inherited from class com.pdmfc.tea.modules.tos.STosObj
exec, getTosClass, init, part, selfObj
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SResultSet

public SResultSet(STosClass myClass)
           throws STeaException
Method Detail

setResultSet

public void setResultSet(java.sql.ResultSet rSet)
                  throws java.sql.SQLException

getTosClassName

public static java.lang.String getTosClassName()

newInstance

public static SResultSet newInstance(SContext context)
                              throws STeaException

addClosedListener

public void addClosedListener(com.pdmfc.tea.modules.tdbc.SClosedEventListener listener)

constructor

public java.lang.Object constructor(SObjFunction obj,
                                    SContext context,
                                    java.lang.Object[] args)
                             throws STeaException

hasRows

public java.lang.Object hasRows(SObjFunction obj,
                                SContext context,
                                java.lang.Object[] args)
                         throws SRuntimeException
Checks if the result set as any rows. It always returns the same value.

next

public java.lang.Object next(SObjFunction obj,
                             SContext context,
                             java.lang.Object[] args)
                      throws SRuntimeException
Skips to the next row of the result.
Returns:
Returns true if the next row was successfuly fecthed. Returns false if all the rows have already been fetched.

hasMoreRows

public java.lang.Object hasMoreRows(SObjFunction obj,
                                    SContext context,
                                    java.lang.Object[] args)
                             throws SRuntimeException
Checks if there are more rows to be read. If it returns true a call to the next() method must be made in order to fecth the row.
Returns:
Returns true if there are more rows to be fecthed. Returns false otherwise.

skip

public java.lang.Object skip(SObjFunction obj,
                             SContext context,
                             java.lang.Object[] args)
                      throws SRuntimeException

getInt

public java.lang.Object getInt(SObjFunction obj,
                               SContext context,
                               java.lang.Object[] args)
                        throws SRuntimeException

getFloat

public java.lang.Object getFloat(SObjFunction obj,
                                 SContext context,
                                 java.lang.Object[] args)
                          throws SRuntimeException

getString

public java.lang.Object getString(SObjFunction obj,
                                  SContext context,
                                  java.lang.Object[] args)
                           throws SRuntimeException

close

public java.lang.Object close(SObjFunction obj,
                              SContext context,
                              java.lang.Object[] args)
                       throws STeaException

close

public void close()
           throws java.sql.SQLException

getColumnCount

public java.lang.Object getColumnCount(SObjFunction obj,
                                       SContext context,
                                       java.lang.Object[] args)
                                throws STeaException
Retrieves the number of columns in this result set.
Returns:
The number of columns in this result set.
Throws:
STeaException - Thrown if the result set has been closed or if there were any problem comunicating with the database.

getColumnName

public java.lang.Object getColumnName(SObjFunction obj,
                                      SContext context,
                                      java.lang.Object[] args)
                               throws SRuntimeException

Tea Java Runtime API
Version 3.1.0

© 2002 PDM&FC, All Rights Reserved.