|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectdataConnection.DataConnection
public class DataConnection
DataConnection gets and disconnects connections to the database.
| Constructor Summary | |
|---|---|
DataConnection()
|
|
| Method Summary | |
|---|---|
static java.sql.Connection |
connect(boolean useEnvironment)
Get a database connection using the connection pool or through a DriverManager depending on the value of 'useEnvironment'. |
static void |
disconnect(java.sql.Connection conn)
Close the database connection (actually returns the connection object to the connection pool). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataConnection()
| Method Detail |
|---|
public static java.sql.Connection connect(boolean useEnvironment)
useEnvironment - If true, J2EE environment will be used to acquire
database connection. If false, using a DriverManager to acquire
database connection.
public static void disconnect(java.sql.Connection conn)
conn - The database connection to close.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||