Methods' Summary |
getConnection |
attempts to establish a database connection.
|
setLoginTimeout |
sets the maximum time in seconds that this data source will wait
while attempting to connect to a database.
|
getLoginTimeout |
gets the maximum time in seconds that this data source can wait
while attempting to connect to a database.
|
Methods' Details |
getConnection
- Description
- attempts to establish a database connection.
- Parameter user
- the user name
- Parameter password
- the password
- Returns
- the connection object
- Throws
- SQLException
if a database access error occurs.
|
|
setLoginTimeout
void |
setLoginTimeout( |
[in] long |
seconds ) |
raises( |
SQLException ); |
- Description
- sets the maximum time in seconds that this data source will wait
while attempting to connect to a database.
A value of zero specifies that the timeout is the default system
timeout if there is one; otherwise, it specifies that there is no timeout.
When a DataSource object is created the login timeout is initially zero.
- Parameter seconds
- the login time limit in seconds
- Throws
- SQLException
if a database access error occurs.
|
|
getLoginTimeout
- Description
- gets the maximum time in seconds that this data source can wait
while attempting to connect to a database.
A value of zero means that the timeout is the default system timeout
if there is one; otherwise, it means that there is no timeout. When a
DataSource object is created the login timeout is initially zero.
- Returns
- the login time limit in seconds
- Throws
- SQLException
if a database access error occurs.
|
|
Top of Page
Copyright © 2000, 2014 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.
Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.