程序包 weka.gui.sql

类 SqlViewer

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ConnectionListener, HistoryChangedListener, QueryExecuteListener, ResultChangedListener

Represents a little tool for querying SQL databases.
版本:
$Revision: 10438 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 字段详细资料

    • WIDTH

      public static final String WIDTH
      the width property in the history file.
      另请参阅:
    • HEIGHT

      public static final String HEIGHT
      the height property in the history file.
      另请参阅:
  • 构造器详细资料

    • SqlViewer

      public SqlViewer(JFrame parent)
      initializes the SqlViewer.
      参数:
      parent - the parent of this panel
  • 方法详细资料

    • connectionChange

      public void connectionChange(ConnectionEvent evt)
      This method gets called when the connection is either established or disconnected.
      指定者:
      connectionChange 在接口中 ConnectionListener
      参数:
      evt - the event
    • queryExecuted

      public void queryExecuted(QueryExecuteEvent evt)
      This method gets called when a query has been executed.
      指定者:
      queryExecuted 在接口中 QueryExecuteListener
      参数:
      evt - the event
    • resultChanged

      public void resultChanged(ResultChangedEvent evt)
      This method gets called when a query has been executed.
      指定者:
      resultChanged 在接口中 ResultChangedListener
      参数:
      evt - the event
    • historyChanged

      public void historyChanged(HistoryChangedEvent evt)
      This method gets called when a history is modified. It saves the history immediately to the users home directory.
      指定者:
      historyChanged 在接口中 HistoryChangedListener
      参数:
      evt - the event
    • saveSize

      public void saveSize()
      obtains the size of the panel and saves it in the history.
      另请参阅:
      • saveHistory()
    • clear

      public void clear()
      calls the clear method of all sub-panels to set back to default values and free up memory.
    • getURL

      public String getURL()
      returns the database URL from the currently active tab in the ResultPanel, otherwise an empty string.
      返回:
      the currently selected tab's URL
      另请参阅:
    • getUser

      public String getUser()
      returns the user from the currently active tab in the ResultPanel, otherwise an empty string.
      返回:
      the currently selected tab's user
      另请参阅:
    • getPassword

      public String getPassword()
      returns the password from the currently active tab in the ResultPanel, otherwise an empty string.
      返回:
      the currently selected tab's password
      另请参阅:
    • getQuery

      public String getQuery()
      returns the query from the currently active tab in the ResultPanel, otherwise an empty string.
      返回:
      the currently selected tab's query
      另请参阅:
    • addConnectionListener

      public void addConnectionListener(ConnectionListener l)
      adds the given listener to the list of listeners.
      参数:
      l - the listener to add to the list
    • removeConnectionListener

      public void removeConnectionListener(ConnectionListener l)
      removes the given listener from the list of listeners.
      参数:
      l - the listener to remove
    • addQueryExecuteListener

      public void addQueryExecuteListener(QueryExecuteListener l)
      adds the given listener to the list of listeners.
      参数:
      l - the listener to add to the list
    • removeQueryExecuteListener

      public void removeQueryExecuteListener(QueryExecuteListener l)
      removes the given listener from the list of listeners.
      参数:
      l - the listener to remove
    • addResultChangedListener

      public void addResultChangedListener(ResultChangedListener l)
      adds the given listener to the list of listeners.
      参数:
      l - the listener to add to the list
    • removeResultChangedListener

      public void removeResultChangedListener(ResultChangedListener l)
      removes the given listener from the list of listeners.
      参数:
      l - the listener to remove
    • addHistoryChangedListener

      public void addHistoryChangedListener(HistoryChangedListener l)
      adds the given listener to the list of listeners.
      参数:
      l - the listener to add to the list
    • removeHistoryChangedListener

      public void removeHistoryChangedListener(HistoryChangedListener l)
      removes the given listener from the list of listeners.
      参数:
      l - the listener to remove
    • main

      public static void main(String[] args)
      starts the SQL-Viewer interface.
      参数:
      args - the commandline arguments - ignored