ResultSet resultSet = statement.executeQuery( getSelectStatement(schema, metaData));
String sql = getSelectStatement(schema, metaData); ResultSet resultSet = statement.executeQuery(sql);
    public ITable getTable(String tableName) throws DataSetException    {        try        {            ITableMetaData metaData = getTableMetaData(tableName);            Connection jdbcConnection = _connection.getConnection();            String schema = _connection.getSchema();            Statement statement = jdbcConnection.createStatement();            try            {                ResultSet resultSet = statement.executeQuery(                        getSelectStatement(schema, metaData));                try                {                    return new CachedResultSetTable(metaData, resultSet);                }                finally                {                    resultSet.close();                }            }            finally            {                statement.close();            }        }        catch (SQLException e)        {            throw new DataSetException(e);        }    }