public interface DMXStorage
Modifier and Type | Method and Description |
---|---|
DMXTransaction |
beginTx() |
void |
deleteAssociation(long assocId) |
void |
deleteAssociationProperty(long assocId,
String propUri) |
void |
deleteTopic(long topicId) |
void |
deleteTopicProperty(long topicId,
String propUri) |
Iterator<? extends AssociationModel> |
fetchAllAssociations() |
Iterator<? extends TopicModel> |
fetchAllTopics() |
AssociationModel |
fetchAssociation(long assocId) |
AssociationModel |
fetchAssociation(String key,
Object value) |
List<? extends AssociationModel> |
fetchAssociationAssociations(long assocId) |
List<? extends RelatedAssociationModel> |
fetchAssociationRelatedAssociations(long assocId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
List<? extends RelatedTopicModel> |
fetchAssociationRelatedTopics(long assocId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
List<? extends AssociationModel> |
fetchAssociations(String assocTypeUri,
long topicId1,
long topicId2,
String roleTypeUri1,
String roleTypeUri2) |
List<? extends AssociationModel> |
fetchAssociations(String key,
Object value) |
List<? extends AssociationModel> |
fetchAssociationsBetweenTopicAndAssociation(String assocTypeUri,
long topicId,
long assocId,
String topicRoleTypeUri,
String assocRoleTypeUri) |
List<? extends AssociationModel> |
fetchAssociationsByProperty(String propUri,
Object propValue) |
List<? extends AssociationModel> |
fetchAssociationsByPropertyRange(String propUri,
Number from,
Number to) |
DMXObjectModel |
fetchObject(long id) |
long[] |
fetchPlayerIds(long assocId) |
Object |
fetchProperty(long id,
String propUri) |
List<? extends RelatedAssociationModel> |
fetchRelatedAssociations(long objectId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
List<? extends RelatedTopicModel> |
fetchRelatedTopics(long objectId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
TopicModel |
fetchTopic(long topicId) |
TopicModel |
fetchTopic(String key,
Object value) |
List<? extends AssociationModel> |
fetchTopicAssociations(long topicId) |
List<? extends RelatedAssociationModel> |
fetchTopicRelatedAssociations(long topicId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
List<? extends RelatedTopicModel> |
fetchTopicRelatedTopics(long topicId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
List<? extends TopicModel> |
fetchTopics(String key,
Object value) |
List<? extends TopicModel> |
fetchTopicsByProperty(String propUri,
Object propValue) |
List<? extends TopicModel> |
fetchTopicsByPropertyRange(String propUri,
Number from,
Number to) |
Object |
getDatabaseVendorObject() |
Object |
getDatabaseVendorObject(long objectId) |
ModelFactory |
getModelFactory() |
boolean |
hasProperty(long id,
String propUri) |
void |
indexAssociationProperty(long assocId,
String propUri,
Object propValue) |
void |
indexAssociationValue(long assocId,
IndexMode indexMode,
String indexKey,
SimpleValue indexValue) |
void |
indexTopicProperty(long topicId,
String propUri,
Object propValue) |
void |
indexTopicValue(long topicId,
IndexMode indexMode,
String indexKey,
SimpleValue indexValue) |
List<TopicModel> |
queryTopics(Object value) |
List<? extends TopicModel> |
queryTopics(String key,
Object value) |
boolean |
setupRootNode() |
void |
shutdown() |
void |
storeAssociation(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,
SimpleValue value,
List<IndexMode> indexModes,
String indexKey,
SimpleValue indexValue)
Stores and indexes an association value.
|
void |
storeRoleTypeUri(long assocId,
long playerId,
String roleTypeUri) |
void |
storeTopic(TopicModel topicModel)
Stores a rudimentary topic in the DB.
|
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,
SimpleValue value,
List<IndexMode> indexModes,
String indexKey,
SimpleValue indexValue)
Stores and indexes a topic value.
|
TopicModel fetchTopic(long topicId)
TopicModel fetchTopic(String key, Object value)
List<? extends TopicModel> fetchTopics(String key, Object value)
List<TopicModel> queryTopics(Object value)
List<? extends TopicModel> queryTopics(String key, Object value)
Iterator<? extends 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 assocId)
AssociationModel fetchAssociation(String key, Object value)
List<? extends AssociationModel> fetchAssociations(String key, Object value)
List<? extends AssociationModel> fetchAssociations(String assocTypeUri, long topicId1, long topicId2, String roleTypeUri1, String roleTypeUri2)
List<? extends AssociationModel> fetchAssociationsBetweenTopicAndAssociation(String assocTypeUri, long topicId, long assocId, String topicRoleTypeUri, String assocRoleTypeUri)
Iterator<? extends AssociationModel> fetchAllAssociations()
long[] fetchPlayerIds(long assocId)
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)
DMXObjectModel fetchObject(long id)
List<? extends AssociationModel> fetchTopicAssociations(long topicId)
List<? extends AssociationModel> fetchAssociationAssociations(long assocId)
List<? extends 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<? extends 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<? extends 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<? extends 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<? extends 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<? extends 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 fetchProperty(long id, String propUri)
id
- id of a topic or an associationboolean hasProperty(long id, String propUri)
id
- id of a topic or an associationList<? extends TopicModel> fetchTopicsByProperty(String propUri, Object propValue)
List<? extends TopicModel> fetchTopicsByPropertyRange(String propUri, Number from, Number to)
List<? extends AssociationModel> fetchAssociationsByProperty(String propUri, Object propValue)
List<? extends 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)
void indexTopicProperty(long topicId, String propUri, Object propValue)
void indexAssociationProperty(long assocId, String propUri, Object propValue)
void deleteTopicProperty(long topicId, String propUri)
void deleteAssociationProperty(long assocId, String propUri)
DMXTransaction beginTx()
boolean setupRootNode()
void shutdown()
Object getDatabaseVendorObject()
Object getDatabaseVendorObject(long objectId)
ModelFactory getModelFactory()
Copyright © 2018. All Rights Reserved.