All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.squirrel_sql.client.session.mainpanel.IResultTab Maven / Gradle / Ivy

Go to download

This is the jar that contains the main application classes which are very specific to SQuirreLSQL.

There is a newer version: 3.5.0
Show newest version
/*
 * Copyright (C) 2007 Rob Manning
 * [email protected]
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
package net.sourceforge.squirrel_sql.client.session.mainpanel;

import java.awt.Component;

import net.sourceforge.squirrel_sql.client.session.SQLExecutionInfo;
import net.sourceforge.squirrel_sql.fw.datasetviewer.DataSetException;
import net.sourceforge.squirrel_sql.fw.datasetviewer.ResultSetDataSet;
import net.sourceforge.squirrel_sql.fw.datasetviewer.ResultSetMetaDataDataSet;
import net.sourceforge.squirrel_sql.fw.datasetviewer.TableState;
import net.sourceforge.squirrel_sql.fw.id.IHasIdentifier;
import net.sourceforge.squirrel_sql.fw.id.IIdentifier;

public interface IResultTab {

    /**
     * Show the results from the passed IDataSet.
     *
     * @param	rsds	ResultSetDataSet to show results for.
     * @param	mdds	ResultSetMetaDataDataSet for rsds.
     * @param	exInfo	Execution info.
     *
     * @throws	IllegalArgumentException
     * 			Thrown if null SQLExecutionInfo passed.
     *
     * @throws	DataSetException
     * 			Thrown if error occured processing dataset.
     */
    void showResults(ResultSetDataSet rsds, ResultSetMetaDataDataSet mdds,
            SQLExecutionInfo exInfo) throws DataSetException;

    /**
     * Clear results and current SQL script.
     */
    void clear();

    /**
     * Return the current SQL script.
     *
     * @return	Current SQL script.
     */
    String getSqlString();

    /**
     * Return the current SQL script with control characters removed.
     *
     * @return	Current SQL script.
     */
    String getViewableSqlString();

    /**
     * Return the title for this tab.
     */
    String getTitle();

    /**
     * Close this tab.
     */
    void closeTab();

    void returnToTabbedPane();

    Component getOutputComponent();

    void reRunSQL();

    /**
     * @see IHasIdentifier#getIdentifier()
     */
    IIdentifier getIdentifier();

    TableState getResultSortableTableState();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy