|
||||||||||
| 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.ModelRepositoryDaoNeo4jImpl
public class ModelRepositoryDaoNeo4jImpl
Implementation of DAO for access to neo4j network database.
| Constructor Summary | |
|---|---|
ModelRepositoryDaoNeo4jImpl()
|
|
| Method Summary | |
|---|---|
void |
delete(String nsUri,
boolean cascading)
Deletes the model with the given namespace uri. |
Match[] |
find(String expression,
String[] classifiers,
boolean isRegEx,
boolean isCaseSensitive)
Finds all instances of given classifiers that contain given expression. |
String |
getDatabasePath()
Getter. |
NeoHelper |
getHelper()
Getter. |
String[] |
getInstanceModels(String metaNsUri)
Find all instance models of the model with specified nsURI. |
LoadProcessor |
getLoadProcessor()
Getter. |
org.neo4j.api.core.NeoService |
getNeo()
Getter. |
SaveProcessor |
getSaveProcessorPhaseOne()
Getter. |
SaveProcessor |
getSaveProcessorPhaseTwo()
Getter. |
SearchProcessor |
getSearchProcessor()
Getter. |
org.eclipse.emf.ecore.EObject |
load(String nsUri,
Map<Object,org.eclipse.emf.ecore.EObject> registry)
Loads the model object with the given namespace uri into the given resource. |
boolean |
modelExists(String nsUri)
Checks the existance of a model with the given namespace uri. |
void |
save(org.eclipse.emf.ecore.resource.Resource resource)
Save Resource. |
void |
setDatabasePath(String databasePath)
Setter. |
void |
setHelper(NeoHelper helper)
<<<<<<< .mine Setter. |
void |
setLoadProcessor(LoadProcessor loadProcessor)
Setter. |
void |
setNeo(org.neo4j.api.core.NeoService neo)
Setter. |
void |
setSaveProcessorPhaseOne(SaveProcessor saveProcessorPhaseOne)
Setter. |
void |
setSaveProcessorPhaseTwo(SaveProcessor saveProcessorPhaseTwo)
Setter. |
void |
setSearchProcessor(SearchProcessor searchProcessor)
Setter. |
void |
shutDown()
Lifecycle method. |
void |
startUp()
Init the neo node space. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelRepositoryDaoNeo4jImpl()
| Method Detail |
|---|
public void setDatabasePath(String databasePath)
databasePath - the databasePath to setpublic String getDatabasePath()
public void startUp()
startUp in interface ModelRepositoryDaopublic void shutDown()
ModelRepositoryDaoClose all resources.
shutDown in interface ModelRepositoryDaoModelRepositoryDao.shutDown()public void setNeo(org.neo4j.api.core.NeoService neo)
neo - the neo to setpublic org.neo4j.api.core.NeoService getNeo()
public void setHelper(NeoHelper helper)
helper - the helper to setpublic NeoHelper getHelper()
public void setSaveProcessorPhaseOne(SaveProcessor saveProcessorPhaseOne)
saveProcessorPhaseOne - the saveProcessorPhaseOne to setpublic SaveProcessor getSaveProcessorPhaseOne()
public void setSaveProcessorPhaseTwo(SaveProcessor saveProcessorPhaseTwo)
saveProcessorPhaseTwo - the saveProcessorPhaseTwo to setpublic SaveProcessor getSaveProcessorPhaseTwo()
public void setLoadProcessor(LoadProcessor loadProcessor)
loadProcessor - the loadProcessor to setpublic LoadProcessor getLoadProcessor()
public void setSearchProcessor(SearchProcessor searchProcessor)
searchProcessor - the searchProcessor to setpublic SearchProcessor getSearchProcessor()
public String[] getInstanceModels(String metaNsUri)
getInstanceModels in interface ModelRepositoryDaometaNsUri - Meta model nsURI
ModelRepositoryDao.getInstanceModels(java.lang.String)public boolean modelExists(String nsUri)
modelExists in interface ModelRepositoryDaonsUri - a namespace uri
ModelRepositoryDao.modelExists(java.lang.String)
public void save(org.eclipse.emf.ecore.resource.Resource resource)
throws MRException
Resource.
The resource will be saved under it's nsURI. Any existing model can not be overwritten. In case of existence it must be deleted before saved.
save in interface ModelRepositoryDaoresource - EMF Resource to save
MRException - Application logic exceptionModelRepositoryDao.save(Resource)
public org.eclipse.emf.ecore.EObject load(String nsUri,
Map<Object,org.eclipse.emf.ecore.EObject> registry)
load in interface ModelRepositoryDaonsUri - a namespace uriregistry - the registry for loaded objects
de.uni_leipzig.wifa.iwi.mr3.dao.ModelRepositoryDao#load(java.lang.String)
public void delete(String nsUri,
boolean cascading)
throws MRException
delete in interface ModelRepositoryDaonsUri - a namespace uricascading - whether cascading delete model instances of current model.
MRException - Application logic exceptionModelRepositoryDao.delete(String,
boolean)
public Match[] find(String expression,
String[] classifiers,
boolean isRegEx,
boolean isCaseSensitive)
find in interface ModelRepositoryDaoexpression - the expression to search forclassifiers - the classifiers to search inisRegEx - RegExp searchisCaseSensitive - Case sensitive search
de.uni_leipzig.wifa.iwi.mr3.dao.ModelRepositoryDao#find(java.lang.String,
java.lang.String[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||