|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.db2.DB2ConnectionFactory
A factory to create a DB2 Connection based on the needed parameters.
| Constructor Summary | |
DB2ConnectionFactory(java.lang.String host,
java.lang.String portnum,
java.lang.String dbname)
Creates a new DB2ConnectionFactory from a host name, port number, and database name. |
|
| Method Summary | |
ConnectionPool |
getConnectionPool()
Returns a ConnectionPool. |
java.lang.String |
getDbURL()
Returns the database URL string for this connection. |
void |
setLogin(java.lang.String user,
java.lang.String pw)
Sets database login information. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DB2ConnectionFactory(java.lang.String host,
java.lang.String portnum,
java.lang.String dbname)
host - the DB2 host nameportnum - the TCP/IP port number for the DB2 client connectiondbname - the DB2 database name| Method Detail |
public void setLogin(java.lang.String user,
java.lang.String pw)
user - the database user namepw - the user's database passwordpublic java.lang.String getDbURL()
public ConnectionPool getConnectionPool()
throws java.sql.SQLException
java.sql.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 | ||||||||||