Class JDBCQueryTool

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class JDBCQueryTool extends JComponent
A graphical interactive SQL query tool that allows for queries to be executed to a JDBC driver.
Author:
Tobias Downer
See Also:
  • Field Details

    • auto_resize_result_table

      protected JCheckBoxMenuItem auto_resize_result_table
      Set to true if the table is auto resize (default).
  • Constructor Details

    • JDBCQueryTool

      public JDBCQueryTool(QueryAgent in_query_agent)
      Constructs the JComponent.
    • JDBCQueryTool

      public JDBCQueryTool(Connection connection)
      Constructs the JComponent.
  • Method Details

    • createNewWindow

      public static void createNewWindow(Connection connection, boolean close_connection_on_close, boolean system_exit_on_close)
      Creates a new JDBC Query Tool window. Use this method to open a new query window in a JFrame to the database.
      Parameters:
      connection - the connection to the database
      close_connection_on_close - if true the JDBC Connection is closed when the last query tool window is closed.
      system_exit_on_close - if true the JVM will shut down when the last query tool window is closed.
    • main

      public static void main(String[] args)
      Application start point.