org.mule.module.db.internal.domain.connection
Interface DbConnectionFactory

All Known Implementing Classes:
TransactionalDbConnectionFactory

public interface DbConnectionFactory

Creates database connections


Method Summary
 DbConnection createConnection(TransactionalAction transactionalAction)
          Creates a connection with a given TransactionalAction
 void releaseConnection(DbConnection connection)
          Indicates that the connection is not used anymore
 

Method Detail

createConnection

DbConnection createConnection(TransactionalAction transactionalAction)
                              throws SQLException
Creates a connection with a given TransactionalAction

Parameters:
transactionalAction - indicates whether or not the factory should look at active transactions in order to lookup for already created connections
Returns:
a connection for the given TransactionalAction
Throws:
SQLException - when not able to obtain a new connection

releaseConnection

void releaseConnection(DbConnection connection)
Indicates that the connection is not used anymore

Parameters:
connection - connection to release


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.