|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectParkNPark.middletier.DatabaseManager
public class DatabaseManager
Manages the server's database parameters
| Field Summary | |
|---|---|
private String |
jdbcDriver
The JDBC driver class |
private String |
jdbcPassword
The password |
private String |
jdbcURL
The JDBC URL |
private String |
jdbcUsername
The user name |
| Constructor Summary | |
|---|---|
DatabaseManager()
Create the database manager and initialize the JDBC driver |
|
| Method Summary | |
|---|---|
Connection |
getConnection()
Returns a new database connection using the database manager's current configuration |
void |
hoseConnection()
Hose future connection attempts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private String jdbcDriver
private String jdbcURL
private String jdbcUsername
private String jdbcPassword
| Constructor Detail |
|---|
public DatabaseManager()
| Method Detail |
|---|
public Connection getConnection()
throws SQLException
SQLExceptionpublic void hoseConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||