public class ConnectionPoolDataSourceConnectionProvider extends java.lang.Object implements ConnectionProvider
ConnectionProvider
Constructor and Description |
---|
ConnectionPoolDataSourceConnectionProvider(javax.sql.ConnectionPoolDataSource cpds) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes a provider and releases all its resources.
|
void |
closeConnection(java.sql.Connection connection)
Dispose of a used
connection . |
java.sql.Connection |
getConnection()
Returns a connection from connection pool.
|
void |
init()
Initialize the connection provider.
|
public ConnectionPoolDataSourceConnectionProvider(javax.sql.ConnectionPoolDataSource cpds)
public void init()
ConnectionProvider
init
in interface ConnectionProvider
public void close()
ConnectionProvider
close
in interface java.lang.AutoCloseable
close
in interface ConnectionProvider
public java.sql.Connection getConnection()
ConnectionProvider
getConnection
in interface ConnectionProvider
public void closeConnection(java.sql.Connection connection)
ConnectionProvider
connection
.closeConnection
in interface ConnectionProvider
Copyright © 2003-present Jodd Team