@Test public void testNodeByTaxonId() throws Exception { try(Transaction tx = dao.beginTx()) { assertNull(idb.nodeByTaxonId("312")); Node n = create("312", "Abies", "Abies Mill."); tx.success(); assertEquals(n, idb.nodeByTaxonId("312")); assertNull(idb.nodeByTaxonId("412")); } }
protected Node nodeByTaxonId(String taxonID) { return Iterators.singleOrNull(dao.getNeo().findNodes(Labels.TAXON, NeoProperties.TAXON_ID, taxonID)); }
ImportDb { protected Node nodeByTaxonId(String taxonID) { return Iterators.singleOrNull(dao.getNeo().findNodes(Labels.TAXON, NeoProperties.TAXON_ID, taxonID)); } }
ImportDb { protected Node nodeByTaxonId(String taxonID) { return Iterators.singleOrNull(dao.getNeo().findNodes(Labels.TAXON, NeoProperties.TAXON_ID, taxonID)); } ImportDb(UUID datasetKey, UsageDao dao); }
ImportDb { protected Node nodeByTaxonId(String taxonID) { return Iterators.singleOrNull(dao.getNeo().findNodes(Labels.TAXON, NeoProperties.TAXON_ID, taxonID)); } ImportDb(UUID datasetKey, UsageDao dao); UUID getDatasetKey(); }
ImportDb { protected Node nodeByTaxonId(String taxonID) { return Iterators.singleOrNull(dao.getNeo().findNodes(Labels.TAXON, NeoProperties.TAXON_ID, taxonID)); } ImportDb(UUID datasetKey, UsageDao dao); UUID getDatasetKey();  }