This is a JNDI specific implementation of IConnectionFactory.
It assumes that the Jdbc Engine is being executed in the same VM in which a DataSource has already been defined.
It will use JNDI to get a handle on the DataSource resource and a Connection from that DataSource.
author: GautamJ
Creates a connection using the DataSource obtained via JNDI.
throws: SQLException - if any SQL error occurs throws: IOException - if any IO error occurs a Connection
Returns the connection back to the pool.
Parameters: connection - The connection to return back to the pool. throws: SQLException - if any SQL error occurs throws: IOException - if any IO error occurs
Setter for property maxWait.
Parameters: maxWait - New value of property maxWait.
usePreparedStatementCaching
public boolean usePreparedStatementCaching()(Code)
Returns a true if the Prepared (and Call) Statements are to be cached for a connection.
This will return a false. The JNDI DataSource is expected to specify a pool for the PreparedStatements.
a true if the Prepared (and Call) Statements are to be cached for a connection.