use of org.dbunit.database.ResultSetTableMetaData in project sharding-jdbc by shardingjdbc.
the class SQLAssertHelper method createTable.
private CachedResultSetTable createTable(final String tableName, final PreparedStatement preparedStatement, final IDatabaseConnection connection) throws SQLException, DataSetException {
preparedStatement.execute();
ResultSet rs = preparedStatement.getResultSet();
ITableMetaData metaData = new ResultSetTableMetaData(tableName, rs, connection, false);
ForwardOnlyResultSetTable table = new ForwardOnlyResultSetTable(metaData, rs);
return new CachedResultSetTable(table);
}
Aggregations