| java.lang.Object org.geotools.data.db2.DB2ConnectionFactory
DB2ConnectionFactory | public DB2ConnectionFactory(String host, String portnum, String dbname)(Code) | | Creates a new DB2ConnectionFactory from a host name, port number, and
database name.
If the port number is zero we will try to use the JDBC type 2 driver
and if the port number is non-zer, we will try to use the JDBC type 4
driver
Parameters: host - the DB2 host name Parameters: portnum - the TCP/IP port number for the DB2 client connection Parameters: dbname - the DB2 database name |
getConnectionPool | public ConnectionPool getConnectionPool() throws SQLException(Code) | | Returns a ConnectionPool. Assumes that the required connection
information: database name, user name and password have already been
set.
a ConnectionPool object throws: SQLException - if we fail to get a database connection |
getDbURL | public String getDbURL()(Code) | | Returns the database URL string for this connection.
dbURL |
setLogin | public void setLogin(String user, String pw)(Code) | | Sets database login information.
Parameters: user - the database user name Parameters: pw - the user's database password |
|
|