|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConnectionManager
Interface for managing connections to the database. Since initiating a connection to the database takes a relatively long time, database connections should not be simply created and destroyed each time a new query is done. In addition, since sometimes multiple clients access the server at the same time, there should be more than simply one connection serving them all.
| Method Summary | |
|---|---|
java.sql.Connection |
getConnection()
Returns a valid connection to the database. |
void |
returnConnection(java.sql.Connection connection)
Gives a connection back to the ConnectionFactory telling indicating the connection can be re-issued. |
| Method Detail |
|---|
java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException - if there an error getting the connectionvoid returnConnection(java.sql.Connection connection)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||