it.eng.spago.dbaccess.pool
Class NativePoolWrapper

java.lang.Object
  extended byit.eng.spago.dbaccess.pool.NativePoolWrapper
All Implemented Interfaces:
ConnectionPoolInterface

public class NativePoolWrapper
extends java.lang.Object
implements ConnectionPoolInterface

Questa classe costituisce un Wrapper su pool di connessioni di tipo JDBC 2.0 e permette a un pool di connessioni di tipo jdbc 2.= nativo di essere utilizzato nel sottosistema di accesso ai dati


Constructor Summary
NativePoolWrapper(javax.sql.DataSource nativeConnectionPool)
           
 
Method Summary
 java.sql.Connection getConnection()
          Ritorna una connessione dal pool
 void release()
          Questa
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativePoolWrapper

public NativePoolWrapper(javax.sql.DataSource nativeConnectionPool)
Method Detail

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Ritorna una connessione dal pool

Specified by:
getConnection in interface ConnectionPoolInterface
Returns:
Connection - L'oggetto Connection ritornato dal pool nativo
Throws:
java.sql.SQLException

release

public void release()
             throws java.sql.SQLException
Description copied from interface: ConnectionPoolInterface
Questa

Specified by:
release in interface ConnectionPoolInterface
Throws:
java.sql.SQLException