public interface ConnectionProvider
extends java.lang.AutoCloseable
Implementors might also implement connection pooling.
Implementations should provide a public default constructor.
| 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.
|
void init()
java.sql.Connection getConnection()
void closeConnection(java.sql.Connection connection)
connection.void close()
close in interface java.lang.AutoCloseableCopyright © 2003-present Jodd Team