org.apache.openjpa.lib.jdbc
Interface ConnectionDecorator

All Known Implementing Classes:
ConfiguringConnectionDecorator, JDBCEventConnectionDecorator, LoggingConnectionDecorator

public interface ConnectionDecorator

A connection decorator can wrap Connections before they are returned to the user to add functionality.

Author:
Abe White

Method Summary
 java.sql.Connection decorate(java.sql.Connection conn)
          Decorate the given connection if desired.
 

Method Detail

decorate

java.sql.Connection decorate(java.sql.Connection conn)
                             throws java.sql.SQLException
Decorate the given connection if desired.

Throws:
java.sql.SQLException


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.