|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDB2ConnectionFactory
DataSource
, DataSourceUtil
and DataSourceFinder
instead
public class DB2ConnectionFactory
A factory to create a DB2 Connection based on the needed parameters.
Constructor Summary | |
---|---|
DB2ConnectionFactory(String host,
String portnum,
String dbname)
Deprecated. Creates a new DB2ConnectionFactory from a host name, port number, and database name. |
Method Summary | |
---|---|
ConnectionPool |
getConnectionPool()
Deprecated. Returns a ConnectionPool. |
String |
getDbURL()
Deprecated. Returns the database URL string for this connection. |
void |
setLogin(String user,
String pw)
Deprecated. Sets database login information. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DB2ConnectionFactory(String host, String portnum, String dbname)
host
- the DB2 host nameportnum
- the TCP/IP port number for the DB2 client connectiondbname
- the DB2 database nameMethod Detail |
---|
public void setLogin(String user, String pw)
user
- the database user namepw
- the user's database passwordpublic String getDbURL()
public ConnectionPool getConnectionPool() throws SQLException
SQLException
- if we fail to get a database connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |