Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hsqldb.util
Class QueryTool  view QueryTool download QueryTool.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended byorg.hsqldb.util.QueryTool
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.awt.event.WindowListener

public class QueryTool
extends java.applet.Applet
implements java.awt.event.WindowListener, java.awt.event.ActionListener

Class declaration

Version:
1.7.0

Nested Class Summary
 
Nested classes inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  boolean bApplication
           
(package private)  java.awt.Button butExecute
           
(package private)  java.awt.Button butImport
           
(package private)  java.awt.Button butScript
           
(package private)  java.sql.Connection cConn
           
(package private)  java.awt.Choice choRecent
           
(package private) static java.awt.Frame fMain
          You can start QueryTool without a browser and applet using using this method.
(package private)  Grid gResult
           
(package private) static int iMaxRecent
           
(package private)  int iRecent
           
(package private) static java.util.Properties pProperties
           
(package private)  java.lang.String[] sRecent
           
(package private)  java.sql.Statement sStatement
           
(package private) static java.lang.String[] sTestData
           
(package private)  java.awt.TextArea txtCommand
           
 
Fields inherited from class java.applet.Applet
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
QueryTool()
           
 
Method Summary
 boolean action(java.awt.Event evt, java.lang.Object arg)
          This is function handles the events when a button is clicked or when the used double-clicked on the listbox of recent commands.
 void actionPerformed(java.awt.event.ActionEvent ev)
          Method declaration
(package private)  void formatResultSet(java.sql.ResultSet r)
          Method declaration
(package private)  java.lang.String getImport()
          Method declaration
(package private)  java.lang.String getScript()
          Method declaration
 void init()
          Initializes the window and the database and inserts some test data.
private  void initGUI()
          Create the graphical user interface.
(package private)  void insertTestData()
          Method declaration
static void main(java.lang.String[] arg)
          Method declaration
(package private) static void printHelp()
          Method declaration
private  void setRecent(java.lang.String s)
          Adds a String to the Listbox of recent commands.
(package private)  void trace(java.lang.String s)
          Method declaration
 void windowActivated(java.awt.event.WindowEvent e)
          Method declaration
 void windowClosed(java.awt.event.WindowEvent e)
          Method declaration
 void windowClosing(java.awt.event.WindowEvent ev)
          Method declaration
 void windowDeactivated(java.awt.event.WindowEvent e)
          Method declaration
 void windowDeiconified(java.awt.event.WindowEvent e)
          Method declaration
 void windowIconified(java.awt.event.WindowEvent e)
          Method declaration
 void windowOpened(java.awt.event.WindowEvent e)
          Method declaration
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pProperties

static java.util.Properties pProperties

bApplication

boolean bApplication

fMain

static java.awt.Frame fMain
You can start QueryTool without a browser and applet using using this method. Type 'java QueryTool' to start it. This is necessary if you want to use the standalone version because appletviewer and internet browers do not allow the applet to write to disk.


cConn

java.sql.Connection cConn

sStatement

java.sql.Statement sStatement

sRecent

java.lang.String[] sRecent

iMaxRecent

static int iMaxRecent

iRecent

int iRecent

txtCommand

java.awt.TextArea txtCommand

butExecute

java.awt.Button butExecute

butScript

java.awt.Button butScript

butImport

java.awt.Button butImport

choRecent

java.awt.Choice choRecent

gResult

Grid gResult

sTestData

static java.lang.String[] sTestData
Constructor Detail

QueryTool

public QueryTool()
Method Detail

main

public static void main(java.lang.String[] arg)
Method declaration


init

public void init()
Initializes the window and the database and inserts some test data.


trace

void trace(java.lang.String s)
Method declaration


action

public boolean action(java.awt.Event evt,
                      java.lang.Object arg)
This is function handles the events when a button is clicked or when the used double-clicked on the listbox of recent commands.


formatResultSet

void formatResultSet(java.sql.ResultSet r)
Method declaration


getScript

java.lang.String getScript()
Method declaration


getImport

java.lang.String getImport()
Method declaration


setRecent

private void setRecent(java.lang.String s)
Adds a String to the Listbox of recent commands.


initGUI

private void initGUI()
Create the graphical user interface. This is AWT code.


insertTestData

void insertTestData()
Method declaration


printHelp

static void printHelp()
Method declaration


windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Method declaration

Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Method declaration

Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Method declaration

Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent ev)
Method declaration

Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Method declaration

Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Method declaration

Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Method declaration

Specified by:
windowOpened in interface java.awt.event.WindowListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
Method declaration

Specified by:
actionPerformed in interface java.awt.event.ActionListener