de.deepamehta.storage.neo4j
Class Neo4jStorage
java.lang.Object
de.deepamehta.storage.neo4j.Neo4jStorage
- All Implemented Interfaces:
- de.deepamehta.core.storage.spi.DeepaMehtaStorage
public class Neo4jStorage
- extends Object
- implements de.deepamehta.core.storage.spi.DeepaMehtaStorage
|
Method Summary |
de.deepamehta.core.storage.spi.DeepaMehtaTransaction |
beginTx()
|
void |
deleteAssociation(long assocId)
|
void |
deleteAssociationProperty(long assocId,
String propUri)
|
void |
deleteTopic(long topicId)
|
void |
deleteTopicProperty(long topicId,
String propUri)
|
Iterator<de.deepamehta.core.model.AssociationModel> |
fetchAllAssociations()
|
Iterator<de.deepamehta.core.model.TopicModel> |
fetchAllTopics()
|
de.deepamehta.core.model.AssociationModel |
fetchAssociation(long assocId)
|
List<de.deepamehta.core.model.AssociationModel> |
fetchAssociationAssociations(long assocId)
|
Object |
fetchAssociationProperty(long assocId,
String propUri)
|
List<de.deepamehta.core.model.RelatedAssociationModel> |
fetchAssociationRelatedAssociations(long assocId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri)
|
List<de.deepamehta.core.model.RelatedTopicModel> |
fetchAssociationRelatedTopics(long assocId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri)
|
List<de.deepamehta.core.model.AssociationModel> |
fetchAssociations(String assocTypeUri,
long topicId1,
long topicId2,
String roleTypeUri1,
String roleTypeUri2)
|
List<de.deepamehta.core.model.AssociationModel> |
fetchAssociationsBetweenTopicAndAssociation(String assocTypeUri,
long topicId,
long assocId,
String topicRoleTypeUri,
String assocRoleTypeUri)
|
List<de.deepamehta.core.model.AssociationModel> |
fetchAssociationsByProperty(String propUri,
Object propValue)
|
List<de.deepamehta.core.model.AssociationModel> |
fetchAssociationsByPropertyRange(String propUri,
Number from,
Number to)
|
List<de.deepamehta.core.model.RelatedAssociationModel> |
fetchRelatedAssociations(long id,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri)
|
List<de.deepamehta.core.model.RelatedTopicModel> |
fetchRelatedTopics(long id,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri)
|
de.deepamehta.core.model.TopicModel |
fetchTopic(long topicId)
|
de.deepamehta.core.model.TopicModel |
fetchTopic(String key,
Object value)
|
List<de.deepamehta.core.model.AssociationModel> |
fetchTopicAssociations(long topicId)
|
Object |
fetchTopicProperty(long topicId,
String propUri)
|
List<de.deepamehta.core.model.RelatedAssociationModel> |
fetchTopicRelatedAssociations(long topicId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri)
|
List<de.deepamehta.core.model.RelatedTopicModel> |
fetchTopicRelatedTopics(long topicId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri)
|
List<de.deepamehta.core.model.TopicModel> |
fetchTopics(String key,
Object value)
|
List<de.deepamehta.core.model.TopicModel> |
fetchTopicsByProperty(String propUri,
Object propValue)
|
List<de.deepamehta.core.model.TopicModel> |
fetchTopicsByPropertyRange(String propUri,
Number from,
Number to)
|
Object |
getDatabaseVendorObject()
|
Object |
getDatabaseVendorObject(long objectId)
|
boolean |
hasAssociationProperty(long assocId,
String propUri)
|
boolean |
hasTopicProperty(long topicId,
String propUri)
|
void |
indexAssociationValue(long assocId,
de.deepamehta.core.model.IndexMode indexMode,
String indexKey,
de.deepamehta.core.model.SimpleValue indexValue)
|
void |
indexTopicValue(long topicId,
de.deepamehta.core.model.IndexMode indexMode,
String indexKey,
de.deepamehta.core.model.SimpleValue indexValue)
|
List<de.deepamehta.core.model.TopicModel> |
queryTopics(Object value)
|
List<de.deepamehta.core.model.TopicModel> |
queryTopics(String key,
Object value)
|
boolean |
setupRootNode()
|
void |
shutdown()
|
void |
storeAssociation(de.deepamehta.core.model.AssociationModel assocModel)
|
void |
storeAssociationProperty(long assocId,
String propUri,
Object propValue,
boolean addToIndex)
|
void |
storeAssociationTypeUri(long assocId,
String assocTypeUri)
|
void |
storeAssociationUri(long assocId,
String uri)
|
void |
storeAssociationValue(long assocId,
de.deepamehta.core.model.SimpleValue value,
List<de.deepamehta.core.model.IndexMode> indexModes,
String indexKey,
de.deepamehta.core.model.SimpleValue indexValue)
|
void |
storeRoleTypeUri(long assocId,
long playerId,
String roleTypeUri)
|
void |
storeTopic(de.deepamehta.core.model.TopicModel topicModel)
|
void |
storeTopicProperty(long topicId,
String propUri,
Object propValue,
boolean addToIndex)
|
void |
storeTopicTypeUri(long topicId,
String topicTypeUri)
|
void |
storeTopicUri(long topicId,
String uri)
|
void |
storeTopicValue(long topicId,
de.deepamehta.core.model.SimpleValue value,
List<de.deepamehta.core.model.IndexMode> indexModes,
String indexKey,
de.deepamehta.core.model.SimpleValue indexValue)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fetchTopic
public de.deepamehta.core.model.TopicModel fetchTopic(long topicId)
- Specified by:
fetchTopic in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchTopic
public de.deepamehta.core.model.TopicModel fetchTopic(String key,
Object value)
- Specified by:
fetchTopic in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchTopics
public List<de.deepamehta.core.model.TopicModel> fetchTopics(String key,
Object value)
- Specified by:
fetchTopics in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
queryTopics
public List<de.deepamehta.core.model.TopicModel> queryTopics(Object value)
- Specified by:
queryTopics in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
queryTopics
public List<de.deepamehta.core.model.TopicModel> queryTopics(String key,
Object value)
- Specified by:
queryTopics in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchAllTopics
public Iterator<de.deepamehta.core.model.TopicModel> fetchAllTopics()
- Specified by:
fetchAllTopics in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
storeTopic
public void storeTopic(de.deepamehta.core.model.TopicModel topicModel)
- Specified by:
storeTopic in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
storeTopicUri
public void storeTopicUri(long topicId,
String uri)
- Specified by:
storeTopicUri in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
storeTopicTypeUri
public void storeTopicTypeUri(long topicId,
String topicTypeUri)
- Specified by:
storeTopicTypeUri in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
storeTopicValue
public void storeTopicValue(long topicId,
de.deepamehta.core.model.SimpleValue value,
List<de.deepamehta.core.model.IndexMode> indexModes,
String indexKey,
de.deepamehta.core.model.SimpleValue indexValue)
- Specified by:
storeTopicValue in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
indexTopicValue
public void indexTopicValue(long topicId,
de.deepamehta.core.model.IndexMode indexMode,
String indexKey,
de.deepamehta.core.model.SimpleValue indexValue)
- Specified by:
indexTopicValue in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
deleteTopic
public void deleteTopic(long topicId)
- Specified by:
deleteTopic in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchAssociation
public de.deepamehta.core.model.AssociationModel fetchAssociation(long assocId)
- Specified by:
fetchAssociation in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchAssociations
public List<de.deepamehta.core.model.AssociationModel> fetchAssociations(String assocTypeUri,
long topicId1,
long topicId2,
String roleTypeUri1,
String roleTypeUri2)
- Specified by:
fetchAssociations in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchAssociationsBetweenTopicAndAssociation
public List<de.deepamehta.core.model.AssociationModel> fetchAssociationsBetweenTopicAndAssociation(String assocTypeUri,
long topicId,
long assocId,
String topicRoleTypeUri,
String assocRoleTypeUri)
- Specified by:
fetchAssociationsBetweenTopicAndAssociation in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchAllAssociations
public Iterator<de.deepamehta.core.model.AssociationModel> fetchAllAssociations()
- Specified by:
fetchAllAssociations in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
storeAssociation
public void storeAssociation(de.deepamehta.core.model.AssociationModel assocModel)
- Specified by:
storeAssociation in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
storeAssociationUri
public void storeAssociationUri(long assocId,
String uri)
- Specified by:
storeAssociationUri in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
storeAssociationTypeUri
public void storeAssociationTypeUri(long assocId,
String assocTypeUri)
- Specified by:
storeAssociationTypeUri in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
storeAssociationValue
public void storeAssociationValue(long assocId,
de.deepamehta.core.model.SimpleValue value,
List<de.deepamehta.core.model.IndexMode> indexModes,
String indexKey,
de.deepamehta.core.model.SimpleValue indexValue)
- Specified by:
storeAssociationValue in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
indexAssociationValue
public void indexAssociationValue(long assocId,
de.deepamehta.core.model.IndexMode indexMode,
String indexKey,
de.deepamehta.core.model.SimpleValue indexValue)
- Specified by:
indexAssociationValue in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
storeRoleTypeUri
public void storeRoleTypeUri(long assocId,
long playerId,
String roleTypeUri)
- Specified by:
storeRoleTypeUri in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
deleteAssociation
public void deleteAssociation(long assocId)
- Specified by:
deleteAssociation in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchTopicAssociations
public List<de.deepamehta.core.model.AssociationModel> fetchTopicAssociations(long topicId)
- Specified by:
fetchTopicAssociations in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchAssociationAssociations
public List<de.deepamehta.core.model.AssociationModel> fetchAssociationAssociations(long assocId)
- Specified by:
fetchAssociationAssociations in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchTopicRelatedTopics
public List<de.deepamehta.core.model.RelatedTopicModel> fetchTopicRelatedTopics(long topicId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri)
- Specified by:
fetchTopicRelatedTopics in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchTopicRelatedAssociations
public List<de.deepamehta.core.model.RelatedAssociationModel> fetchTopicRelatedAssociations(long topicId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri)
- Specified by:
fetchTopicRelatedAssociations in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchAssociationRelatedTopics
public List<de.deepamehta.core.model.RelatedTopicModel> fetchAssociationRelatedTopics(long assocId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri)
- Specified by:
fetchAssociationRelatedTopics in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchAssociationRelatedAssociations
public List<de.deepamehta.core.model.RelatedAssociationModel> fetchAssociationRelatedAssociations(long assocId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri)
- Specified by:
fetchAssociationRelatedAssociations in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchRelatedTopics
public List<de.deepamehta.core.model.RelatedTopicModel> fetchRelatedTopics(long id,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri)
- Specified by:
fetchRelatedTopics in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchRelatedAssociations
public List<de.deepamehta.core.model.RelatedAssociationModel> fetchRelatedAssociations(long id,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri)
- Specified by:
fetchRelatedAssociations in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchTopicProperty
public Object fetchTopicProperty(long topicId,
String propUri)
- Specified by:
fetchTopicProperty in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchAssociationProperty
public Object fetchAssociationProperty(long assocId,
String propUri)
- Specified by:
fetchAssociationProperty in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchTopicsByProperty
public List<de.deepamehta.core.model.TopicModel> fetchTopicsByProperty(String propUri,
Object propValue)
- Specified by:
fetchTopicsByProperty in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchTopicsByPropertyRange
public List<de.deepamehta.core.model.TopicModel> fetchTopicsByPropertyRange(String propUri,
Number from,
Number to)
- Specified by:
fetchTopicsByPropertyRange in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchAssociationsByProperty
public List<de.deepamehta.core.model.AssociationModel> fetchAssociationsByProperty(String propUri,
Object propValue)
- Specified by:
fetchAssociationsByProperty in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
fetchAssociationsByPropertyRange
public List<de.deepamehta.core.model.AssociationModel> fetchAssociationsByPropertyRange(String propUri,
Number from,
Number to)
- Specified by:
fetchAssociationsByPropertyRange in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
storeTopicProperty
public void storeTopicProperty(long topicId,
String propUri,
Object propValue,
boolean addToIndex)
- Specified by:
storeTopicProperty in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
storeAssociationProperty
public void storeAssociationProperty(long assocId,
String propUri,
Object propValue,
boolean addToIndex)
- Specified by:
storeAssociationProperty in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
hasTopicProperty
public boolean hasTopicProperty(long topicId,
String propUri)
- Specified by:
hasTopicProperty in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
hasAssociationProperty
public boolean hasAssociationProperty(long assocId,
String propUri)
- Specified by:
hasAssociationProperty in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
deleteTopicProperty
public void deleteTopicProperty(long topicId,
String propUri)
- Specified by:
deleteTopicProperty in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
deleteAssociationProperty
public void deleteAssociationProperty(long assocId,
String propUri)
- Specified by:
deleteAssociationProperty in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
beginTx
public de.deepamehta.core.storage.spi.DeepaMehtaTransaction beginTx()
- Specified by:
beginTx in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
setupRootNode
public boolean setupRootNode()
- Specified by:
setupRootNode in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
shutdown
public void shutdown()
- Specified by:
shutdown in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
getDatabaseVendorObject
public Object getDatabaseVendorObject()
- Specified by:
getDatabaseVendorObject in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
getDatabaseVendorObject
public Object getDatabaseVendorObject(long objectId)
- Specified by:
getDatabaseVendorObject in interface de.deepamehta.core.storage.spi.DeepaMehtaStorage
Copyright © 2015. All rights reserved.