LibreOffice: com/sun/star/sdbc/XConnection.idl Source File

LibreOffice LibreOffice 26.8 SDK API Reference

Loading...
Searching...
No Matches
XConnection.idl
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20 module com { module sun { module star { module container {
21 published interface XNameAccess;
22};};};};
23
24 module com { module sun { module star { module sdbc {
25
26 published interface XStatement;
27 published interface XPreparedStatement;
28 published interface XDatabaseMetaData;
29
30
49published interface XConnection: com::sun::star::sdbc::XCloseable
50{
51
76 XStatement createStatement() raises (SQLException);
77
122 XPreparedStatement prepareStatement([in]string sql) raises (SQLException);
123
158 XPreparedStatement prepareCall([in]string sql) raises (SQLException);
159
172 string nativeSQL([in]string sql) raises (SQLException);
173
204 void setAutoCommit([in] boolean autoCommit) raises (SQLException);
205
215 boolean getAutoCommit() raises (SQLException);
216
227 void commit() raises (SQLException);
228
238 void rollback() raises (SQLException);
239
256 boolean isClosed() raises (SQLException);
257
274 XDatabaseMetaData getMetaData() raises (SQLException);
275
296 void setReadOnly([in]boolean readOnly) raises (SQLException);
297
304 boolean isReadOnly() raises (SQLException);
305
315 void setCatalog([in]string catalog) raises (SQLException);
316
323 string getCatalog() raises (SQLException);
324
347 void setTransactionIsolation([in]long level) raises (SQLException);
348
355 long getTransactionIsolation() raises (SQLException);
356
371 com::sun::star::container::XNameAccess getTypeMap() raises (SQLException);
372
387 void setTypeMap([in]com::sun::star::container::XNameAccess typeMap)
388 raises (SQLException);
389};
390
391
392}; }; }; };
393
394/*===========================================================================
395===========================================================================*/
396
397/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
com::sun::star::sdbc::SQLException
is an exception that provides information on a database access error.
Definition SQLException.idl:41
com::sun::star::sdbc::XCloseable
provides for the releasing of resources acquired by the implementing object.
Definition XCloseable.idl:26
com::sun::star::sdbc::XConnection
represents a connection (session) with a specific database.
Definition XConnection.idl:50
com::sun::star::sdbc::XConnection::rollback
void rollback()
drops all changes made since the previous commit/rollback and releases any database locks currently h...
com::sun::star::sdbc::XConnection::getTransactionIsolation
long getTransactionIsolation()
gets this Connection's current transaction isolation level.
com::sun::star::sdbc::XConnection::setTransactionIsolation
void setTransactionIsolation([in]long level)
attempts to change the transaction isolation level to the one given.
com::sun::star::sdbc::XConnection::createStatement
XStatement createStatement()
creates a new com::sun::star::sdbc::Statement object for sending SQL statements to the database.
com::sun::star::sdbc::XConnection::getCatalog
string getCatalog()
returns the Connection's current catalog name.
com::sun::star::sdbc::XConnection::setCatalog
void setCatalog([in]string catalog)
sets a catalog name in order to select a subspace of this Connection's database in which to work.
com::sun::star::sdbc::XConnection::prepareStatement
XPreparedStatement prepareStatement([in]string sql)
creates a com::sun::star::sdbc::PreparedStatement object for sending parameterized SQL statements to ...
com::sun::star::sdbc::XConnection::getAutoCommit
boolean getAutoCommit()
gets the current auto-commit state.
com::sun::star::sdbc::XConnection::isClosed
boolean isClosed()
tests to see if a connection is closed.
com::sun::star::sdbc::XConnection::setReadOnly
void setReadOnly([in]boolean readOnly)
puts this connection in read-only mode as a hint to enable database optimizations.
com::sun::star::sdbc::XConnection::getMetaData
XDatabaseMetaData getMetaData()
gets the metadata regarding this connection's database.
com::sun::star::sdbc::XConnection::setTypeMap
void setTypeMap([in]com::sun::star::container::XNameAccess typeMap)
installs the given type map as the type map for this connection.
com::sun::star::sdbc::XConnection::getTypeMap
com::sun::star::container::XNameAccess getTypeMap()
gets the type map object associated with this connection.
com::sun::star::sdbc::XConnection::setAutoCommit
void setAutoCommit([in] boolean autoCommit)
sets this connection's auto-commit mode.
com::sun::star::sdbc::XConnection::nativeSQL
string nativeSQL([in]string sql)
converts the given SQL statement into the system's native SQL grammar.
com::sun::star::sdbc::XConnection::prepareCall
XPreparedStatement prepareCall([in]string sql)
creates a com::sun::star::sdbc::CallableStatement object for calling database stored procedures.
com::sun::star::sdbc::XConnection::isReadOnly
boolean isReadOnly()
tests to see if the connection is in read-only mode.
com::sun::star::sdbc::XConnection::commit
void commit()
makes all changes made since the previous commit/rollback permanent and releases any database locks c...
com::sun::star::sdbc::XDatabaseMetaData
provides comprehensive information about the database as a whole.
Definition XDatabaseMetaData.idl:63
com::sun::star::sdbc::XPreparedStatement
provides the possibility of executing a precompiled SQL statement.
Definition XPreparedStatement.idl:36
com::sun::star::sdbc::XStatement
is used for executing a static SQL statement and obtaining the results produced by it.
Definition XStatement.idl:42
com::sun::star::container
Interfaces for collections and containers.
Definition ContainerEvent.idl:22
com::sun::star
the module com::sun::star is the root module of the UNO API.
Definition Ambiguous.idl:20
com::sun
Definition Ambiguous.idl:20
com
Definition Ambiguous.idl:20