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

LibreOffice LibreOffice 5.3 SDK API Reference

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 #ifndef __com_sun_star_sdbc_XConnection_idl__
20 #define __com_sun_star_sdbc_XConnection_idl__
21
22 #include <com/sun/star/uno/XInterface.idl>
23
24 module com { module sun { module star { module container {
25 published interface XNameAccess;
26 };};};};
27
28 #include <com/sun/star/sdbc/SQLException.idl>
29
30 #include <com/sun/star/sdbc/XCloseable.idl>
31
32 module com { module sun { module star { module sdbc {
33
34 published interface XStatement;
35 published interface XPreparedStatement;
36 published interface XDatabaseMetaData;
37
38
57 published interface XConnection: com::sun::star::sdbc::XCloseable
58 {
59
84 XStatement createStatement() raises (SQLException);
85
130 XPreparedStatement prepareStatement([in]string sql) raises (SQLException);
131
166 XPreparedStatement prepareCall([in]string sql) raises (SQLException);
167
180 string nativeSQL([in]string sql) raises (SQLException);
181
212 void setAutoCommit([in] boolean autoCommit) raises (SQLException);
213
223 boolean getAutoCommit() raises (SQLException);
224
235 void commit() raises (SQLException);
236
246 void rollback() raises (SQLException);
247
264 boolean isClosed() raises (SQLException);
265
282 XDatabaseMetaData getMetaData() raises (SQLException);
283
304 void setReadOnly([in]boolean readOnly) raises (SQLException);
305
312 boolean isReadOnly() raises (SQLException);
313
323 void setCatalog([in]string catalog) raises (SQLException);
324
331 string getCatalog() raises (SQLException);
332
355 void setTransactionIsolation([in]long level) raises (SQLException);
356
363 long getTransactionIsolation() raises (SQLException);
364
379 com::sun::star::container::XNameAccess getTypeMap() raises (SQLException);
380
395 void setTypeMap([in]com::sun::star::container::XNameAccess typeMap)
396 raises (SQLException);
397 };
398
399
400 }; }; }; };
401
402 /*===========================================================================
403 ===========================================================================*/
404 #endif
405
406 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SQLException.idl
com::sun::star::sdbc::XPreparedStatement
provides the possibility of executing a precompiled SQL statement.
Definition: XPreparedStatement.idl:41
com::sun::star::sdbc::XStatement
is used for executing a static SQL statement and obtaining the results produced by it...
Definition: XStatement.idl:47
com::sun::star::sdbc::XConnection
represents a connection (session) with a specific database.
Definition: XConnection.idl:57
com
Definition: Ambiguous.idl:22
com::sun::star::sdbc::XDatabaseMetaData
provides comprehensive information about the database as a whole.
Definition: XDatabaseMetaData.idl:68
XInterface.idl
com::sun::star::sdbc::XCloseable
provides for the releasing of resources acquired by the implementing object.
Definition: XCloseable.idl:31
com::sun::star::sdbc::SQLException
is an exception that provides information on a database access error.
Definition: SQLException.idl:44
com::sun::star::container::XNameAccess
is used to access named objects within a container.
Definition: XNameAccess.idl:39
XCloseable.idl