| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is an abstract factory interface for creating connections.
| Method Summary | |
|  Connection | createConnection()Creates a connection in an implementation specific fashion. | 
|  void | freeConnection(Connection connection)If the implementation supports connection pooling, returns the connection back to the pool, Otherwise, this will do nothing. | 
|  boolean | usePreparedStatementCaching()Returns a true if the Prepared (and Call) Statements are to be cached for a connection. | 
| Method Detail | 
public Connection createConnection()
                            throws SQLException,
                                   IOException
SQLException - if any SQL error occurs
IOException - if any IO error occurs
public void freeConnection(Connection connection)
                    throws SQLException,
                           IOException
connection - The connection to return back to the pool.
SQLException - if any SQL error occurs
IOException - if any IO error occurspublic boolean usePreparedStatementCaching()
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||