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 .
20 module com
{ module sun
{ module star
{ module sdbc
{
22 published
interface XConnection
;
23 published
interface XDriver
;
26 /** is the basic interface for managing a set of SDBC drivers.
32 com::sun::star::sdbc::XDriverManager::getConnection()
34 the DriverManager will attempt to
35 locate a suitable driver.
38 @see com::sun::star::sdbc::XDriver
39 @see com::sun::star::sdbc::XConnection
41 published
interface XDriverManager
: com
::sun
::star
::uno
::XInterface
44 /** attempts to establish a connection to the given database URL.
45 The DriverManager attempts to select an appropriate driver from
46 the set of registered JDBC/SDBC drivers.
48 a database url of the form sdbc:subprotocol:subname
52 if a database access error occurs.
54 XConnection getConnection
([in]string url
)
55 raises
(SQLException
);
57 /** attempts to establish a connection to the given database URL.
58 The DriverManager attempts to select an appropriate driver from
59 the set of registered JDBC/SDBC drivers.
61 a database url of the form sdbc:subprotocol:subname
63 a list of arbitrary string tag/value pairs as connection arguments;
64 normally at least a "user" and "password" property should be included
65 @see com::sun::star::sdbc::ConnectionProperties
69 if a database access error occurs.
71 XConnection getConnectionWithInfo
([in]string url
,
72 [in]sequence
<com
::sun
::star
::beans
::PropertyValue
> info
)
73 raises
(SQLException
);
75 /** sets the maximum time in seconds that a driver will wait
76 while attempting to connect to a database.
78 the login time limit in seconds
81 if a database access error occurs.
83 void setLoginTimeout
([in]long seconds
);
85 /** gets the maximum time in seconds that a driver can wait
86 when attempting to login to a database.
88 the driver login time limit in seconds
91 if a database access error occurs.
93 long getLoginTimeout
();
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */