@Test public void testNodesByCanonical() throws Exception { try(Transaction tx = dao.beginTx()) { assertEquals(0, idb.nodesByCanonical("Abies").size()); create("312", "Abies", "Abies Mill."); tx.success(); assertEquals(1, idb.nodesByCanonical("Abies").size()); create("313", "Abies", "Abies Mill."); tx.success(); assertEquals(2, idb.nodesByCanonical("Abies").size()); } }
protected Collection<Node> nodesByCanonical(String canonical) { return Iterators .asCollection(dao.getNeo().findNodes(Labels.TAXON, NeoProperties.CANONICAL_NAME, canonical)); }
ImportDb { protected Collection<Node> nodesByCanonical(String canonical) { return Iterators .asCollection(dao.getNeo().findNodes(Labels.TAXON, NeoProperties.CANONICAL_NAME, canonical)); } }
ImportDb { protected Collection<Node> nodesByCanonical(String canonical) { return Iterators .asCollection(dao.getNeo().findNodes(Labels.TAXON, NeoProperties.CANONICAL_NAME, canonical)); } ImportDb(UUID datasetKey, UsageDao dao); }
ImportDb { protected Collection<Node> nodesByCanonical(String canonical) { return Iterators .asCollection(dao.getNeo().findNodes(Labels.TAXON, NeoProperties.CANONICAL_NAME, canonical)); } ImportDb(UUID datasetKey, UsageDao dao); UUID getDatasetKey(); }
ImportDb { protected Collection<Node> nodesByCanonical(String canonical) { return Iterators .asCollection(dao.getNeo().findNodes(Labels.TAXON, NeoProperties.CANONICAL_NAME, canonical)); } ImportDb(UUID datasetKey, UsageDao dao); UUID getDatasetKey();  }