Methods' Summary |
getConnection |
attempts to establish a connection to the given database URL.
The DriverManager attempts to select an appropriate driver from
the set of registered JDBC/SDBC drivers.
|
getConnectionWithInfo |
attempts to establish a connection to the given database URL.
The DriverManager attempts to select an appropriate driver from
the set of registered JDBC/SDBC drivers.
|
setLoginTimeout |
sets the maximum time in seconds that a driver will wait
while attempting to connect to a database.
|
getLoginTimeout |
gets the maximum time in seconds that a driver can wait
when attempting to login to a database.
|
Methods' Details |
getConnection
- Description
- attempts to establish a connection to the given database URL.
The DriverManager attempts to select an appropriate driver from
the set of registered JDBC/SDBC drivers.
- Parameter url
- a database url of the form sdbc:subprotocol:subname
- Returns
- the Connection object
- Throws
- SQLException
if a database access error occurs.
|
|
getConnectionWithInfo
- Description
- attempts to establish a connection to the given database URL.
The DriverManager attempts to select an appropriate driver from
the set of registered JDBC/SDBC drivers.
- Parameter url
- a database url of the form sdbc:subprotocol:subname
- Parameter info
- a list of arbitrary string tag/value pairs as connection arguments;
normally at least a "user" and "password" property should be included
- Returns
- the Connection object
- Throws
- SQLException
if a database access error occurs.
- See also
- ConnectionProperties
|
|
setLoginTimeout
void |
setLoginTimeout( |
[in] long |
seconds ); |
- Description
- sets the maximum time in seconds that a driver will wait
while attempting to connect to a database.
- 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 a driver can wait
when attempting to login to a database.
- Returns
- the driver login time limit in seconds
- Throws
- SQLException
if a database access error occurs.
|
|
Top of Page
Copyright © 2000, 2013 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.