public ITable[] getTables() throws DataSetException { String[] names = getTableNames(); List tableList = new ArrayList(names.length); for (int i = 0; i < names.length; i++) { tableList.add(getTable(names[i]));
public ITable[] getTables() throws DataSetException { try { List tableList = new ArrayList(); for (Iterator it = _tables.iterator(); it.hasNext();) { TableEntry entry = (TableEntry)it.next();  ITable table = entry.getTable(); if (table == null) { table = _connection.createQueryTable( entry.getTableName(), entry.getQuery()); entry.setTable(table); } tableList.add(table); }  return (ITable[])tableList.toArray(new ITable[0]);
    public ITable[] getTables()        throws DataSetException {        String[] names = getTableNames();        List tableList = new ArrayList(names.length);        for (int i = 0; i < names.length; i++) {            tableList.add(getTable(names[i]));        }        return (ITable[]) tableList.toArray(new ITable[0]);    }