| java.lang.Object org.geotools.data.geomedia.GeoMediaConnectionFactory
GeoMediaConnectionFactory | public class GeoMediaConnectionFactory (Code) | |
Title: GeoTools2 Development
Description:
Copyright: Copyright (c) 2003
Company:
Provides javax.sql.DataSource wrapper around a JDBC object. User passes a JDBC driver string as part of the
properties. Driver is loaded using Class.forname() from the class path. User also passes a connection string URL as
part of the properties.
author: Julian J. Ray version: 1.0 |
GeoMediaConnectionFactory | public GeoMediaConnectionFactory(String classname, String poolKey, GeoMediaConnectionParam[] params)(Code) | | Creates a new Connection object.
Parameters: classname - The host name of IP address to connect to. Parameters: poolKey - The port number on the host. Usually 1433 Parameters: params - The database name on the host |
getConnectionPool | public ConnectionPool getConnectionPool(String user, String pass) throws SQLException(Code) | | Creates the real Server Connection. Logs in to the Database and creates the Connection object. If the connection
pool is not established, a new one is created.
Parameters: user - The user name. Parameters: pass - The password The ConnectionPool object. 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 |
|
|