package journal.filter; import journal.reader.DataJournalEntry; public class OpenAndHaveFilter extends BaseFilter { private boolean passThrough(DataJournalEntry dataEntry) { String tableName = dataEntry.getTableName(); if (tableName.equals("db.have") || tableName.equals("db.working") || tableName.equals("db.locks") || tableName.equals("db.resolve") || tableName.equals("db.resolved")) { return false; } return true; } @Override public void putValue(DataJournalEntry entry) throws Exception { if (passThrough(entry)) { nextAction.putValue(entry); } } @Override public void replaceValue(DataJournalEntry entry) throws Exception { if (passThrough(entry)) { nextAction.replaceValue(entry); } } @Override public void deleteValue(DataJournalEntry entry) throws Exception { if (passThrough(entry)) { nextAction.deleteValue(entry); } } }
# | 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/filter/OpenAndHaveFilter.java | |||||
#2 | 8299 | Sven Erik Knop | Updated missing Filters with new JournalEntry policy. | ||
#1 | 8024 | Sven Erik Knop | Refactoring: moved the filter into their own package | ||
//guest/sven_erik_knop/java/JournalReader/src/journal/action/OpenAndHaveFilter.java | |||||
#1 | 7527 | Sven Erik Knop |
JournalReader, now in its proper place. Documentation to follow. |