net.sf.jasperreports.jsf.engine
Class ConnectionWrapper

java.lang.Object
  extended by net.sf.jasperreports.jsf.engine.ConnectionWrapper
All Implemented Interfaces:
Source

public class ConnectionWrapper
extends Object
implements Source

Source implementation of a connection wrapper.

Author:
A. Alonso Dominguez

Constructor Summary
ConnectionWrapper(Connection connection)
          Constructor with connection instance.
 
Method Summary
 void dispose()
          Disposes this source instance.
 Connection getConnection()
          Obtains the wrapped connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionWrapper

public ConnectionWrapper(Connection connection)
Constructor with connection instance.

Parameters:
connection - the connection to wrap.
Method Detail

getConnection

public final Connection getConnection()
Obtains the wrapped connection.

Returns:
the wrapped connection.

dispose

public void dispose()
             throws Exception
Disposes this source instance.

Specified by:
dispose in interface Source
Throws:
Exception - if some error happens closing the connection.


Copyright © 2011 SourceForge.net. All Rights Reserved.