|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectde.uni_leipzig.wifa.iwi.mr3.dao.neo4j.impl.AbstractNeoSaveProcessor
public abstract class AbstractNeoSaveProcessor
Abstract save phase processor for neo4j storage.
This class contains all the methods all neo4j specific implementations need.
| Constructor Summary | |
|---|---|
AbstractNeoSaveProcessor()
|
|
| Method Summary | |
|---|---|
protected org.neo4j.api.core.Node |
createNode()
Create a node. |
protected org.neo4j.api.core.Node |
createNodeWithRelationship(org.neo4j.api.core.Node node,
EcoreRelationshipType relType,
boolean ordered)
Creates a node and binds it by a specified relationship to the given node. |
void |
dispatch(org.eclipse.emf.ecore.EObject element,
Map<org.eclipse.emf.ecore.EObject,Object> registry)
Dispatch the current element to its handler. |
NeoHelper |
getHelper()
Getter. |
protected org.neo4j.api.core.Node |
getNodeFromRegistry(org.eclipse.emf.ecore.EObject element,
Map<org.eclipse.emf.ecore.EObject,Object> registry)
Determine a node from the registry. |
void |
process(org.eclipse.emf.ecore.resource.Resource resource,
Map<org.eclipse.emf.ecore.EObject,Object> registry)
Process. |
void |
setHelper(NeoHelper neoHelper)
Setter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.uni_leipzig.wifa.iwi.mr3.dao.SaveProcessor |
|---|
process, process, process, process, process, process, process, process, process, process, process, process, process, process |
| Constructor Detail |
|---|
public AbstractNeoSaveProcessor()
| Method Detail |
|---|
public void setHelper(NeoHelper neoHelper)
neoHelper - the helper to setpublic NeoHelper getHelper()
public void process(org.eclipse.emf.ecore.resource.Resource resource,
Map<org.eclipse.emf.ecore.EObject,Object> registry)
process in interface SaveProcessorresource - Resourceregistry - Node cacheSaveProcessor.process(org.eclipse.emf.ecore.resource.Resource,
java.util.Map)
public void dispatch(org.eclipse.emf.ecore.EObject element,
Map<org.eclipse.emf.ecore.EObject,Object> registry)
The order of dispatch types dependends on type hierarchy. Special types must be checked earlier then generally types.
dispatch in interface SaveProcessorelement - Element to dispatchregistry - Node cache
protected org.neo4j.api.core.Node getNodeFromRegistry(org.eclipse.emf.ecore.EObject element,
Map<org.eclipse.emf.ecore.EObject,Object> registry)
element - Element for what we need a node.registry - Node cache
protected org.neo4j.api.core.Node createNodeWithRelationship(org.neo4j.api.core.Node node,
EcoreRelationshipType relType,
boolean ordered)
node - the noderelType - the relationship typeordered - true if node will be created with ordering position
value
protected org.neo4j.api.core.Node createNode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||