com.facetmap.sql
Interface ConnectionManager

All Known Implementing Classes:
ConnectionManager.Basic, ConnectionManager.DataSourceWrapper, ConnectionPoolManager

public interface ConnectionManager

Provides a transaction context for Facetmap. Facetmap goes to this class when it needs a database connection. If you have a connection management scheme (e.g. connection pool), this is the interface between it and Facetmap.

Although you may want to use either the Basic or DataSourceWrapper implentations provided here, the general recommendation is to use ConnectionPoolManager.


Nested Class Summary
static class ConnectionManager.Basic
          This implementation performs a primitive JDBC handling of the Connection lifecycle, taking its JDBC parameters from the Properties passed in at construction.
static class ConnectionManager.DataSourceWrapper
          Use this class to provide a J2EE DataSource to Facetmap as a ConnectionManager.
 
Method Summary
 java.sql.Connection getConnection()
           
 

Method Detail

getConnection

java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException