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
;
25 /** is used for establishing connections via a factory which is identified
26 by its name. A DataSource object is typically registered by a naming service
29 published
interface XDataSource
: com
::sun
::star
::uno
::XInterface
32 /** attempts to establish a database connection.
40 if a database access error occurs.
42 XConnection getConnection
([in]string user
, [in]string password
)
43 raises
(SQLException
);
45 /** sets the maximum time in seconds that this data source will wait
46 while attempting to connect to a database.
50 A value of zero specifies that the timeout is the default system
51 timeout if there is one; otherwise, it specifies that there is no timeout.
52 When a DataSource object is created the login timeout is initially zero.
55 the login time limit in seconds
57 if a database access error occurs.
59 void setLoginTimeout
([in]long seconds
)
60 raises
(SQLException
);
62 /** gets the maximum time in seconds that this data source can wait
63 while attempting to connect to a database.
67 A value of zero means that the timeout is the default system timeout
68 if there is one; otherwise, it means that there is no timeout. When a
69 DataSource object is created the login timeout is initially zero.
72 the login time limit in seconds
74 if a database access error occurs.
76 long getLoginTimeout
() raises
(SQLException
);
82 /*===========================================================================
83 ===========================================================================*/
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */