|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeepaMehtaStorage
Method Detail |
---|
TopicModel fetchTopic(long id)
TopicModel fetchTopic(String key, Object value)
List<TopicModel> fetchTopics(String key, Object value)
List<TopicModel> queryTopics(Object value)
List<TopicModel> queryTopics(String key, Object value)
Iterator<TopicModel> fetchAllTopics()
void storeTopic(TopicModel topicModel)
Only the topic URI and the topic type URI are stored. The topic value (simple or composite) is not stored. The "Instantiation" association is not stored.
An URI uniqueness check is performed. If the DB already contains a topic or an association with the URI passed, an exception is thrown and nothing is stored.
topicModel
- The topic to store. Once the method returns the topic model contains:
- the ID of the stored topic.
- an empty URI ("") in case null
was passed.
- an empty simple value ("") in case null
was passed.void storeTopicUri(long topicId, String uri)
void storeTopicTypeUri(long topicId, String topicTypeUri)
void storeTopicValue(long topicId, SimpleValue value, List<IndexMode> indexModes, String indexKey, SimpleValue indexValue)
indexValue
- Optional: the value to be indexed. If indexValue is not specified, value is used.void indexTopicValue(long topicId, IndexMode indexMode, String indexKey, SimpleValue indexValue)
void deleteTopic(long topicId)
AssociationModel fetchAssociation(long id)
List<AssociationModel> fetchAssociations(String assocTypeUri, long topicId1, long topicId2, String roleTypeUri1, String roleTypeUri2)
List<AssociationModel> fetchAssociationsBetweenTopicAndAssociation(String assocTypeUri, long topicId, long assocId, String topicRoleTypeUri, String assocRoleTypeUri)
Iterator<AssociationModel> fetchAllAssociations()
void storeAssociation(AssociationModel assocModel)
void storeAssociationUri(long assocId, String uri)
void storeAssociationTypeUri(long assocId, String assocTypeUri)
void storeAssociationValue(long assocId, SimpleValue value, List<IndexMode> indexModes, String indexKey, SimpleValue indexValue)
indexValue
- Optional: the value to be indexed. If indexValue is not specified, value is used.void indexAssociationValue(long assocId, IndexMode indexMode, String indexKey, SimpleValue indexValue)
void storeRoleTypeUri(long assocId, long playerId, String roleTypeUri)
void deleteAssociation(long assocId)
List<AssociationModel> fetchTopicAssociations(long topicId)
List<AssociationModel> fetchAssociationAssociations(long assocId)
List<RelatedTopicModel> fetchTopicRelatedTopics(long topicId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullList<RelatedAssociationModel> fetchTopicRelatedAssociations(long topicId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullList<RelatedTopicModel> fetchAssociationRelatedTopics(long assocId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullList<RelatedAssociationModel> fetchAssociationRelatedAssociations(long assocId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullList<RelatedTopicModel> fetchRelatedTopics(long objectId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
objectId
- id of a topic or an associationassocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullList<RelatedAssociationModel> fetchRelatedAssociations(long objectId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
objectId
- id of a topic or an associationassocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullObject fetchTopicProperty(long topicId, String propUri)
Object fetchAssociationProperty(long assocId, String propUri)
List<TopicModel> fetchTopicsByProperty(String propUri, Object propValue)
List<TopicModel> fetchTopicsByPropertyRange(String propUri, Number from, Number to)
List<AssociationModel> fetchAssociationsByProperty(String propUri, Object propValue)
List<AssociationModel> fetchAssociationsByPropertyRange(String propUri, Number from, Number to)
void storeTopicProperty(long topicId, String propUri, Object propValue, boolean addToIndex)
void storeAssociationProperty(long assocId, String propUri, Object propValue, boolean addToIndex)
boolean hasTopicProperty(long topicId, String propUri)
boolean hasAssociationProperty(long assocId, String propUri)
void deleteTopicProperty(long topicId, String propUri)
void deleteAssociationProperty(long assocId, String propUri)
DeepaMehtaTransaction beginTx()
boolean setupRootNode()
void shutdown()
Object getDatabaseVendorObject()
Object getDatabaseVendorObject(long objectId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |