public interface DbConnectionFactory
Modifier and Type | Method and Description |
---|---|
DbConnection |
createConnection(TransactionalAction transactionalAction)
Creates a connection with a given
TransactionalAction |
void |
releaseConnection(DbConnection connection)
Indicates that the connection is not used anymore
|
DbConnection createConnection(TransactionalAction transactionalAction) throws SQLException
TransactionalAction
transactionalAction
- indicates whether or not the factory should
look at active transactions in order to lookup
for already created connectionsTransactionalAction
SQLException
- when not able to obtain a new connectionvoid releaseConnection(DbConnection connection)
connection
- connection to releaseCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.