org.dbforms.conprovider
Class SinglePerThreadConnectionProvider

java.lang.Object
  extended by org.dbforms.conprovider.AbstractConnectionProvider
      extended by org.dbforms.conprovider.SinglePerThreadConnectionProvider

public class SinglePerThreadConnectionProvider
extends AbstractConnectionProvider

Single Connection per thread provider.
provides one connection for all

Author:
Henner Kollmann

Constructor Summary
SinglePerThreadConnectionProvider()
          Default constructor.
 
Method Summary
protected  Connection getConnection()
          Get a JDBC Connection
protected  void init()
          Initialize the ConnectionProvider.
 
Methods inherited from class org.dbforms.conprovider.AbstractConnectionProvider
getConnection, getLastToken, getPrefs, setPrefs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinglePerThreadConnectionProvider

public SinglePerThreadConnectionProvider()
                                  throws Exception
Default constructor.

Throws:
Exception - Description of the Exception
Exception - because of the throws Exception clause of the init method.
Method Detail

getConnection

protected Connection getConnection()
                            throws SQLException
Get a JDBC Connection

Specified by:
getConnection in class AbstractConnectionProvider
Returns:
a JDBC Connection
Throws:
SQLException - Description of the Exception

init

protected void init()
             throws Exception
Initialize the ConnectionProvider.

Specified by:
init in class AbstractConnectionProvider
Throws:
Exception - if any error occurs


Copyright © 2002-2006 DbForms. All Rights Reserved.