|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.geomedia.GeoMediaConnectionFactory
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.
| Constructor Summary | |
GeoMediaConnectionFactory(java.lang.String classname,
java.lang.String poolKey,
GeoMediaConnectionParam[] params)
Creates a new Connection object. |
|
| Method Summary | |
ConnectionPool |
getConnectionPool()
Returns a connection from the connection pool. |
ConnectionPool |
getConnectionPool(java.lang.String user,
java.lang.String pass)
Creates the real Server Connection. |
void |
setLogin(java.lang.String user,
java.lang.String pass)
Sets the login credentials. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GeoMediaConnectionFactory(java.lang.String classname,
java.lang.String poolKey,
GeoMediaConnectionParam[] params)
classname - The host name of IP address to connect to.poolKey - The port number on the host. Usually 1433params - The database name on the host| Method Detail |
public ConnectionPool getConnectionPool(java.lang.String user,
java.lang.String pass)
throws java.sql.SQLException
user - The user name.pass - The password
java.sql.SQLException - If an error occurs connecting to the DB.
public ConnectionPool getConnectionPool()
throws java.sql.SQLException
java.sql.SQLException - If an error occurs.
public void setLogin(java.lang.String user,
java.lang.String pass)
user - The usernamepass - The password
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||