1 21 package org.dbunit.database; 22 23 import org.dbunit.dataset.DataSetException; 24 import org.dbunit.dataset.ITableMetaData; 25 26 import java.sql.SQLException ; 27 28 34 public class CachedResultSetTableFactory implements IResultSetTableFactory 35 { 36 public IResultSetTable createTable(String tableName, String selectStatement, 37 IDatabaseConnection connection) throws SQLException , DataSetException 38 { 39 return new CachedResultSetTable(new ForwardOnlyResultSetTable( 40 tableName, selectStatement, connection)); 41 } 42 43 public IResultSetTable createTable(ITableMetaData metaData, 44 IDatabaseConnection connection) throws SQLException , DataSetException 45 { 46 return new CachedResultSetTable(metaData, connection); 47 } 48 } 49 | Popular Tags |