| org.jaffa.persistence.engines.jdbcengine.datasource.IConnectionFactory
All known Subclasses: org.jaffa.persistence.engines.jdbcengine.datasource.JndiDataSourceConnectionFactory, org.jaffa.persistence.engines.jdbcengine.datasource.DbcpDataSourceConnectionFactory, org.jaffa.persistence.engines.jdbcengine.datasource.DbConnectionBrokerConnectionFactory,
IConnectionFactory | public interface IConnectionFactory (Code) | | This is an abstract factory interface for creating connections.
author: GautamJ |
Method Summary | |
public Connection | createConnection() Creates a connection in an implementation specific fashion. | public void | freeConnection(Connection connection) If the implementation supports connection pooling, returns the connection back to the pool,
Otherwise, this will do nothing. | public boolean | usePreparedStatementCaching() Returns a true if the Prepared (and Call) Statements are to be cached for a connection. |
freeConnection | public void freeConnection(Connection connection) throws SQLException, IOException(Code) | | If the implementation supports connection pooling, returns the connection back to the pool,
Otherwise, this will do nothing.
Parameters: connection - The connection to return back to the pool. throws: SQLException - if any SQL error occurs throws: IOException - if any IO error occurs |
usePreparedStatementCaching | public boolean usePreparedStatementCaching()(Code) | | Returns a true if the Prepared (and Call) Statements are to be cached for a connection.
a true if the Prepared (and Call) Statements are to be cached for a connection. |
|
|