applications.basics
Class ExportQuery

java.lang.Object
  extended by java.lang.Thread
      extended by applications.basics.ExportQuery
All Implemented Interfaces:
java.lang.Runnable

public class ExportQuery
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 ImageButton cancel
           
 javax.swing.JFrame frame
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ExportQuery(java.lang.String host, java.lang.String user, java.lang.String password, java.lang.String database)
           
ExportQuery(java.lang.String host, java.lang.String user, java.lang.String password, java.lang.String database, java.lang.String query, java.lang.String file, boolean gui)
           
 
Method Summary
 void export()
           
 java.lang.String getDatabase()
          Get the value of database.
 java.lang.String getFieldSeparator()
          Get the value of fieldSeparator.
 boolean getGui()
          Get the value of gui.
 java.lang.String getHost()
          Get the value of host.
 int getNumberOfRows()
          Get the value of numberOfRows.
 java.lang.String getPassword()
          Get the value of password.
 java.lang.String getQuery()
          Get the value of query.
 java.lang.String getUser()
          Get the value of user.
static void main(java.lang.String[] args)
           
 void message(java.lang.String msg)
           
 void run()
           
 void selectFile()
           
 void setDatabase(java.lang.String v)
          Set the value of database.
 void setFieldSeparator(java.lang.String v)
          Set the value of fieldSeparator.
 void setGui(boolean v)
          Set the value of gui.
 void setHost(java.lang.String v)
          Set the value of host.
 void setNumberOfRows(int v)
          Set the value of numberOfRows.
 void setPassword(java.lang.String v)
          Set the value of password.
 void setQuery(java.lang.String v)
          Set the value of query.
 void setUser(java.lang.String v)
          Set the value of user.
 void verify()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cancel

public ImageButton cancel

frame

public javax.swing.JFrame frame
Constructor Detail

ExportQuery

public ExportQuery(java.lang.String host,
                   java.lang.String user,
                   java.lang.String password,
                   java.lang.String database,
                   java.lang.String query,
                   java.lang.String file,
                   boolean gui)

ExportQuery

public ExportQuery(java.lang.String host,
                   java.lang.String user,
                   java.lang.String password,
                   java.lang.String database)
Method Detail

getNumberOfRows

public int getNumberOfRows()
Get the value of numberOfRows.

Returns:
Value of numberOfRows.

setNumberOfRows

public void setNumberOfRows(int v)
Set the value of numberOfRows.

Parameters:
v - Value to assign to numberOfRows.

getFieldSeparator

public java.lang.String getFieldSeparator()
Get the value of fieldSeparator.

Returns:
Value of fieldSeparator.

setFieldSeparator

public void setFieldSeparator(java.lang.String v)
Set the value of fieldSeparator.

Parameters:
v - Value to assign to fieldSeparator.

getHost

public java.lang.String getHost()
Get the value of host.

Returns:
Value of host.

setHost

public void setHost(java.lang.String v)
Set the value of host.

Parameters:
v - Value to assign to host.

getUser

public java.lang.String getUser()
Get the value of user.

Returns:
Value of user.

setUser

public void setUser(java.lang.String v)
Set the value of user.

Parameters:
v - Value to assign to user.

getPassword

public java.lang.String getPassword()
Get the value of password.

Returns:
Value of password.

setPassword

public void setPassword(java.lang.String v)
Set the value of password.

Parameters:
v - Value to assign to password.

getDatabase

public java.lang.String getDatabase()
Get the value of database.

Returns:
Value of database.

setDatabase

public void setDatabase(java.lang.String v)
Set the value of database.

Parameters:
v - Value to assign to database.

getGui

public boolean getGui()
Get the value of gui.

Returns:
Value of gui.

setGui

public void setGui(boolean v)
Set the value of gui.

Parameters:
v - Value to assign to gui.

export

public void export()

getQuery

public java.lang.String getQuery()
Get the value of query.

Returns:
Value of query.

setQuery

public void setQuery(java.lang.String v)
Set the value of query.

Parameters:
v - Value to assign to query.

selectFile

public void selectFile()

verify

public void verify()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

message

public void message(java.lang.String msg)

main

public static void main(java.lang.String[] args)