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, PostgreSQL; 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 | |
---|---|---|---|---|---|
#1 | 24773 | Norman Morse |
Moving journalReader from sven's private branch to perforce_software. This is because journalReader is used in the perfsplit test harness, and should be updated over time. Merging //guest/sven_erik_knop/java/JournalReader/... to //guest/perforce_software/journalReader/... |
||
//guest/sven_erik_knop/java/JournalReader/src/journal/action/sql/SupportedDatabase.java | |||||
#2 | 8237 | Sven Erik Knop | Adopted Nick Poole's changes to add PostgresSQL support. | ||
#1 | 7527 | Sven Erik Knop |
JournalReader, now in its proper place. Documentation to follow. |