| java.lang.Object org.mandarax.sql.DefaultConnectionManager
DefaultConnectionManager | public class DefaultConnectionManager implements SQLConnectionManager(Code) | | The DefaultConnectionManager implements the
interface of the SQLConnectionManager.
It supports specification of a plain SQL connection,
or usage of the J2EE compliant data sources.
If a plain SQL connection will be given during initialize,
a data source wrapper will be used for this connection.
See Also: SQLConnectionManager See Also: java.sql.Connection See Also: javax.sql.DataSource author: Jochen Hiller version: 3.4 <7 March 05> since: 2.2 |
DefaultConnectionManager | public DefaultConnectionManager(Connection con)(Code) | | Instantiates a new connection manager for a given SQL connection.
The connection will be wrapped through our data source
connection wrapper.
Parameters: con - the plain sql connection |
DefaultConnectionManager | public DefaultConnectionManager(DataSource ds)(Code) | | Instantiates a new connection manager for a given data source.
Parameters: ds - the given data source |
getDataSource | public DataSource getDataSource()(Code) | | Gets a data source from the connection manager.
a data source |
releaseConnection | public void releaseConnection(Connection con) throws SQLException(Code) | | Releases a connection, give it back to connection manager.
Parameters: con - the connection to release |
|
|