Methods' Details
|
- executeQuery
-  
- com::sun::star::sdbc::XResultSet
executeQuery( )
- raises ( com::sun::star::sdbc::SQLException );
- Description
- executes the SQL query in this
PreparedStatement
object and returns the result set generated by the query.
- Returns
-
the ResultSet object
- Throws
- SQLException
if a database access error occurs.
|
- executeUpdate
-  
- long
executeUpdate( )
- raises ( com::sun::star::sdbc::SQLException );
- Description
- executes the SQL INSERT, UPDATE or DELETE statement in this
PreparedStatement
object.
In addition, SQL statements that return nothing, such as
SQL DDL statements, can be executed.
- Returns
-
either the row count for INSERT, UPDATE or DELETE statements; or 0 for SQL statements that return nothing
- Throws
- SQLException
if a database access error occurs.
|
- execute
-  
- boolean
execute( )
- raises ( com::sun::star::sdbc::SQLException );
- Description
- executes any kind of SQL statement.
Some prepared statements return multiple results; the execute
method handles these complex statements as well as the simpler
form of statements handled by executeQuery and executeUpdate.
- Returns
-
true if successful
- Throws
- SQLException
if a database access error occurs.
|
- getConnection
-  
- com::sun::star::sdbc::XConnection
getConnection( )
- raises ( com::sun::star::sdbc::SQLException );
- Description
- returns the
Connection
object
that produced this
Statement
object.
- Returns
-
the Connection object
- Throws
- SQLException
if a database access error occurs.
|
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.