1 12 package org.openbravo.database; 13 14 import java.sql.*; 15 import org.openbravo.exception.*; 16 17 public interface ConnectionProvider { 18 public Connection getConnection() throws NoConnectionAvailableException; 19 public String getRDBMS(); 20 public Connection getTransactionConnection() throws NoConnectionAvailableException, SQLException; 21 public void releaseCommitConnection(Connection conn) throws SQLException; 22 public void releaseRollbackConnection(Connection conn) throws SQLException; 23 public PreparedStatement getPreparedStatement(String poolName, String strSql) throws Exception ; 24 public PreparedStatement getPreparedStatement(String strSql) throws Exception ; 25 public PreparedStatement getPreparedStatement(Connection conn, String strSql) throws SQLException; 26 public void releasePreparedStatement(PreparedStatement preparedStatement) throws SQLException; 27 public Statement getStatement(String poolName) throws Exception ; 28 public Statement getStatement() throws Exception ; 29 public Statement getStatement(Connection conn) throws SQLException; 30 public void releaseStatement(Statement statement) throws SQLException; 31 public void releaseTransactionalStatement(Statement statement) throws SQLException; 32 public void releaseTransactionalPreparedStatement(PreparedStatement preparedStatement) throws SQLException; 33 public CallableStatement getCallableStatement(String poolName, String strSql) throws Exception ; 34 public CallableStatement getCallableStatement(String strSql) throws Exception ; 35 public CallableStatement getCallableStatement(Connection conn, String strSql) throws SQLException; 36 public void releaseCallableStatement(CallableStatement callableStatement) throws SQLException; 37 } 38
| Popular Tags
|