| Overview | Module | Function | Class | Tea 3.2.4 Reference Documentation © 2009 PDM&FC |
TStatement
|
|
TStatement close
Releases all the database resources held by this object.
TStatement execute sqlStatement
Executes an arbitrary SQL statement.
TStatement
is associated with. This method is tipically used to execute
stored procedures, but it can also execute any type os SQL statement.
If there is something wrong with the
sqlStatement string (e.g. a syntax error) a
runtime error will ocurr.
If this method returns true then the result set can be obtained by calling getResultSet. Multiple result sets can be obtained by calling getMoreResults and getResultSet in sequence as appropriate.
TStatement getFetchSize
Fetches the number of rows that are internally retrieved for a TResultSet.
3.2.1
TStatement getMoreResults
Fetches the TStatement next result.
By using the execute method it is possible to
execute SQL statement that return multipe result sets. This method
combined with getResultSet give access to
those result sets as instances of
3.1.5
TStatement getResultSet
Returns the current result as a TResultSet.
By using the execute method it is possible to
execute SQL statement that return multipe result sets. This method
combined with getMoreResults give access to
those result sets as instances of
3.1.5
TStatement query sqlStatement
Executes a SQL query.
sqlStatement query.
TStatement
is associated with. It returns a TResultSet
object containing the records resulting from the query. If there
is something wrong with the
sqlStatement string (e.g. a syntax error) then an
runtime error ocurrs.
The instance of TResultSet returned by the method can be used to iterate through the records that resulted from the query.
TStatement setFetchSize numberOfRows
Sets the number of rows that should be internally retrieved for a TResultSet.
An error will occur if this value if out of the bounds 0..maxRows where maxRows is the maximum number of rows that a TResultSet may return.
3.2.1
TStatement update sqlStatement
Executes a SQL statement that modifies the contents of the database.
TStatement
is associated with. The statement is supposed to modify, insert
or remove records in the database. If there is something wrong with the
sqlStatement string (e.g. a syntax error) or
if the changes would violate an integrity constraint then an
runtime error will ocurr.
| Overview | Module | Function | Class | Tea 3.2.4 Reference Documentation © 2009 PDM&FC |