de.uni_leipzig.wifa.iwi.mr3.dao.neo4j.impl
Class NeoHelper

Package class diagram package NeoHelper
java.lang.Object
  extended by de.uni_leipzig.wifa.iwi.mr3.dao.neo4j.impl.NeoHelper

public class NeoHelper
extends Object

Helper class for DAO layer, specially for neo4j persistence.


Constructor Summary
NeoHelper()
           
 
Method Summary
 org.neo4j.api.core.Node determineEcoreClassifierNode(String elementName)
          Determine a node by a given name inside a model by a given nsURI.
 org.neo4j.api.core.Node getModelNode(String nsUri)
          Determines the model node for the given namespace uri.
 org.neo4j.api.core.NeoService getNeo()
          Getter.
 org.neo4j.api.core.Node getSubrefNode(EcoreRelationshipType relationshipType)
          Determines the one and only subref node bound to the reference node by the specified relationship type.
 Iterable<org.neo4j.api.core.Node> getSubrefNodeChildren(EcoreRelationshipType relationshipType)
          Determines the children of the subrefNode bound to the reference node by the specified relationship type.
 void setNeo(org.neo4j.api.core.NeoService neoService)
          Setter.
 String toString(org.neo4j.api.core.Node node)
          Determine all information from a given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeoHelper

public NeoHelper()
Method Detail

setNeo

public void setNeo(org.neo4j.api.core.NeoService neoService)
Setter.

Parameters:
neoService - Neo4j service

getNeo

public org.neo4j.api.core.NeoService getNeo()
Getter.

Returns:
Neo4j service

toString

public String toString(org.neo4j.api.core.Node node)
Determine all information from a given node.

Parameters:
node - Node
Returns:
Informations

getModelNode

public org.neo4j.api.core.Node getModelNode(String nsUri)
Determines the model node for the given namespace uri.

Parameters:
nsUri - the model's namespace uri
Returns:
the model's node representation of EPackage

getSubrefNode

public org.neo4j.api.core.Node getSubrefNode(EcoreRelationshipType relationshipType)
Determines the one and only subref node bound to the reference node by the specified relationship type.

Parameters:
relationshipType - the relationship type
Returns:
the subref node

getSubrefNodeChildren

public Iterable<org.neo4j.api.core.Node> getSubrefNodeChildren(EcoreRelationshipType relationshipType)
Determines the children of the subrefNode bound to the reference node by the specified relationship type.

Parameters:
relationshipType - the relationship type from reference node to subreference node.
Returns:
subref node children Iterable

determineEcoreClassifierNode

public org.neo4j.api.core.Node determineEcoreClassifierNode(String elementName)
Determine a node by a given name inside a model by a given nsURI.

Parameters:
elementName - Element name
Returns:
Node


Copyright © 2010 Uni-Leipzig. All Rights Reserved.