View Javadoc
1   package com.atlassian.dbexporter;
2   
3   import java.sql.Connection;
4   import java.sql.SQLException;
5   
6   /**
7    * An interface to access a database connection
8    * <p>
9    * It is left up to implementations to define how the connection is managed (pooled, etc.). However connections should
10   * behave consistently when closed, with regards to transactions, etc. I.e. no assumptions should be made on how
11   * connections might be used.
12   */
13  public interface ConnectionProvider {
14      Connection getConnection() throws SQLException;
15  }