com.objectwave.persist.broker
Interface SqlConnectionFactory

All Known Implementing Classes:
DefaultConnectionSource, EjbConnectionSource

public interface SqlConnectionFactory

A connection factory will retrieve or create the necessary java.sql.Connection for communication with the database.

Version:
$Id: SqlConnectionFactory.java,v 2.1 2001/06/13 23:40:07 dave_hoag Exp $
Author:
dhoag

Method Summary
 java.sql.Connection checkConnection(RDBConnection jgrinderConnection)
          Create or retrieve the connection to use for accessing the database.
 void freeConnection(RDBConnection jgrinderConnection, java.sql.Connection connection)
          Release the connection back into the wild.
 

Method Detail

checkConnection

public java.sql.Connection checkConnection(RDBConnection jgrinderConnection)
                                    throws java.sql.SQLException
Create or retrieve the connection to use for accessing the database.

Parameters:
jgrinderConnection -
Returns:
Throws:
java.sql.SQLException

freeConnection

public void freeConnection(RDBConnection jgrinderConnection,
                           java.sql.Connection connection)
Release the connection back into the wild.

Parameters:
jgrinderConnection -
connection -