package journal.action; import journal.reader.DataJournalEntry; public class FileTypePrinter extends BaseAction { @Override public void putValue(DataJournalEntry data) throws Exception { if( data.getTableName().startsWith("db.rev") ) { Integer type = (Integer) data.getValue("type"); Integer lbrType = (Integer) data.getValue("atype"); String depotFile = (String) data.getValue("dfile"); System.out.println(depotFile + " type = " + type + " lbrType = " + lbrType); } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 8296 | Sven Erik Knop |
Clean-up: instead of casting in every action, cast only once in the dispatcher. Should make code saner and safer. No functional change. |
||
#1 | 7873 | Sven Erik Knop | Simple FileTypePrinter action. |