Class Inquirer

java.lang.Object
   |
   +----Inquirer

public class Inquirer
extends Object
implements ActionListener, ItemListener
A simple application for SQL statements testing


Constructor Index

 o Inquirer()
Initializes private variables

Method Index

 o actionPerformed(ActionEvent)
implements the ActionListener method.
 o closeSql()
Closes all the SQL objects opened.
 o DBConnect(String)
connects to the Database and initializes it.
 o init()
Initializes the components in the window.
 o itemStateChanged(ItemEvent)
implements the ItemListener method.
 o main(String[])
The main entry function.

Constructors

 o Inquirer
 public Inquirer()
Initializes private variables

Methods

 o main
 public static void main(String args[])
The main entry function. It constructs an Inquirer object and initializes it.

 o closeSql
 protected void closeSql()
Closes all the SQL objects opened.

 o init
 public void init()
Initializes the components in the window.

 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
implements the ItemListener method. This method is used to update the rows in the other columns keeping track of row examined by the user

Parameters:
e - the item event
 o DBConnect
 protected void DBConnect(String dbName)
connects to the Database and initializes it.

 o actionPerformed
 public void actionPerformed(ActionEvent e)
implements the ActionListener method. This method choose an action listening to the TextFields changes.

Parameters:
e - the action event