com.pow2.dao
Class ProtomatterConnectionProvider

java.lang.Object
  extended bycom.pow2.dao.ConnectionProvider
      extended bycom.pow2.dao.ProtomatterConnectionProvider

public class ProtomatterConnectionProvider
extends ConnectionProvider

Connection provider for Protomatter Connection pool.
See http://protomatter.sourceforge.net/ for further informations.

Author:
Luca Fossato

Field Summary
 
Fields inherited from class com.pow2.dao.ConnectionProvider
cat, prefs
 
Constructor Summary
ProtomatterConnectionProvider()
          Default constructor.
 
Method Summary
protected  Connection getConnection()
          Get a JDBC Connection
protected  void init()
          Initialize the Protomatter connection pool.
 
Methods inherited from class com.pow2.dao.ConnectionProvider
getConnection, getLastToken, getPrefs, setPrefs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtomatterConnectionProvider

public ProtomatterConnectionProvider()
                              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 ConnectionProvider
Returns:
a JDBC Connection
Throws:
SQLException - Description of the Exception

init

protected void init()
             throws Exception
Initialize the Protomatter connection pool.

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


Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.