1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: Connection.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_sdbc_Connection_idl__
31 #define __com_sun_star_sdbc_Connection_idl__
33 #ifndef __com_sun_star_lang_XComponent_idl__
34 #include
<com
/sun
/star
/lang
/XComponent.idl
>
37 module com
{ module sun
{ module star
{ module sdbc
{
39 published
interface XConnection
;
40 published
interface XWarningsSupplier
;
43 /** represents a connection (session) with a specific
44 database. Within the context of a Connection, SQL statements are
45 executed and results are returned.
48 A Connection's database is able to provide information
49 describing its tables, its supported SQL grammar, its stored
50 procedures, and the capabilities of this connection. This
51 information is obtained with the
52 <member scope="com::sun::star::sdbc">XConnection::getMetaData()</member>
59 By default the Connection automatically commits
60 changes after executing each statement. If auto commit has been
61 disabled, an explicit commit must be done or database changes will
65 @see com::sun::star::sdbc::XStatement
66 @see com::sun::star::sdbc::XResultSet
67 @see com::sun::star::sdbc::XDatabaseMetaData
69 published service Connection
72 /** controls the closing of a connection.
74 interface com
::sun
::star
::lang
::XComponent
;
77 /** the main interface for interaction with a connection to a database.
79 interface XConnection
;
82 /** controls the chaining of warnings, which may occur on every call
83 to the connected database. Chained warnings from previous calls will be
84 cleared before processing a new call.
86 interface XWarningsSupplier
;
89 //=============================================================================
93 /*===========================================================================
94 ===========================================================================*/