Search in sources :

Example 1 with SeasonNode

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;
}
Also used : JsonNode(com.fasterxml.jackson.databind.JsonNode) LocationNode(org.eol.globi.domain.LocationNode) EnvironmentNode(org.eol.globi.domain.EnvironmentNode) SpecimenNode(org.eol.globi.domain.SpecimenNode) Node(org.neo4j.graphdb.Node) SeasonNode(org.eol.globi.domain.SeasonNode) DatasetNode(org.eol.globi.domain.DatasetNode) StudyNode(org.eol.globi.domain.StudyNode) InteractionNode(org.eol.globi.domain.InteractionNode) SeasonNode(org.eol.globi.domain.SeasonNode)

Example 2 with SeasonNode

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);
}
Also used : DatasetNode(org.eol.globi.domain.DatasetNode) LocationNode(org.eol.globi.domain.LocationNode) StudyNode(org.eol.globi.domain.StudyNode) Node(org.neo4j.graphdb.Node) SeasonNode(org.eol.globi.domain.SeasonNode) EnvironmentNode(org.eol.globi.domain.EnvironmentNode) SeasonNode(org.eol.globi.domain.SeasonNode)

Aggregations

DatasetNode (org.eol.globi.domain.DatasetNode)2 EnvironmentNode (org.eol.globi.domain.EnvironmentNode)2 LocationNode (org.eol.globi.domain.LocationNode)2 SeasonNode (org.eol.globi.domain.SeasonNode)2 StudyNode (org.eol.globi.domain.StudyNode)2 Node (org.neo4j.graphdb.Node)2 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 InteractionNode (org.eol.globi.domain.InteractionNode)1 SpecimenNode (org.eol.globi.domain.SpecimenNode)1