mysql
Class GenericSql.Extract

java.lang.Object
  extended by util.CommandLineParser
      extended by util.PropertyParser
          extended by mysql.GenericSql.Extract
Enclosing class:
GenericSql

public static final class GenericSql.Extract
extends PropertyParser

A class to retrive calumns from a database and output it into an ascii-file for e.g. plotting.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private static String FOOT
          A footer message.
private static Map MAP
          Convert command-line switches to keys use of switches.
private static String SWITCHES
          The switches for adding properties.
private static Map USE
          Detailed use of switches.
private static String ZERO
          The switches for adding properties.
 
Constructor Summary
GenericSql.Extract()
          Constructs the parser to the sensor tester.
 
Method Summary
static void main(String[] arg)
          Parses the command line and prints output to standard out.
private  boolean process(String[] arg)
          Process the switches.
 
Methods inherited from class util.PropertyParser
parseMap, parseMap, parseProperties, parseProperties, parseProperties
 
Methods inherited from class util.CommandLineParser
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SWITCHES

private static final String SWITCHES
The switches for adding properties.

See Also:
Constant Field Values

ZERO

private static final String ZERO
The switches for adding properties.

See Also:
Constant Field Values

USE

private static final Map USE
Detailed use of switches.


MAP

private static final Map MAP
Convert command-line switches to keys use of switches.


FOOT

private static final String FOOT
A footer message.

See Also:
Constant Field Values
Constructor Detail

GenericSql.Extract

public GenericSql.Extract()
Constructs the parser to the sensor tester. All known switches are registered.

Method Detail

process

private boolean process(String[] arg)
                 throws ParseException,
                        SQLException,
                        IOException
Process the switches.

Returns:
True, if processing was successful.
Throws:
ParseException
SQLException
IOException

main

public static void main(String[] arg)
                 throws ParseException,
                        SQLException,
                        IOException
Parses the command line and prints output to standard out.

Throws:
ParseException
SQLException
IOException