com.pdmfc.tea.modules.tdbc
Class SCallableStatement
java.lang.Object
|
+--com.pdmfc.tea.modules.tos.STosObj
|
+--com.pdmfc.tea.modules.tdbc.SStatement
|
+--com.pdmfc.tea.modules.tdbc.SPreparedStatement
|
+--com.pdmfc.tea.modules.tdbc.SCallableStatement
- All Implemented Interfaces:
- com.pdmfc.tea.modules.tdbc.SClosedEventListener, SObjFunction
- public class SCallableStatement
- extends SPreparedStatement
Implements an TOS object that acts like a java
CallableStatement.
|
Method Summary |
java.lang.Object |
constructor(SObjFunction obj,
SContext context,
java.lang.Object[] args)
|
static java.lang.String |
getTosClassName()
|
static SStatement |
newInstance(SContext context)
|
java.lang.Object |
query(SObjFunction obj,
SContext context,
java.lang.Object[] args)
Executes a query on the database and retrieves the result. |
java.lang.Object |
registerInt(SObjFunction obj,
SContext context,
java.lang.Object[] args)
|
java.lang.Object |
registerString(SObjFunction obj,
SContext context,
java.lang.Object[] args)
|
void |
setCallableStatement(java.sql.CallableStatement stat)
|
java.lang.Object |
update(SObjFunction obj,
SContext context,
java.lang.Object[] args)
Executes a SQL statement that does NOT produce a result set. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCallableStatement
public SCallableStatement(STosClass myClass)
throws STeaException
- Parameters:
stat - The CallableStatement that this TOS objects acts on behalf of.
setCallableStatement
public void setCallableStatement(java.sql.CallableStatement stat)
getTosClassName
public static java.lang.String getTosClassName()
newInstance
public static SStatement newInstance(SContext context)
throws STeaException
constructor
public java.lang.Object constructor(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
- Overrides:
constructor in class SPreparedStatement
registerString
public java.lang.Object registerString(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
registerInt
public java.lang.Object registerInt(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
query
public java.lang.Object query(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
- Executes a query on the database and retrieves the result.
WARNING: we do not follow JavaSoft advice on retrieving all the
results before retriveing the output parameters.
- Overrides:
query in class SPreparedStatement
- Parameters:
sql - The SQL SELECT statement to be executed.- Returns:
- An SResultSet object through which the list of result
records can be obtained.
update
public java.lang.Object update(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
- Executes a SQL statement that does NOT produce a result set.
- Overrides:
update in class SPreparedStatement
- Parameters:
sql - The SQL INSERT, UPDATE or DELETE statement or DDL statement
that return nothing.- Returns:
- Either the row count for INSERT, UPDATE or DELETE or 0 for SQL
statements that return nothing.
© 2002 PDM&FC, All Rights Reserved.