From f3452eb2ca7fb3afbac6f024b7a3fa89b2f51122 Mon Sep 17 00:00:00 2001 From: Daniel Bluhm Date: Thu, 18 Jun 2020 13:26:32 -0400 Subject: [PATCH] Rename find() -> findAll() Signed-off-by: Daniel Bluhm --- .../org/eclipse/ice/dev/annotations/IPersistenceHandler.java | 4 ++-- .../src/main/resources/templates/PersistenceHandler.vm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/org.eclipse.ice.dev.annotations/src/main/java/org/eclipse/ice/dev/annotations/IPersistenceHandler.java b/org.eclipse.ice.dev.annotations/src/main/java/org/eclipse/ice/dev/annotations/IPersistenceHandler.java index 766b027a8..6eff0e763 100644 --- a/org.eclipse.ice.dev.annotations/src/main/java/org/eclipse/ice/dev/annotations/IPersistenceHandler.java +++ b/org.eclipse.ice.dev.annotations/src/main/java/org/eclipse/ice/dev/annotations/IPersistenceHandler.java @@ -19,12 +19,12 @@ public interface IPersistenceHandler { public long clear() throws Exception; /** - * Retrieve all DataElements from the collection. + * Find and retrieve all DataElements from the collection. * @param * @return an iterable of the retrieved elements. * @throws Exception */ - public Iterable find() throws Exception; + public Iterable findAll() throws Exception; /** * Find DataElement by UUID. diff --git a/org.eclipse.ice.dev.annotations/src/main/resources/templates/PersistenceHandler.vm b/org.eclipse.ice.dev.annotations/src/main/resources/templates/PersistenceHandler.vm index ceb3fd76e..47a24351f 100644 --- a/org.eclipse.ice.dev.annotations/src/main/resources/templates/PersistenceHandler.vm +++ b/org.eclipse.ice.dev.annotations/src/main/resources/templates/PersistenceHandler.vm @@ -51,13 +51,13 @@ public class $class implements $interface<$elementInterface> { } /** - * Retrieve all $elementInterface from the collection. + * Find and retrieve all $elementInterface from the collection. * @param * @return an iterable of the retrieved elements. * @throws Exception */ @Override - public Iterable<$elementInterface> find() throws Exception { + public Iterable<$elementInterface> findAll() throws Exception { return this.collection.find() .map(doc -> new ${implementation}().fromJSON(doc)); }