Tea Java Runtime API
Version 3.2.4

com.pdmfc.tea.modules.tdbc
Class SStatement

java.lang.Object
  extended by com.pdmfc.tea.modules.tos.STosObj
      extended by com.pdmfc.tea.modules.tdbc.SStatement
All Implemented Interfaces:
SClosedEventListener, SObjFunction
Direct Known Subclasses:
SPreparedStatement

public class SStatement
extends STosObj
implements SClosedEventListener

Implements an TOS object that acts like a java Statement.


Field Summary
protected  java.util.List _resultSets
           
 
Constructor Summary
SStatement(STosClass myClass)
           
 
Method Summary
 void addClosedListener(SClosedEventListener listener)
           
 java.lang.Object close(SObjFunction obj, SContext context, java.lang.Object[] args)
          The implementation for the "close" TOS method.
 void closedEvent(java.lang.Object closedObject)
          Signals that an object has been closed.
 java.lang.Object constructor(SObjFunction obj, SContext context, java.lang.Object[] args)
          The implementation for the "constructor" TOS method.
 java.lang.Object execute(SObjFunction obj, SContext context, java.lang.Object[] args)
          The implementation for the "execute" TOS method.
 java.lang.Object getFetchSize(SObjFunction obj, SContext context, java.lang.Object[] args)
          Implements the getFetchSize method of the TOS class TStatement.
 java.sql.Statement getInternalStatement()
          Fetches the java.sql.Statement used to interact with the database.
 java.lang.Object getMoreResults(SObjFunction obj, SContext context, java.lang.Object[] args)
          Implements the getMoreResults method of the TOS class TStatement.
 java.lang.Object getResultSet(SObjFunction obj, SContext context, java.lang.Object[] args)
          Implements the getResultSet method of the TOS class TStatement.
static java.lang.String getTosClassName()
           
static SStatement newInstance(SContext context)
           
 java.lang.Object query(SObjFunction obj, SContext context, java.lang.Object[] args)
          The implementation for the "query" TOS method.
 java.lang.Object setFetchSize(SObjFunction obj, SContext context, java.lang.Object[] args)
          Implements the setFetchSize method of the TOS class TStatement.
 void setStatement(java.sql.Statement stat)
           
 java.lang.Object update(SObjFunction obj, SContext context, java.lang.Object[] args)
          The implementation for the "update" TOS method.
 
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
 

Field Detail

_resultSets

protected java.util.List _resultSets
Constructor Detail

SStatement

public SStatement(STosClass myClass)
           throws STeaException
Throws:
STeaException
Method Detail

setStatement

public void setStatement(java.sql.Statement stat)
Parameters:
stat - The Statement that this TOS objects acts on behalf of.

getInternalStatement

public java.sql.Statement getInternalStatement()
Fetches the java.sql.Statement used to interact with the database.

Returns:
The java.sql.Statement being used.

getTosClassName

public static java.lang.String getTosClassName()

newInstance

public static SStatement newInstance(SContext context)
                              throws STeaException
Throws:
STeaException

addClosedListener

public void addClosedListener(SClosedEventListener listener)

constructor

public java.lang.Object constructor(SObjFunction obj,
                                    SContext context,
                                    java.lang.Object[] args)
                             throws STeaException
The implementation for the "constructor" TOS method.

Parameters:
obj - Reference to the object the TOS method was invoked for.
context - The context where the method invocation is taking place.
args - The arguments the TOS method was called with.
Throws:
STeaException

query

public java.lang.Object query(SObjFunction obj,
                              SContext context,
                              java.lang.Object[] args)
                       throws STeaException
The implementation for the "query" TOS method.

Parameters:
obj - Reference to the object the TOS method was invoked for.
context - The context where the method invocation is taking place.
args - The arguments the TOS method was called with.
Throws:
STeaException

update

public java.lang.Object update(SObjFunction obj,
                               SContext context,
                               java.lang.Object[] args)
                        throws STeaException
The implementation for the "update" TOS method.

Parameters:
obj - Reference to the object the TOS method was invoked for.
context - The context where the method invocation is taking place.
args - The arguments the TOS method was called with.
Throws:
STeaException

execute

public java.lang.Object execute(SObjFunction obj,
                                SContext context,
                                java.lang.Object[] args)
                         throws STeaException
The implementation for the "execute" TOS method.

Parameters:
obj - Reference to the object the TOS method was invoked for.
context - The context where the method invocation is taking place.
args - The arguments the TOS method was called with.
Throws:
STeaException

getResultSet

public java.lang.Object getResultSet(SObjFunction obj,
                                     SContext context,
                                     java.lang.Object[] args)
                              throws STeaException
Implements the getResultSet method of the TOS class TStatement.

Throws:
STeaException

getMoreResults

public java.lang.Object getMoreResults(SObjFunction obj,
                                       SContext context,
                                       java.lang.Object[] args)
                                throws STeaException
Implements the getMoreResults method of the TOS class TStatement.

Throws:
STeaException

getFetchSize

public java.lang.Object getFetchSize(SObjFunction obj,
                                     SContext context,
                                     java.lang.Object[] args)
                              throws STeaException
Implements the getFetchSize method of the TOS class TStatement.

Throws:
STeaException

setFetchSize

public java.lang.Object setFetchSize(SObjFunction obj,
                                     SContext context,
                                     java.lang.Object[] args)
                              throws STeaException
Implements the setFetchSize method of the TOS class TStatement.

Throws:
STeaException

close

public java.lang.Object close(SObjFunction obj,
                              SContext context,
                              java.lang.Object[] args)
                       throws STeaException
The implementation for the "close" TOS method.

Parameters:
obj - Reference to the object the TOS method was invoked for.
context - The context where the method invocation is taking place.
args - The arguments the TOS method was called with.
Throws:
STeaException

closedEvent

public void closedEvent(java.lang.Object closedObject)
Description copied from interface: SClosedEventListener
Signals that an object has been closed.

Specified by:
closedEvent in interface SClosedEventListener
Parameters:
closedObject - The object that was closed.

Tea Java Runtime API
Version 3.2.4

© 2009 PDM&FC, All Rights Reserved.