Methods' Details
|
- getConnection
-  
- com::sun::star::sdbc::XConnection
getConnection(
-
- raises ( com::sun::star::sdbc::SQLException );
- 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
-  
- com::sun::star::sdbc::XConnection
getConnectionWithInfo(
-
- raises ( com::sun::star::sdbc::SQLException );
- 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.
|
- setLoginTimeout
-  
- void
setLoginTimeout(
-
- 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
-  
long
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.
|
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.