1 21 22 package org.dbunit.database; 23 24 import org.dbunit.database.statement.IStatementFactory; 25 import org.dbunit.dataset.DataSetException; 26 import org.dbunit.dataset.IDataSet; 27 import org.dbunit.dataset.ITable; 28 29 import java.sql.Connection ; 30 import java.sql.SQLException ; 31 32 39 public interface IDatabaseConnection 40 { 41 44 public Connection getConnection() throws SQLException ; 45 46 49 public String getSchema(); 50 51 54 public void close() throws SQLException ; 55 56 59 public IDataSet createDataSet() throws SQLException ; 60 61 65 public IDataSet createDataSet(String [] tableNames) throws SQLException ; 66 67 74 public ITable createQueryTable(String resultName, String sql) 75 throws DataSetException, SQLException ; 76 77 83 public int getRowCount(String tableName) throws SQLException ; 84 85 92 public int getRowCount(String tableName, String whereClause) throws SQLException ; 93 94 97 public DatabaseConfig getConfig(); 98 99 102 public IStatementFactory getStatementFactory(); 103 } 104 105 106 107 108 109 110 111 112 | Popular Tags |