public interface ConnectionProvider<T>
| Modifier and Type | Method and Description | 
|---|---|
T | 
getConnection(Session session)
Get a Connection of specified type. 
 | 
ReadLockSupport<T> | 
getReadLockSupport()
Should return null if read lock is not required when reading from connection. 
 | 
WriteLockSupport<T> | 
getWriteLockSupport()
Should return null if write lock is not required when writing to connection. 
 | 
void | 
releaseConnection(Session s)
Release a connection 
 | 
T getConnection(Session session)
BindingException - if connection cannot be obtained.void releaseConnection(Session s)
WriteLockSupport<T> getWriteLockSupport()
ReadLockSupport<T> getReadLockSupport()