public final class JDBCConnections
extends java.lang.Object
| Constructor and Description |
|---|
JDBCConnections() |
| Modifier and Type | Method and Description |
|---|---|
int |
add(java.lang.Object obj)
Adds a connection or prepared statement to depot.
|
void |
close()
Closes all opened connections.
|
java.lang.Object |
get(int id)
Returns connection or prepared statement with the given id.
|
void |
remove(int id)
Removes either a connection or a prepared statement from the depot.
|
public int add(java.lang.Object obj)
obj - connection or prepared statementpublic java.lang.Object get(int id)
id - idpublic void remove(int id)
id - connection/prepared statement idpublic void close()