From 78d73ebd92aeecb5f9a5718f61899388614bffb4 Mon Sep 17 00:00:00 2001 From: Randy Baumgarte Date: Sun, 3 Apr 2011 11:29:33 -0400 Subject: [PATCH] Added function to find the children of a tag. Not currently used, but will be in future releases. --- src/cx/fbn/nevernote/sql/TagTable.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/cx/fbn/nevernote/sql/TagTable.java b/src/cx/fbn/nevernote/sql/TagTable.java index 8eed134..6fb443e 100644 --- a/src/cx/fbn/nevernote/sql/TagTable.java +++ b/src/cx/fbn/nevernote/sql/TagTable.java @@ -489,4 +489,20 @@ public class TagTable { query.exec("Update tag set parentguid=null where parentguid not in (select distinct guid from tag);"); } + + + public List findChildren(String guid, List tagList) { + List returnValue = new ArrayList(); + + for (int i=0; i childMatch = findChildren(tagList.get(i).getGuid(), tagList); + for (int j=0; j