use of org.eol.globi.domain.SeasonNode in project eol-globi-data by jhpoelen.
the class NodeFactoryNeo4j method createSeason.
@Override
public SeasonNode createSeason(String seasonNameLower) {
Node node = createSeasonNode();
SeasonNode season = new SeasonNode(node, seasonNameLower);
indexSeasonNode(seasonNameLower, node);
return season;
}
use of org.eol.globi.domain.SeasonNode in project eol-globi-data by jhpoelen.
the class NodeFactoryNeo4j2 method findSeason.
@Override
public SeasonNode findSeason(String seasonName) {
IndexHits<Node> nodeIndexHits = seasons.get(SeasonNode.TITLE, seasonName);
Node seasonHit = nodeIndexHits.getSingle();
nodeIndexHits.close();
return seasonHit == null ? null : new SeasonNode(seasonHit);
}
Aggregations