From: Randy Baumgarte Date: Sun, 3 Apr 2011 15:29:33 +0000 (-0400) Subject: Added function to find the children of a tag. Not currently used, but will be in... X-Git-Tag: version0.1.1~166 X-Git-Url: http://git.sourceforge.jp/view?p=neighbornote%2FNeighborNote.git;a=commitdiff_plain;h=78d73ebd92aeecb5f9a5718f61899388614bffb4;ds=sidebyside Added function to find the children of a tag. Not currently used, but will be in future releases. --- 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