|
GeneThello Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.genethello.db.DbConnection
public abstract class DbConnection
A database connection pool.
| Constructor Summary | |
|---|---|
DbConnection()
|
|
| Method Summary | |
|---|---|
abstract java.sql.Connection |
getConnection()
Gets a connection from connection pool. |
static DbConnection |
getDefault()
Gets default connection pool which is already connected to server. |
static DbConnection |
getDefault(java.lang.String server,
int port,
java.lang.String dbname,
java.lang.String username,
java.lang.String password)
Gets default connection pool to connect. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbConnection()
| Method Detail |
|---|
public abstract java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLExceptionpublic static DbConnection getDefault()
public static DbConnection getDefault(java.lang.String server,
int port,
java.lang.String dbname,
java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
server - database serverport - database portdbname - database nameusername - usernamepassword - password
java.sql.SQLException
|
GeneThello Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||