service Statement in module com::sun::star::sdbc:: |
service Statement;
is used for executing a static SQL statement and obtaining the results produced by it.
Only one ResultSet per Statement can be open at any point in
time. Therefore, if the reading of one ResultSet is interleaved
with the reading of another, each must have been generated by
different Statements. All statement execute
methods implicitly
close a statement's current ResultSet if an open one exists.
Exported Interfaces |
optional for implementation, controls the releasing of resources and the notification of registered listeners.
freeing all resources of a statement. A related resultset will be freed as well.
provides information about and access to the properties from an implementation.
could be used for cancelling the execution of SQL statements if both the DBMS and the driver support aborting an SQL statement. The implementation is optional.
is the interface for executing SQL commands.
provides the ability of batch execution. This interface is optional for execution.
A driver implementing batch execution must return true for XDatabaseMetaData::supportsBatchUpdates()
controls the chaining of warnings, which may occur on every call to the connected database. Chained warnings from previous calls will be cleared before processing a new call.
covers the handling of multiple results after executing an SQL command. The implementation is optional.
Property Summary |
|
QueryTimeOut | retrieves the number of seconds the driver will wait for a Statement to execute. If the limit is exceeded, a SQLException is thrown. There is no limitation, if set to zero. |
MaxFieldSize | returns the maximum number of bytes allowed for any column value. |
MaxRows | retrieves the maximum number of rows that a ResultSet can contain.
If the limit is exceeded, the excess rows are silently dropped.
There is no limitation, if set to zero. |
CursorName | defines the SQL cursor name that will be used by subsequent Statement
execute
methods.
|
ResultSetConcurrency | retrieves the result set concurrency. |
ResultSetType | determine the result set type. |
FetchDirection | retrieves the direction for fetching rows from database tables
that is the default for result sets generated from this
Statement
object.
If this Statement
object has not set a fetch direction,
the return value is implementation-specific.
|
FetchSize | retrieves the number of result set rows that is the default fetch size
for result sets generated from this
Statement
object.
If this Statement
object has not set a fetch size,
the return value is implementation-specific.
|
EscapeProcessing | returns if escape processing is on or off. If escape scanning is on (the default), the driver will do escape substitution before sending the SQL to the database. |
Property Details |
||||||||||
|
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.