示例#1
0
 @Override
 public void UpdateEntry(JournalEntry entry) {
   wrapper.ReplaceDocument(
       getDocument(entry), new Term(EntryIndexFields.ID.name(), entry.getUid().toString()));
 }
示例#2
0
 @Override
 public void DeleteEntry(JournalEntry entry) {
   wrapper.DeleteDocuments(new Term(EntryIndexFields.ID.name(), entry.getUid().toString()));
 }
示例#3
0
 @Override
 public void AddEntry(JournalEntry entry) {
   wrapper.AddDocument(getDocument(entry));
 }