package journal.action.sql; import java.util.HashMap; import java.util.Map; import journal.schema.Domain; /** * SupportedDatabase * * Lists all supported databases. * Simply a convenient placeholder for the type-mappings * defined in journal.schema.Domain * * @author Sven Erik Knop * */ public enum SupportedDatabase { MySQL, SQLite, Oracle; public void defineMapping(Domain d, String type) { mapping.put(d, type); } public String getMapping(Domain d) { return mapping.get(d); } final Map<Domain, String> mapping = new HashMap<Domain, String>(); }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 7529 | Sven Erik Knop |
Deleted the whole JournalReader. It has actually moved to //guest/sven_erik_knop/java/JournalReader/. |
||
#1 | 7427 | Sven Erik Knop |
Major update of the JournalReader: - New help (usage) system, which explains all options - Config file that allows storing of parameters in a file. These are necessary for the SQLLoader and Updater, because classpath, classname and connection parameters need to be set. (see the example *.cfg files provided) - Now tested with MySQL, SQLite and Oracle 10 XE |