| java.lang.Object org.geotools.data.oracle.OracleConnectionFactory
OracleConnectionFactory | public class OracleConnectionFactory (Code) | | Provides javax.sql.DataSource wrapper around an OracleConnection object.
author: Sean Geoghegan, Defence Science and Technology Organisation author: $Author: seangeo $ version: $Id: OracleConnectionFactory.java 26148 2007-07-04 17:07:11Z aaime $DataSourceDataSourceUtilDataSourceFinder |
OracleConnectionFactory | public OracleConnectionFactory(String alias)(Code) | | BDT ADDED 2004/08/02 This constructor sets up a connection factor for
OCI connection. The alias refers to values defined by Oracle Net
Configuration assitant and stored in
$ORACLE_HOME/network/admin/tnsnames.ora OCI connection require you to
install the oracle client software. The classes12.jar MUST be taken
from $ORACLE_HOME/jdbc/lib Creates a new OracleConnection object that
wraps a oracle.jdbc.driver.OracleConnection.
Parameters: alias - The host to connect to. |
OracleConnectionFactory | public OracleConnectionFactory(String host, String port, String instance)(Code) | | Creates a new OracleConnection object that wraps a
oracle.jdbc.driver.OracleConnection.
Parameters: host - The host to connect to. Parameters: port - The port number on the host Parameters: instance - The instance name on the host |
getConnectionPool | public ConnectionPool getConnectionPool(String user, String pass) throws SQLException(Code) | | Creates the real OracleConnection. Logs in to the Oracle Database and
creates the OracleConnection object.
Parameters: user - The user name. Parameters: pass - The password The real OracleConnection object. throws: SQLException - If an error occurs connecting to the DB. |
getConnectionPool | public ConnectionPool getConnectionPool() throws SQLException(Code) | | Creates the real OracleConnection. Logs into the database using the
credentials provided by setLogin
The oracle connection to the data base. throws: SQLException - If an error occurs connecting to the DB. |
setLogin | public void setLogin(String user, String pass)(Code) | | Sets the login credentials.
Parameters: user - The username Parameters: pass - The password |
|
|