1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef __com_sun_star_sdbc_XIsolatedConnection_idl__
20 #define __com_sun_star_sdbc_XIsolatedConnection_idl__
22 #include
<com
/sun
/star
/task
/XInteractionHandler.idl
>
24 #include
<com
/sun
/star
/sdbc
/SQLException.idl
>
26 module com
{ module sun
{ module star
{ module sdbc
{
28 published
interface XConnection
;
29 /** is used for establishing isolated connections via a factory.
31 The XIsolatedConnection allows to create connections which are not shared among others
32 as it is the case when creating connections in normal way.
34 @see com::sun::star::sdb::DataSource
37 published
interface XIsolatedConnection
: com
::sun
::star
::uno
::XInterface
39 /** attempts to establish a database connection.
40 <p>If information is missing, such as
41 a user's password, they are completed by user interaction.</p>
43 The handler which ask for the needed information when they are missing.
45 A connection which is not shared.
46 @throws com::sun::star::sdbc::SQLException
50 getIsolatedConnectionWithCompletion
([in]com
::sun
::star
::task
::XInteractionHandler handler
)
51 raises
(SQLException
);
53 /** attempts to establish a database connection.
59 A connection which is not shared.
60 @throws com::sun::star::sdbc::SQLException
63 XConnection getIsolatedConnection
([in]string user
, [in]string password
)
64 raises
(SQLException
);
70 /*===========================================================================
71 ===========================================================================*/
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */