| |
|
| java.lang.Object hu.netmind.persistence.ConnectionSource
ConnectionSource | public class ConnectionSource (Code) | | This is the connection source for database implementations. It pools
the connections so the database implementation does not need to
bother with connection allocation details. Be sure to return the
connection to this pool when ready.
author: Brautigam Robert version: Revision: $Revision$ |
getConnection | public synchronized Connection getConnection()(Code) | | Get a new pooled connection. This method get a connection from the
pool, or allocates a new connection is no pooled ones are available.
A new connection object. |
release | public synchronized void release()(Code) | | Release all database connections. After calling this method, the
connection source is considered unusable.
|
releaseConnection | public synchronized void releaseConnection(Connection connection)(Code) | | Release a connection back to the pool.
Parameters: connection - The connection to release. |
|
|
|