package journal.action; import java.io.PrintStream; import journal.reader.JournalEntry; import journal.reader.Options; public abstract class BaseAction implements Action { public void start(Options options) throws Exception { this.options = options; this.out = options.outputStream; } public void help() { System.err.println("BaseAction.help : No help."); } public void finish() throws Exception { // empty implementation } public void putValue(JournalEntry entry) throws Exception { // empty implementation } public void replaceValue(JournalEntry entry) throws Exception { // empty implementation } public void deleteValue(JournalEntry entry) throws Exception { // empty implementation } public void verifyValue(JournalEntry entry) throws Exception { // empty implementation } public void commitMarker(JournalEntry entry) throws Exception { // empty implementation } public void flushMarker(JournalEntry entry) throws Exception { // empty implementation } protected PrintStream out; protected Options options; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 7529 | Sven Erik Knop |
Deleted the whole JournalReader. It has actually moved to //guest/sven_erik_knop/java/JournalReader/. |
||
#2 | 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 |
||
#1 | 7375 | Sven Erik Knop |
Major update of the JournalReader. Complete rewrite of the command line parsing Change in the options parsing within the journal reader New SQLLoader action. Currently only against MySQL (needs MySQL JDBC driver) with fixed database and user name. This will be replaced by a config file at some stage. |