|
LibreOffice
LibreOffice 24.8 SDK API Reference
|
provides the possibility of executing a precompiled SQL statement. More...
import "XPreparedStatement.idl";
Public Member Functions | |
| XResultSet | executeQuery () raises (SQLException) |
executes the SQL query in this PreparedStatement object and returns the result set generated by the query. | |
| long | executeUpdate () raises (SQLException) |
| executes the SQL INSERT, UPDATE or DELETE statement in this com::sun::star::sdbc::PreparedStatement object. | |
| boolean | execute () raises (SQLException) |
| executes any kind of SQL statement. | |
| XConnection | getConnection () raises (SQLException) |
| returns the com::sun::star::sdbc::Connection object that produced this com::sun::star::sdbc::Statement object. | |
| Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) |
| queries for a new interface to an existing UNO object. | |
| void | acquire () |
| increases the reference counter by one. | |
| void | release () |
| decreases the reference counter by one. | |
provides the possibility of executing a precompiled SQL statement.
A SQL statement is pre-compiled and stored in a PreparedStatement object. This object can then be used to efficiently execute this statement multiple times.
| boolean execute | ( | ) | ||||
| raises | ( | SQLException ) | ||||
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.
| SQLException | if a database access error occurs. |
| XResultSet executeQuery | ( | ) | ||||
| raises | ( | SQLException ) | ||||
executes the SQL query in this PreparedStatement object and returns the result set generated by the query.
| SQLException | if a database access error occurs. |
| long executeUpdate | ( | ) | ||||
| raises | ( | SQLException ) | ||||
executes the SQL INSERT, UPDATE or DELETE statement in this com::sun::star::sdbc::PreparedStatement object.
In addition, SQL statements that return nothing, such as SQL DDL statements, can be executed.
| SQLException | if a database access error occurs. |
| XConnection getConnection | ( | ) | ||||
| raises | ( | SQLException ) | ||||
returns the com::sun::star::sdbc::Connection object that produced this com::sun::star::sdbc::Statement object.
| SQLException | if a database access error occurs. |