|
LibreOfficeDev
LibreOfficeDev 25.8 SDK API Reference
|
is used for establishing connections via a factory which is identified by its name. More...
import"XDataSource.idl";
Public Member Functions | |
| XConnection | getConnection ([in]string user, [in]string password) raises (SQLException) |
| attempts to establish a database connection. More... | |
| void | setLoginTimeout ([in]long seconds) raises (SQLException) |
| sets the maximum time in seconds that this data source will wait while attempting to connect to a database. More... | |
| long | getLoginTimeout () raises (SQLException) |
| gets the maximum time in seconds that this data source can wait while attempting to connect to a database. More... | |
Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) |
| queries for a new interface to an existing UNO object. More... | |
| void | acquire () |
| increases the reference counter by one. More... | |
| void | release () |
| decreases the reference counter by one. More... | |
is used for establishing connections via a factory which is identified by its name.
A DataSource object is typically registered by a naming service provider.
| XConnection getConnection | ( | [in] string | user, |
| [in] string | password | ||
| ) | |||
| raises | ( | SQLException | |
| ) | |||
attempts to establish a database connection.
| user | the user name |
| password | the password |
| SQLException | if a database access error occurs. |
| long getLoginTimeout | ( | ) | ||
| raises | ( | SQLException | ||
| ) | ||||
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.
| SQLException | if a database access error occurs. |
| void setLoginTimeout | ( | [in] long | seconds | ) | |
| raises | ( | SQLException | |||
| ) | |||||
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.
| seconds | the login time limit in seconds |
| SQLException | if a database access error occurs. |
1.8.14