public interface DMXStorage
Modifier and Type | Method and Description |
---|---|
DMXTransaction |
beginTx() |
void |
deleteAssoc(long assocId) |
void |
deleteAssocProperty(long assocId,
String propUri) |
void |
deleteTopic(long topicId)
Deletes the topic.
|
void |
deleteTopicProperty(long topicId,
String propUri) |
Iterable<AssocModelImpl> |
fetchAllAssocs() |
Iterable<TopicModelImpl> |
fetchAllTopics() |
AssocModelImpl |
fetchAssoc(long assocId)
Fetches an assoc by ID.
|
List<AssocModelImpl> |
fetchAssocAssocs(long assocId) |
List<RelatedAssocModelImpl> |
fetchAssocRelatedAssocs(long assocId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
<M extends RelatedObjectModel> |
fetchAssocRelatedObjects(long assocId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTypeUri) |
List<RelatedTopicModelImpl> |
fetchAssocRelatedTopics(long assocId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
List<AssocModelImpl> |
fetchAssocs(String assocTypeUri,
long topicId1,
long topicId2,
String roleTypeUri1,
String roleTypeUri2)
Returns the associations between two topics.
|
List<AssocModelImpl> |
fetchAssocs(String key,
Object value)
Fetches assocs by exact value.
|
List<AssocModelImpl> |
fetchAssocsBetweenTopicAndAssoc(String assocTypeUri,
long topicId,
long assocId,
String topicRoleTypeUri,
String assocRoleTypeUri) |
List<AssocModelImpl> |
fetchAssocsByProperty(String propUri,
Object propValue) |
List<AssocModelImpl> |
fetchAssocsByPropertyRange(String propUri,
Number from,
Number to) |
DMXObjectModelImpl |
fetchObject(long id) |
List<PlayerModel> |
fetchPlayerModels(long assocId) |
Object |
fetchProperty(long id,
String propUri) |
List<RelatedAssocModelImpl> |
fetchRelatedAssocs(long objectId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
List<RelatedTopicModelImpl> |
fetchRelatedTopics(long objectId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
TopicModelImpl |
fetchTopic(long topicId)
Fetches a topic by ID.
|
List<AssocModelImpl> |
fetchTopicAssocs(long topicId) |
List<RelatedAssocModelImpl> |
fetchTopicRelatedAssocs(long topicId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
<M extends RelatedObjectModel> |
fetchTopicRelatedObjects(long topicId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTypeUri) |
List<RelatedTopicModelImpl> |
fetchTopicRelatedTopics(long topicId,
String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
List<TopicModelImpl> |
fetchTopics(String key,
Object value)
Fetches topics by exact value.
|
List<TopicModelImpl> |
fetchTopicsByProperty(String propUri,
Object propValue) |
List<TopicModelImpl> |
fetchTopicsByPropertyRange(String propUri,
Number from,
Number to) |
Object |
getDatabaseVendorObject() |
Object |
getDatabaseVendorObject(long objectId) |
ModelFactoryImpl |
getModelFactory() |
boolean |
hasProperty(long id,
String propUri) |
void |
indexAssocProperty(long assocId,
String propUri,
Object propValue) |
void |
indexTopicProperty(long topicId,
String propUri,
Object propValue) |
List<AssocModelImpl> |
queryAssocs(String key,
Object value) |
List<AssocModelImpl> |
queryAssocsByRoleType(String roleTypeUri) |
List<AssocModelImpl> |
queryAssocsFulltext(String key,
Object value) |
List<TopicModelImpl> |
queryTopics(String key,
Object value) |
List<TopicModelImpl> |
queryTopicsFulltext(String key,
Object value) |
boolean |
setupRootNode() |
void |
shutdown() |
void |
storeAssoc(AssocModelImpl assocModel) |
void |
storeAssocProperty(long assocId,
String propUri,
Object propValue,
boolean addToIndex) |
void |
storeAssocTypeUri(long assocId,
String assocTypeUri) |
void |
storeAssocUri(long assocId,
String uri)
Stores and indexes the association's URI.
|
void |
storeAssocValue(long assocId,
SimpleValue value,
String indexKey,
boolean isHtmlValue)
Stores and indexes an association value.
|
void |
storeRoleTypeUri(long assocId,
long playerId,
String roleTypeUri) |
void |
storeTopic(TopicModelImpl 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)
Stores and indexes the topic's URI.
|
void |
storeTopicValue(long topicId,
SimpleValue value,
String indexKey,
boolean isHtmlValue)
Stores and indexes a topic value.
|
TopicModelImpl fetchTopic(long topicId)
List<TopicModelImpl> fetchTopics(String key, Object value)
List<TopicModelImpl> queryTopics(String key, Object value)
List<TopicModelImpl> queryTopicsFulltext(String key, Object value)
Iterable<TopicModelImpl> fetchAllTopics()
void storeTopic(TopicModelImpl 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, String indexKey, boolean isHtmlValue)
indexKey
- must not nullindexValue
- Optional: the value to be indexed. If indexValue is not specified, value is used. ### FIXDOCvoid deleteTopic(long topicId)
Prerequisite: the topic has no relations.
AssocModelImpl fetchAssoc(long assocId)
List<AssocModelImpl> fetchAssocs(String key, Object value)
List<AssocModelImpl> queryAssocs(String key, Object value)
List<AssocModelImpl> queryAssocsFulltext(String key, Object value)
List<AssocModelImpl> queryAssocsByRoleType(String roleTypeUri)
List<AssocModelImpl> fetchAssocs(String assocTypeUri, long topicId1, long topicId2, String roleTypeUri1, String roleTypeUri2)
assocTypeUri
- Assoc type filter. Pass null
to switch filter off.List<AssocModelImpl> fetchAssocsBetweenTopicAndAssoc(String assocTypeUri, long topicId, long assocId, String topicRoleTypeUri, String assocRoleTypeUri)
Iterable<AssocModelImpl> fetchAllAssocs()
List<PlayerModel> fetchPlayerModels(long assocId)
void storeAssoc(AssocModelImpl assocModel)
void storeAssocUri(long assocId, String uri)
void storeAssocTypeUri(long assocId, String assocTypeUri)
void storeAssocValue(long assocId, SimpleValue value, String indexKey, boolean isHtmlValue)
indexKey
- must not nullindexValue
- Optional: the value to be indexed. If indexValue is not specified, value is used. ### FIXDOCvoid storeRoleTypeUri(long assocId, long playerId, String roleTypeUri)
void deleteAssoc(long assocId)
DMXObjectModelImpl fetchObject(long id)
List<AssocModelImpl> fetchTopicAssocs(long topicId)
List<AssocModelImpl> fetchAssocAssocs(long assocId)
List<RelatedTopicModelImpl> fetchTopicRelatedTopics(long topicId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullList<RelatedAssocModelImpl> fetchTopicRelatedAssocs(long topicId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullList<RelatedTopicModelImpl> fetchAssocRelatedTopics(long assocId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullList<RelatedAssocModelImpl> fetchAssocRelatedAssocs(long assocId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be null<M extends RelatedObjectModel> List<M> fetchTopicRelatedObjects(long topicId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTypeUri)
<M extends RelatedObjectModel> List<M> fetchAssocRelatedObjects(long assocId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTypeUri)
List<RelatedTopicModelImpl> 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<RelatedAssocModelImpl> fetchRelatedAssocs(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<TopicModelImpl> fetchTopicsByProperty(String propUri, Object propValue)
List<TopicModelImpl> fetchTopicsByPropertyRange(String propUri, Number from, Number to)
List<AssocModelImpl> fetchAssocsByProperty(String propUri, Object propValue)
List<AssocModelImpl> fetchAssocsByPropertyRange(String propUri, Number from, Number to)
void storeTopicProperty(long topicId, String propUri, Object propValue, boolean addToIndex)
void storeAssocProperty(long assocId, String propUri, Object propValue, boolean addToIndex)
void deleteTopicProperty(long topicId, String propUri)
void deleteAssocProperty(long assocId, String propUri)
DMXTransaction beginTx()
boolean setupRootNode()
void shutdown()
Object getDatabaseVendorObject()
Object getDatabaseVendorObject(long objectId)
ModelFactoryImpl getModelFactory()
Copyright © 2023. All Rights Reserved.