be.six.reports.util
Enum Configuration.ConfigurationKey

java.lang.Object
  extended by java.lang.Enum<Configuration.ConfigurationKey>
      extended by be.six.reports.util.Configuration.ConfigurationKey
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Configuration.ConfigurationKey>
Enclosing class:
Configuration

public static enum Configuration.ConfigurationKey
extends java.lang.Enum<Configuration.ConfigurationKey>

Defines a configuration key.

Author:
Joren Six

Enum Constant Summary
CSV_filename_timstamp_format
          The SimpleDateFormat string used in the filename of the csv-export.
CSV_separator
          The CSV field separator
database_connectionstring
          The JDBC connection string, e.g. jdbc:oracle:thin:@163.194.21.35:1521:INSTANCE
database_driver
          The JDBC database driver, e.g.
database_login
          The login for the database user
database_password
          The password for the database user
date_format
          The SimpleDateFormat string used in the csv-export.
export_folder
          The folder where the CSV exports are saved, , e.g.
list_queries
          Queries to populate comboboxes with.
number_format
          The NumberFormat string used in the csv-export.
queries_folder
          The folder with SQL queries, e.g.
 
Method Summary
static Configuration.ConfigurationKey valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Configuration.ConfigurationKey[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

queries_folder

public static final Configuration.ConfigurationKey queries_folder
The folder with SQL queries, e.g. /home/user/queries/ or C:/queries/ the last / is mandatory


export_folder

public static final Configuration.ConfigurationKey export_folder
The folder where the CSV exports are saved, , e.g. /home/user/export/ or C:/export/ the last / is mandatory


database_driver

public static final Configuration.ConfigurationKey database_driver
The JDBC database driver, e.g. oracle.jdbc.OracleDriver


database_connectionstring

public static final Configuration.ConfigurationKey database_connectionstring
The JDBC connection string, e.g. jdbc:oracle:thin:@163.194.21.35:1521:INSTANCE


database_login

public static final Configuration.ConfigurationKey database_login
The login for the database user


database_password

public static final Configuration.ConfigurationKey database_password
The password for the database user


list_queries

public static final Configuration.ConfigurationKey list_queries
Queries to populate comboboxes with. Defined by:
name: SQL Query [| othername : other SQL Query]
The sql query should yield a result with two columns, an id and a description. E.g.:
users: select id,name from users | categories: select id,desc from categories


date_format

public static final Configuration.ConfigurationKey date_format
The SimpleDateFormat string used in the csv-export. E.g yyyy-MM-dd hh:mm:ss


number_format

public static final Configuration.ConfigurationKey number_format
The NumberFormat string used in the csv-export. E.g. 0.##########


CSV_separator

public static final Configuration.ConfigurationKey CSV_separator
The CSV field separator


CSV_filename_timstamp_format

public static final Configuration.ConfigurationKey CSV_filename_timstamp_format
The SimpleDateFormat string used in the filename of the csv-export. E.g yyyy-MM-dd hh-mm-ss

Method Detail

values

public static Configuration.ConfigurationKey[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Configuration.ConfigurationKey c : Configuration.ConfigurationKey.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Configuration.ConfigurationKey valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null