{
final ISQLConnection conn = getSession().getSQLConnection();
final SQLDatabaseMetaData md = conn.getSQLMetaData();
final ITableInfo ti = getTableInfo();
final BestRowIdentifier[] bris = md.getBestRowIdentifier(ti);
return new JavabeanArrayDataSet(AdapterFactory.getInstance().createBestRowIdentifierAdapter(bris));
}
catch (SQLException ex)
{
throw new DataSetException(ex);
}