An implementation of the JDBC 2.0 optional package DataSource
interface. It allows to set the URL, user name, and password to its
properties. It can be bound via JNDI so that the properties can be set by an
"application server" and a "ready-to-use" reference to
DataSource can be retrieved via JNDI.
author: Marek Prochazka version: 1.0
getConnection(Properties props) Creates a connection using the specified properties.
Parameters: props - connection properties. throws: SQLException - if an error occurs.
Gets connection. Retrieves a new connection using the user name and
password that have been already set.
throws: SQLException - if an error occurs. a new connection.
Gets connection. Retrieves a new connection using the user name and
password specified.
Parameters: user - user name. Parameters: password - password. a new connection. throws: SQLException - if an error occurs.
Creates a connection using the specified properties.
Parameters: props - connection properties. throws: SQLException - if an error occurs. a new connection.
Gets a reference to this. The factory used for this class is the
DataSourceFactory class.
a reference to this. throws: NamingException - if DataSourceFactory not found.
Gets URL of the Sequoia controller(s) to connect. The URL is stored in the
DataSource.URL_PROPERTY property.
URL to be used to connect Sequoia controller(s).
Gets url of the Sequoia controller(s) to connect. The URL is stored in the
DataSource.URL_PROPERTY property.
URL to be used to connect Sequoia controller(s).
Gets user name to be used to connect the Sequoia controller(s). The user
name is stored in the
DataSource.USER_PROPERTY property.
user name to be used to connect Sequoia controller(s).
Sets password to be used to connect the Sequoia controller(s). The method
can be used by the "application server" to set the password (potentially
according a deployment descriptor). The password is stored in the
DataSource.PASSWORD_PROPERTY property. Note that there is not a
getPassword method.
Parameters: pwd - password to be used to connect Sequoia controller(s).
Sets URL of the Sequoia controller(s) to connect. The method is used by the
"application server" to set the URL (potentially according a deployment
descriptor). The URL is stored in the "url" property.
Parameters: url - URL to be used to connect Sequoia controller(s).
Sets url of the Sequoia controller(s) to connect. The method is used by the
"application server" to set the URL (potentially according a deployment
descriptor). The url is stored in the
DataSource.URL_PROPERTY property.
Parameters: url - URL to be used to connect Sequoia controller(s)
Sets user name to be used to connect the Sequoia controller(s). The method
can be used by the "application server" to set the user name (potentially
according a deployment descriptor). The user name is stored in the
DataSource.USER_PROPERTY property.
Parameters: userName - user name to be used to connect Sequoia controller(s).