de.topicmapslab.majortom.redis.store
Class RedisTopicMapStore

java.lang.Object
  extended by de.topicmapslab.majortom.store.TopicMapStoreImpl
      extended by de.topicmapslab.majortom.store.ReadOnlyTopicMapStoreImpl
          extended by de.topicmapslab.majortom.store.ModifableTopicMapStoreImpl
              extended by de.topicmapslab.majortom.redis.store.RedisTopicMapStore
All Implemented Interfaces:
de.topicmapslab.majortom.model.store.ITopicMapStore

public class RedisTopicMapStore
extends ModifableTopicMapStoreImpl


Field Summary
static java.lang.String ASSOCIATION
           
static java.lang.String ASSOCIATION_OF_TOPICMAP
           
static java.lang.String CHARACTERISTICS
           
static java.lang.String COLON
           
private  int database
           
static java.lang.String DATATYPE
           
static de.topicmapslab.majortom.model.core.IScope EMPTY_SCOPE
           
static java.lang.String EMPTY_SCOPE_ID
           
private static java.util.Set<de.topicmapslab.majortom.model.core.ITopic> EmptyTopicSet
           
static java.lang.String HASHPOSTFIX
           
private  java.lang.String host
           
private  de.topicmapslab.majortom.model.index.IIdentityIndex identityIndex
           
static java.lang.String IN_SCOPE
           
static java.lang.String INSTANCES
           
static java.lang.String ITEM_IDENTIFIER
           
private  de.topicmapslab.majortom.model.index.ILiteralIndex literalIndex
           
static java.lang.String LOCATORS
           
static java.lang.String NAME
           
static java.lang.String OCCURRENCE
           
private  de.topicmapslab.majortom.model.index.paging.IPagedConstructIndex pagedConstructIndex
           
private  de.topicmapslab.majortom.model.index.paging.IPagedIdentityIndex pagedIdentityIndex
           
private  de.topicmapslab.majortom.model.index.paging.IPagedLiteralIndex pagedLiteralIndex
           
private  de.topicmapslab.majortom.model.index.paging.IPagedScopedIndex pagedScopedIndex
           
private  de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex pagedSupertypeSubtypeIndex
           
private  de.topicmapslab.majortom.model.index.paging.IPagedTransitiveTypeInstanceIndex pagedTransitiveTypeInstanceIndex
           
private  de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex pagedTypeInstanceIndex
           
static java.lang.String PARENT
           
private  java.lang.String password
           
static java.lang.String PLAYED_ASSOCIATION
           
static java.lang.String PLAYED_ROLE
           
static java.lang.String PLAYER
           
private  int port
           
private  RedisHandler redis
           
static java.lang.String REIFIED
           
static java.lang.String REIFIER
           
static java.lang.String ROLE
           
static java.lang.String ROLES_BY_ASSOCTYPE
           
static java.lang.String SCOPE
           
static java.lang.String SCOPE_COLON
           
private  java.util.Map<java.util.Collection<de.topicmapslab.majortom.model.core.ITopic>,de.topicmapslab.majortom.model.core.IScope> scopeCache
           
static java.lang.String SCOPED_ASSOCIATIONS
           
static java.lang.String SCOPED_CHARACTERISTICS
           
static java.lang.String SCOPED_NAMES
           
static java.lang.String SCOPED_OCCURRENCES
           
static java.lang.String SCOPED_VARIANTS
           
private  de.topicmapslab.majortom.model.index.IScopedIndex scopedIndex
           
static java.lang.String STAR
           
static java.lang.String SUBJECT_IDENTIFIER
           
static java.lang.String SUBJECT_LOCATOR
           
static java.lang.String SUBTYPES
           
static java.lang.String SUPERTYPES
           
private  de.topicmapslab.majortom.model.index.ISupertypeSubtypeIndex supertypeSubtypeIndex
           
static java.lang.String TOPIC
           
static java.lang.String TOPICMAP
           
private  de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity topicMapIdentity
           
static java.lang.String TOPICS_OF_TOPICMAP
           
private  de.topicmapslab.majortom.model.index.ITransitiveTypeInstanceIndex transitiveTypeInstanceIndex
           
static java.lang.String TYPE
           
static java.lang.String TYPED_ASSOCIATIONS
           
static java.lang.String TYPED_CHARACTERISTICS
           
static java.lang.String TYPED_NAMES
           
static java.lang.String TYPED_OCCURRENCES
           
static java.lang.String TYPED_ROLES
           
private  de.topicmapslab.majortom.model.index.ITypeInstanceIndex typeInstanceIndex
           
static java.lang.String TYPES
           
static java.lang.String VALUE
           
static java.lang.String VARIANT
           
 
Fields inherited from class de.topicmapslab.majortom.store.TopicMapStoreImpl
OUTPUT
 
Constructor Summary
RedisTopicMapStore()
           
RedisTopicMapStore(de.topicmapslab.majortom.model.core.ITopicMapSystem topicMapSystem)
           
 
Method Summary
 void clear()
          
 void commit()
          
 void connect()
          
private  de.topicmapslab.majortom.model.core.IOccurrence createOccurrence(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, java.lang.String value, java.lang.String datatype, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
           
protected  de.topicmapslab.majortom.model.revision.IRevision createRevision(de.topicmapslab.majortom.model.event.TopicMapEventType type)
          Creating a new revision object.
private  de.topicmapslab.majortom.model.core.ITopic createTopic(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String subjectIdentifier, java.lang.String subjectLocator, java.lang.String itemIdentifier)
          Internal method to create a topic
protected  de.topicmapslab.majortom.model.core.IVariant createVariant(de.topicmapslab.majortom.model.core.IName name, java.lang.String value, java.lang.String datatype, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
           
protected  de.topicmapslab.majortom.model.core.IAssociation doCreateAssociation(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ITopic type)
          Create a new association item.
protected  de.topicmapslab.majortom.model.core.IAssociation doCreateAssociation(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ITopic type, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          Create a new association item.
protected  de.topicmapslab.majortom.model.core.ILocator doCreateItemIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
          Creates an internal item-identifier for a construct.
protected  de.topicmapslab.majortom.model.core.ILocator doCreateLocator(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String reference)
          Create a locator instance.
protected  de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, java.lang.String value)
          Create a new name characteristics item.
protected  de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, java.lang.String value, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          Create a new name characteristics item.
protected  de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic, java.lang.String value)
          Create a new name characteristics item.
protected  de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic, java.lang.String value, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          Create a new name characteristics item.
protected  de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.ILocator value)
          Create a new occurrence characteristics item.
protected  de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.ILocator value, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          Create a new occurrence characteristics item.
protected  de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, java.lang.String value)
          Create a new occurrence characteristics item.
protected  de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, java.lang.String value, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          Create a new occurrence characteristics item.
protected  de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, java.lang.String value, de.topicmapslab.majortom.model.core.ILocator datatype)
          Create a new occurrence characteristics item.
protected  de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, java.lang.String value, de.topicmapslab.majortom.model.core.ILocator datatype, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          Create a new occurrence characteristics item.
protected  de.topicmapslab.majortom.model.core.IAssociationRole doCreateRole(de.topicmapslab.majortom.model.core.IAssociation association, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.ITopic player)
          Create a new association role item.
 de.topicmapslab.majortom.model.core.IScope doCreateScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          Create the internal scope object representing the collection of themes
protected  de.topicmapslab.majortom.model.core.ITopic doCreateTopicByItemIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
          Create a new topic item.
protected  de.topicmapslab.majortom.model.core.ITopic doCreateTopicBySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
          Create a new topic item.
protected  de.topicmapslab.majortom.model.core.ITopic doCreateTopicBySubjectLocator(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ILocator subjectLocator)
          Create a new topic item.
protected  de.topicmapslab.majortom.model.core.ITopic doCreateTopicWithoutIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
          Create a new topic item without any identifier.
protected  de.topicmapslab.majortom.model.core.IVariant doCreateVariant(de.topicmapslab.majortom.model.core.IName name, de.topicmapslab.majortom.model.core.ILocator value, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          Create a new variant for the given name.
protected  de.topicmapslab.majortom.model.core.IVariant doCreateVariant(de.topicmapslab.majortom.model.core.IName name, java.lang.String value, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          Create a new variant for the given name.
protected  de.topicmapslab.majortom.model.core.IVariant doCreateVariant(de.topicmapslab.majortom.model.core.IName name, java.lang.String value, de.topicmapslab.majortom.model.core.ILocator datatype, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          Create a new variant for the given name.
protected  void doMergeTopicMaps(org.tmapi.core.TopicMap context, org.tmapi.core.TopicMap other)
          Merge a topic map in the given topic map.
protected  void doMergeTopics(de.topicmapslab.majortom.model.core.ITopic context, de.topicmapslab.majortom.model.core.ITopic other)
          Merge a topic in the given topic
protected  void doModifyItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c, de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
          Add a new item-identifier to the given construct
protected  void doModifyMetaData(de.topicmapslab.majortom.model.revision.IRevision revision, java.lang.String key, java.lang.String value)
          Add a new meta data set to the given revision
protected  void doModifyPlayer(de.topicmapslab.majortom.model.core.IAssociationRole role, de.topicmapslab.majortom.model.core.ITopic player)
          Modify the player of the given role.
protected  void doModifyReifier(de.topicmapslab.majortom.model.core.IReifiable r, de.topicmapslab.majortom.model.core.ITopic reifier)
          Modify the reifier of the given reified item.
protected  void doModifyScope(de.topicmapslab.majortom.model.core.IScopable s, de.topicmapslab.majortom.model.core.ITopic theme)
          Add a new theme to the given scoped item.
protected  void doModifySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
          Add a new subject-identifier to the given topic
protected  void doModifySubjectLocator(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectLocator)
          Add a new subject-locator to the given topic
protected  void doModifySupertype(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          Add a new super type to the given topic
protected  void doModifyTag(de.topicmapslab.majortom.model.core.ITopicMap tm, java.lang.String tag)
          Add a new tag to the given topic map for the current time stamp
protected  void doModifyTag(de.topicmapslab.majortom.model.core.ITopicMap tm, java.lang.String tag, java.util.Calendar timestamp)
          Add a new tag to the given topic map for the given time stamp
protected  void doModifyTopicType(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          Add a new type to the given topic.
protected  void doModifyType(de.topicmapslab.majortom.model.core.ITypeable t, de.topicmapslab.majortom.model.core.ITopic type)
          Modify the type of the given typed item.
protected  void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t, java.lang.Object value)
          Modify the value and the data type of the given data-type-aware.
protected  void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t, java.lang.String value)
          Modify the value of the given data-type-aware.
protected  void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t, java.lang.String value, de.topicmapslab.majortom.model.core.ILocator datatype)
          Modify the value and the data type of the given data-type-aware.
protected  void doModifyValue(de.topicmapslab.majortom.model.core.IName n, java.lang.String value)
          Modify the value of the given name.
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t)
          Read the association played by the given topic
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped associations played by the given topic
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          Read the associations played by the given topic and being typed by the given type.
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped associations played by the given topic and being typed by the given type
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm)
          Read all associations of the topic map.
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped associations of the topic map.
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm, de.topicmapslab.majortom.model.core.ITopic type)
          Read all associations of the topic map being typed by the given type.
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped associations of the topic map being typed by the given type.
 java.lang.String doReadBestIdentifier(de.topicmapslab.majortom.model.core.ITopic topic, boolean withPrefix)
          Returns the best and stable identifier of the topic.
 java.lang.String doReadBestLabel(de.topicmapslab.majortom.model.core.ITopic topic)
          Returns the best label for the current topic instance.
 java.lang.String doReadBestLabel(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic theme, boolean strict)
          Returns the best label for the current topic instance.
 de.topicmapslab.majortom.model.revision.Changeset doReadChangeSet(de.topicmapslab.majortom.model.revision.IRevision r)
          Read the change set of a revision.
 de.topicmapslab.majortom.model.event.TopicMapEventType doReadChangeSetType(de.topicmapslab.majortom.model.revision.IRevision revision)
          Read the type of the given typed item.
 java.util.Set<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t)
          Read all characteristics if the given topic.
 java.util.Set<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped characteristics if the given topic.
 java.util.Set<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          Read all characteristics if the given topic being typed by the given type.
 java.util.Set<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped characteristics if the given topic being typed by the given type.
 de.topicmapslab.majortom.model.core.IConstruct doReadConstruct(de.topicmapslab.majortom.model.core.ITopicMap t, de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
          Read the construct identified by the given item-identifier.
 de.topicmapslab.majortom.model.core.IConstruct doReadConstruct(de.topicmapslab.majortom.model.core.ITopicMap tm, java.lang.String id)
          Read the construct identified by the given id.
 de.topicmapslab.majortom.model.core.ILocator doReadDataType(de.topicmapslab.majortom.model.core.IDatatypeAware d)
          Read the data type of the given data-type-aware
 de.topicmapslab.majortom.model.revision.IRevision doReadFutureRevision(de.topicmapslab.majortom.model.revision.IRevision r)
          Read the previous revision of the revision.
 java.lang.String doReadId(de.topicmapslab.majortom.model.core.IConstruct c)
          Read the id of the given construct
 java.util.Set<de.topicmapslab.majortom.model.core.ILocator> doReadItemIdentifiers(de.topicmapslab.majortom.model.core.IConstruct c)
          Read all item-identifiers of the given construct
 java.util.Map<java.lang.String,java.lang.String> doReadMetaData(de.topicmapslab.majortom.model.revision.IRevision revision)
          Read the whole meta data sets of the given revision
 java.lang.String doReadMetaData(de.topicmapslab.majortom.model.revision.IRevision revision, java.lang.String key)
          Read the value of the meta set of the given revision identified by the given key.
 java.util.Set<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t)
          Read all names if the given topic.
 java.util.Set<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped names of the given topic where the scope matches exactly.
 java.util.Set<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          Read all names if the given topic being typed by the given type.
 java.util.Set<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped names if the given topic being typed by the given type.
 java.util.Set<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t)
          Read all occurrences if the given topic.
 java.util.Set<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped occurrence if the given topic.
 java.util.Set<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          Read all occurrence if the given topic being typed by the given type.
 java.util.Set<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped occurrence if the given topic being typed by the given type.
 de.topicmapslab.majortom.model.revision.IRevision doReadPastRevision(de.topicmapslab.majortom.model.revision.IRevision r)
          Read the past revision of the revision.
 de.topicmapslab.majortom.model.core.ITopic doReadPlayer(de.topicmapslab.majortom.model.core.IAssociationRole role)
          Read the player of the given role
 de.topicmapslab.majortom.model.core.ITopic doReadReification(de.topicmapslab.majortom.model.core.IReifiable r)
          Read the reifier of the reified construct
 de.topicmapslab.majortom.model.core.IReifiable doReadReification(de.topicmapslab.majortom.model.core.ITopic t)
          Read the reified item of the given topic.
 java.util.Calendar doReadRevisionTimestamp(de.topicmapslab.majortom.model.revision.IRevision r)
          Read the time-stamp of the revision begin.
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.IAssociation association)
          Read all association role items of the given association
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.IAssociation association, de.topicmapslab.majortom.model.core.ITopic type)
          Read all association role items of the given association and the given type.
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player)
          Read the played roles of the given topic.
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player, de.topicmapslab.majortom.model.core.ITopic type)
          Read the played roles of the given topic and being typed by the given type
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.ITopic assocType)
          Read the played roles of the given topic and being typed by the given type
 java.util.Set<de.topicmapslab.majortom.model.core.ITopic> doReadRoleTypes(de.topicmapslab.majortom.model.core.IAssociation association)
          Read all role types of the given association
 de.topicmapslab.majortom.model.core.IScope doReadScope(de.topicmapslab.majortom.model.core.IScopable s)
          Read the scope of the given scoped item
 java.util.Set<de.topicmapslab.majortom.model.core.ILocator> doReadSubjectIdentifiers(de.topicmapslab.majortom.model.core.ITopic t)
          Read all subject-identifiers of the given topic.
 java.util.Set<de.topicmapslab.majortom.model.core.ILocator> doReadSubjectLocators(de.topicmapslab.majortom.model.core.ITopic t)
          Read all subject-locators of the given topic.
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> doReadSuptertypes(de.topicmapslab.majortom.model.core.ITopic t)
          Read all super types of the given topic.
 de.topicmapslab.majortom.model.core.ITopic doReadTopicBySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopicMap t, de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
          Read the topic identified by the given subject-identifier.
 de.topicmapslab.majortom.model.core.ITopic doReadTopicBySubjectLocator(de.topicmapslab.majortom.model.core.ITopicMap t, de.topicmapslab.majortom.model.core.ILocator subjectLocator)
          Read the topic identified by the given subject-locator.
 java.util.Set<de.topicmapslab.majortom.model.core.ITopic> doReadTopics(de.topicmapslab.majortom.model.core.ITopicMap t)
          Return all topics of the topic map.
 java.util.Set<de.topicmapslab.majortom.model.core.ITopic> doReadTopics(de.topicmapslab.majortom.model.core.ITopicMap t, de.topicmapslab.majortom.model.core.ITopic type)
          Return all topics of the topic map being typed by the given type.
 de.topicmapslab.majortom.model.core.ITopic doReadType(de.topicmapslab.majortom.model.core.ITypeable typed)
          Read the type of the given typed item.
 java.util.Set<de.topicmapslab.majortom.model.core.ITopic> doReadTypes(de.topicmapslab.majortom.model.core.ITopic t)
          Read all types of the given type.
 java.lang.Object doReadValue(de.topicmapslab.majortom.model.core.IDatatypeAware t)
          Read the value of the data-type-aware.
<T> T
doReadValue(de.topicmapslab.majortom.model.core.IDatatypeAware t, java.lang.Class<T> type)
          Read the value of the data-type-aware and cast them to the given type
 java.lang.Object doReadValue(de.topicmapslab.majortom.model.core.IName n)
          Read the value of the topic name.
 java.util.Set<de.topicmapslab.majortom.model.core.IVariant> doReadVariants(de.topicmapslab.majortom.model.core.IName n)
          Read the variants of the given name.
 java.util.Set<de.topicmapslab.majortom.model.core.IVariant> doReadVariants(de.topicmapslab.majortom.model.core.IName n, de.topicmapslab.majortom.model.core.IScope scope)
          Read the variants of the given name in the given scope.
protected  void doRemoveAssociation(de.topicmapslab.majortom.model.core.IAssociation association, boolean cascade)
          Remove the association.
protected  void doRemoveItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c, de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
          Remove the given item identifier from the given construct.
protected  void doRemoveName(de.topicmapslab.majortom.model.core.IName name, boolean cascade)
          Remove the name.
protected  void doRemoveOccurrence(de.topicmapslab.majortom.model.core.IOccurrence occurrence, boolean cascade)
          Remove the occurrence.
protected  void doRemoveReifier(de.topicmapslab.majortom.model.core.IReifiable r, boolean cascade)
          This removes the reifier from a Reifiable but does NOT remove it from the hash in the reifiable which is given as parameter
protected  void doRemoveRole(de.topicmapslab.majortom.model.core.IAssociationRole role, boolean cascade)
          Remove the association role.
protected  void doRemoveScope(de.topicmapslab.majortom.model.core.IScopable s, de.topicmapslab.majortom.model.core.ITopic theme)
          Remove the theme from the given scoped item.
protected  void doRemoveSubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
          Remove the subject-identifier from the given topic.
protected  void doRemoveSubjectLocator(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectLocator)
          Remove the subject-locator from the given topic.
protected  void doRemoveSupertype(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          Remove the type from the given topic.
protected  void doRemoveTopic(de.topicmapslab.majortom.model.core.ITopic topic, boolean cascade)
          Remove the topic.
protected  void doRemoveTopic(de.topicmapslab.majortom.model.core.ITopic topic, boolean cascade, boolean fromReification)
           
protected  void doRemoveTopicMap(de.topicmapslab.majortom.model.core.ITopicMap topicMap, boolean cascade)
          Remove the topic map.
protected  void doRemoveType(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          Remove the super type from the given topic.
protected  void doRemoveVariant(de.topicmapslab.majortom.model.core.IVariant variant, boolean cascade)
          Remove the variant.
 long generateId()
          
<I extends org.tmapi.index.Index>
I
getIndex(java.lang.Class<I> clazz)
           
 java.lang.String getNewRedisId(java.lang.String type)
          Genrates a new redis id with the prefix
 RedisHandler getRedis()
           
 java.lang.String getTopicMapBaseLocatorHash()
          Convert the given topic map locator to a hash which can be used as prefix for topic maps
 de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity getTopicMapIdentity()
           
 void initialize(org.tmapi.core.Locator topicMapBaseLocator)
          
private  void internalModifyScope(de.topicmapslab.majortom.model.core.IScopable s, de.topicmapslab.majortom.model.core.IScope oldScope, de.topicmapslab.majortom.model.core.IScope newScope)
          Internal method to modify the scope
private  de.topicmapslab.majortom.model.core.IScope internalReadScope(de.topicmapslab.majortom.model.core.IScopable s)
          Internal method to read the scope of a construct.
 boolean isCachingEnabled()
          Method returns the internal state of caching.
private  void modifyItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c, java.lang.String itemIdentifier)
           
private  void modifySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t, java.lang.String subjectIdentifier)
           
private  void modifySubjectLocator(de.topicmapslab.majortom.model.core.ITopic t, java.lang.String subjectLocator)
           
private  void modifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t, java.lang.String value, java.lang.String datatype)
           
(package private)  void removeAssociation(java.lang.String id, boolean cascade)
           
 void removeDuplicates()
          
private  void removeIdentifiers(java.lang.String id, java.lang.String TYPE)
          Removes all identifiers of the construct
private  void removeItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c, java.lang.String itemIdentifier)
           
private  void removeItemIdentifiers(java.lang.String id)
          Removes all item-identifiers of the construct
(package private)  void removeName(java.lang.String id, boolean cascade)
           
(package private)  void removeOccurrence(java.lang.String id, boolean cascade)
           
private  void removeReifier(java.lang.String id, boolean cascade)
          This removes the reifier from a Reifiable but does NOT remove it from the hash in the reifiable which is given as parameter
private  void removeRole(de.topicmapslab.majortom.model.core.IAssociationRole role, boolean cascade, boolean calledFromAssociation)
           
(package private)  void removeRole(java.lang.String id, boolean cascade, boolean calledFromAssociation)
           
private  void removeSubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t, java.lang.String subjectIdentifier)
           
private  void removeSubjectLocator(de.topicmapslab.majortom.model.core.ITopic t, java.lang.String subjectLocator)
           
(package private)  void removeTopic(java.lang.String id, boolean cascade, boolean fromReification)
           
(package private)  void removeVariant(java.lang.String id, boolean cascade)
           
 void storeRevision(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.event.TopicMapEventType type, de.topicmapslab.majortom.model.core.IConstruct context, java.lang.Object newValue, java.lang.Object oldValue)
          Store a change set for the given revision.
 
Methods inherited from class de.topicmapslab.majortom.store.ModifableTopicMapStoreImpl
checkMergeConditionOfItemIdentifier, checkMergeConditionOfSubjectIdentifier, checkMergeConditionOfSubjectLocator, checkMergeConstraint, checkReificationConstraintBeforeModification, createSupertypeSubtypeAssociation, createTypeInstanceAssociation, doCreate, doMerge, doModify, doRemove, doRemove, existsTmdmDefaultNameType, existsTmdmInstanceRoleType, existsTmdmSubtypeRoleType, existsTmdmSupertypeRoleType, existsTmdmSupertypeSubtypeAssociationType, existsTmdmTypeInstanceAssociationType, existsTmdmTypeRoleType, getTmdmDefaultNameType, getTmdmInstanceRoleType, getTmdmSubtypeRoleType, getTmdmSupertypeRoleType, getTmdmSupertypeSubtypeAssociationType, getTmdmTypeInstanceAssociationType, getTmdmTypeRoleType, isTopicInUse, isTopicUsedAsPlayer, isTopicUsedAsReifier, isTopicUsedAsSupertype, isTopicUsedAsTheme, isTopicUsedAsType, removeSupertypeSubtypeAssociation, removeTypeInstanceAssociation, storeRevision
 
Methods inherited from class de.topicmapslab.majortom.store.ReadOnlyTopicMapStoreImpl
clearCache, close, createTransaction, doRead, doReadLocator, enableCaching, getCache, internalDoRead
 
Methods inherited from class de.topicmapslab.majortom.store.TopicMapStoreImpl
addTaskToThreadPool, addTopicMapListener, createConstructFactory, createMetaDataInstance, doAutomaticMerging, doMergingByTopicName, enableRevisionManagement, generateStringId, getConstructFactory, getListeners, getMetaData, getThreadPool, getTopicMap, getTopicMapBaseLocator, getTopicMapBaseLocatorReference, getTopicMapSystem, isConnected, isReadOnly, isReificationDeletionRestricted, isRevisionManagementEnabled, isRevisionManagementSupported, isTransactable, notifyListeners, recognizingSupertypeSubtypeAssociation, recognizingTypeInstanceAssociation, removeTopicMapListener, setTopicMap, setTopicMapSystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

private java.lang.String host

password

private java.lang.String password

database

private int database

port

private int port

HASHPOSTFIX

public static final java.lang.String HASHPOSTFIX
See Also:
Constant Field Values

COLON

public static final java.lang.String COLON
See Also:
Constant Field Values

CHARACTERISTICS

public static final java.lang.String CHARACTERISTICS
See Also:
Constant Field Values

TOPICMAP

public static final java.lang.String TOPICMAP
See Also:
Constant Field Values

PLAYED_ASSOCIATION

public static final java.lang.String PLAYED_ASSOCIATION
See Also:
Constant Field Values

PLAYED_ROLE

public static final java.lang.String PLAYED_ROLE
See Also:
Constant Field Values

TYPED_ROLES

public static final java.lang.String TYPED_ROLES
See Also:
Constant Field Values

TYPED_ASSOCIATIONS

public static final java.lang.String TYPED_ASSOCIATIONS
See Also:
Constant Field Values

TYPED_NAMES

public static final java.lang.String TYPED_NAMES
See Also:
Constant Field Values

TYPED_OCCURRENCES

public static final java.lang.String TYPED_OCCURRENCES
See Also:
Constant Field Values

TYPED_CHARACTERISTICS

public static final java.lang.String TYPED_CHARACTERISTICS
See Also:
Constant Field Values

SCOPED_ASSOCIATIONS

public static final java.lang.String SCOPED_ASSOCIATIONS
See Also:
Constant Field Values

SCOPED_NAMES

public static final java.lang.String SCOPED_NAMES
See Also:
Constant Field Values

SCOPED_OCCURRENCES

public static final java.lang.String SCOPED_OCCURRENCES
See Also:
Constant Field Values

SCOPED_VARIANTS

public static final java.lang.String SCOPED_VARIANTS
See Also:
Constant Field Values

SCOPED_CHARACTERISTICS

public static final java.lang.String SCOPED_CHARACTERISTICS
See Also:
Constant Field Values

ROLES_BY_ASSOCTYPE

public static final java.lang.String ROLES_BY_ASSOCTYPE
See Also:
Constant Field Values

IN_SCOPE

public static final java.lang.String IN_SCOPE
See Also:
Constant Field Values

PLAYER

public static final java.lang.String PLAYER
See Also:
Constant Field Values

ITEM_IDENTIFIER

public static final java.lang.String ITEM_IDENTIFIER
See Also:
Constant Field Values

SUBJECT_LOCATOR

public static final java.lang.String SUBJECT_LOCATOR
See Also:
Constant Field Values

SUBJECT_IDENTIFIER

public static final java.lang.String SUBJECT_IDENTIFIER
See Also:
Constant Field Values

TOPICS_OF_TOPICMAP

public static final java.lang.String TOPICS_OF_TOPICMAP
See Also:
Constant Field Values

ASSOCIATION

public static final java.lang.String ASSOCIATION
See Also:
Constant Field Values

ROLE

public static final java.lang.String ROLE
See Also:
Constant Field Values

TOPIC

public static final java.lang.String TOPIC
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

OCCURRENCE

public static final java.lang.String OCCURRENCE
See Also:
Constant Field Values

VARIANT

public static final java.lang.String VARIANT
See Also:
Constant Field Values

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

SCOPE

public static final java.lang.String SCOPE
See Also:
Constant Field Values

PARENT

public static final java.lang.String PARENT
See Also:
Constant Field Values

VALUE

public static final java.lang.String VALUE
See Also:
Constant Field Values

DATATYPE

public static final java.lang.String DATATYPE
See Also:
Constant Field Values

REIFIER

public static final java.lang.String REIFIER
See Also:
Constant Field Values

REIFIED

public static final java.lang.String REIFIED
See Also:
Constant Field Values

LOCATORS

public static final java.lang.String LOCATORS
See Also:
Constant Field Values

SCOPE_COLON

public static final java.lang.String SCOPE_COLON
See Also:
Constant Field Values

ASSOCIATION_OF_TOPICMAP

public static final java.lang.String ASSOCIATION_OF_TOPICMAP
See Also:
Constant Field Values

SUPERTYPES

public static final java.lang.String SUPERTYPES
See Also:
Constant Field Values

SUBTYPES

public static final java.lang.String SUBTYPES
See Also:
Constant Field Values

TYPES

public static final java.lang.String TYPES
See Also:
Constant Field Values

INSTANCES

public static final java.lang.String INSTANCES
See Also:
Constant Field Values

STAR

public static final java.lang.String STAR
See Also:
Constant Field Values

EMPTY_SCOPE_ID

public static final java.lang.String EMPTY_SCOPE_ID
See Also:
Constant Field Values

EMPTY_SCOPE

public static final de.topicmapslab.majortom.model.core.IScope EMPTY_SCOPE

redis

private RedisHandler redis

EmptyTopicSet

private static java.util.Set<de.topicmapslab.majortom.model.core.ITopic> EmptyTopicSet

topicMapIdentity

private de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity topicMapIdentity

typeInstanceIndex

private de.topicmapslab.majortom.model.index.ITypeInstanceIndex typeInstanceIndex

transitiveTypeInstanceIndex

private de.topicmapslab.majortom.model.index.ITransitiveTypeInstanceIndex transitiveTypeInstanceIndex

literalIndex

private de.topicmapslab.majortom.model.index.ILiteralIndex literalIndex

scopedIndex

private de.topicmapslab.majortom.model.index.IScopedIndex scopedIndex

supertypeSubtypeIndex

private de.topicmapslab.majortom.model.index.ISupertypeSubtypeIndex supertypeSubtypeIndex

identityIndex

private de.topicmapslab.majortom.model.index.IIdentityIndex identityIndex

pagedTypeInstanceIndex

private de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex pagedTypeInstanceIndex

pagedTransitiveTypeInstanceIndex

private de.topicmapslab.majortom.model.index.paging.IPagedTransitiveTypeInstanceIndex pagedTransitiveTypeInstanceIndex

pagedLiteralIndex

private de.topicmapslab.majortom.model.index.paging.IPagedLiteralIndex pagedLiteralIndex

pagedScopedIndex

private de.topicmapslab.majortom.model.index.paging.IPagedScopedIndex pagedScopedIndex

pagedIdentityIndex

private de.topicmapslab.majortom.model.index.paging.IPagedIdentityIndex pagedIdentityIndex

pagedConstructIndex

private de.topicmapslab.majortom.model.index.paging.IPagedConstructIndex pagedConstructIndex

pagedSupertypeSubtypeIndex

private de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex pagedSupertypeSubtypeIndex

scopeCache

private java.util.Map<java.util.Collection<de.topicmapslab.majortom.model.core.ITopic>,de.topicmapslab.majortom.model.core.IScope> scopeCache
Constructor Detail

RedisTopicMapStore

public RedisTopicMapStore()

RedisTopicMapStore

public RedisTopicMapStore(de.topicmapslab.majortom.model.core.ITopicMapSystem topicMapSystem)
Method Detail

connect

public void connect()
             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl

Specified by:
connect in interface de.topicmapslab.majortom.model.store.ITopicMapStore
Overrides:
connect in class ReadOnlyTopicMapStoreImpl
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

initialize

public void initialize(org.tmapi.core.Locator topicMapBaseLocator)
                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: TopicMapStoreImpl

Specified by:
initialize in interface de.topicmapslab.majortom.model.store.ITopicMapStore
Overrides:
initialize in class TopicMapStoreImpl
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

getIndex

public <I extends org.tmapi.index.Index> I getIndex(java.lang.Class<I> clazz)

getTopicMapIdentity

public de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity getTopicMapIdentity()

doCreateItemIdentifier

protected de.topicmapslab.majortom.model.core.ILocator doCreateItemIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
Description copied from class: ModifableTopicMapStoreImpl
Creates an internal item-identifier for a construct.

Specified by:
doCreateItemIdentifier in class ModifableTopicMapStoreImpl
Parameters:
topicMap - the topic map
Returns:
the created item-identifier

doCreateAssociation

protected de.topicmapslab.majortom.model.core.IAssociation doCreateAssociation(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                               de.topicmapslab.majortom.model.core.ITopic type)
                                                                        throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new association item.

Specified by:
doCreateAssociation in class ModifableTopicMapStoreImpl
Parameters:
topicMap - the topic map
type - the type
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateAssociation

protected de.topicmapslab.majortom.model.core.IAssociation doCreateAssociation(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                               de.topicmapslab.majortom.model.core.ITopic type,
                                                                               java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                                        throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new association item.

Specified by:
doCreateAssociation in class ModifableTopicMapStoreImpl
Parameters:
topicMap - the topic map
type - the type
themes - the scoping themes
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateName

protected de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                 java.lang.String value)
                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new name characteristics item.

Specified by:
doCreateName in class ModifableTopicMapStoreImpl
Parameters:
topic - the parent topic
value - the characteristics value
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateName

protected de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                 java.lang.String value,
                                                                 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new name characteristics item.

Specified by:
doCreateName in class ModifableTopicMapStoreImpl
Parameters:
topic - the parent topic
value - the characteristics value
themes - the scoping themes
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateName

protected de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                 de.topicmapslab.majortom.model.core.ITopic type,
                                                                 java.lang.String value)
                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new name characteristics item.

Specified by:
doCreateName in class ModifableTopicMapStoreImpl
Parameters:
topic - the parent topic
type - the type
value - the characteristics value
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateName

protected de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                 de.topicmapslab.majortom.model.core.ITopic type,
                                                                 java.lang.String value,
                                                                 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new name characteristics item.

Specified by:
doCreateName in class ModifableTopicMapStoreImpl
Parameters:
topic - the parent topic
type - the type
value - the characteristics value
themes - the scoping themes
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateOccurrence

protected de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                             de.topicmapslab.majortom.model.core.ITopic type,
                                                                             java.lang.String value)
                                                                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new occurrence characteristics item.

Specified by:
doCreateOccurrence in class ModifableTopicMapStoreImpl
Parameters:
topic - the parent topic
type - the type
value - the characteristics value
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateOccurrence

protected de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                             de.topicmapslab.majortom.model.core.ITopic type,
                                                                             java.lang.String value,
                                                                             java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new occurrence characteristics item.

Specified by:
doCreateOccurrence in class ModifableTopicMapStoreImpl
Parameters:
topic - the parent topic
type - the type
value - the characteristics value
themes - the scoping themes
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateOccurrence

protected de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                             de.topicmapslab.majortom.model.core.ITopic type,
                                                                             de.topicmapslab.majortom.model.core.ILocator value)
                                                                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new occurrence characteristics item.

Specified by:
doCreateOccurrence in class ModifableTopicMapStoreImpl
Parameters:
topic - the parent topic
type - the type
value - the characteristics value
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateOccurrence

protected de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                             de.topicmapslab.majortom.model.core.ITopic type,
                                                                             de.topicmapslab.majortom.model.core.ILocator value,
                                                                             java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new occurrence characteristics item.

Specified by:
doCreateOccurrence in class ModifableTopicMapStoreImpl
Parameters:
topic - the parent topic
type - the type
value - the characteristics value
themes - the scoping themes
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateOccurrence

protected de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                             de.topicmapslab.majortom.model.core.ITopic type,
                                                                             java.lang.String value,
                                                                             de.topicmapslab.majortom.model.core.ILocator datatype)
                                                                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new occurrence characteristics item.

Specified by:
doCreateOccurrence in class ModifableTopicMapStoreImpl
Parameters:
topic - the parent topic
type - the type
value - the characteristics value
datatype - the data type
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateOccurrence

protected de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                             de.topicmapslab.majortom.model.core.ITopic type,
                                                                             java.lang.String value,
                                                                             de.topicmapslab.majortom.model.core.ILocator datatype,
                                                                             java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new occurrence characteristics item.

Specified by:
doCreateOccurrence in class ModifableTopicMapStoreImpl
Parameters:
topic - the parent topic
type - the type
value - the characteristics value
datatype - the data type
themes - the scoping themes
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

createOccurrence

private de.topicmapslab.majortom.model.core.IOccurrence createOccurrence(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                         de.topicmapslab.majortom.model.core.ITopic type,
                                                                         java.lang.String value,
                                                                         java.lang.String datatype,
                                                                         java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)

doCreateRole

protected de.topicmapslab.majortom.model.core.IAssociationRole doCreateRole(de.topicmapslab.majortom.model.core.IAssociation association,
                                                                            de.topicmapslab.majortom.model.core.ITopic type,
                                                                            de.topicmapslab.majortom.model.core.ITopic player)
                                                                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new association role item.

Specified by:
doCreateRole in class ModifableTopicMapStoreImpl
Parameters:
association - the parent association
type - the type
player - the role player
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateTopicWithoutIdentifier

protected de.topicmapslab.majortom.model.core.ITopic doCreateTopicWithoutIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
                                                                             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new topic item without any identifier.

Specified by:
doCreateTopicWithoutIdentifier in class ModifableTopicMapStoreImpl
Parameters:
topicMap - the topic map
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateTopicByItemIdentifier

protected de.topicmapslab.majortom.model.core.ITopic doCreateTopicByItemIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                   de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
                                                                            throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new topic item.

Specified by:
doCreateTopicByItemIdentifier in class ModifableTopicMapStoreImpl
Parameters:
topicMap - the topic map
itemIdentifier - the item-identifier
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateTopicBySubjectIdentifier

protected de.topicmapslab.majortom.model.core.ITopic doCreateTopicBySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                      de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
                                                                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new topic item.

Specified by:
doCreateTopicBySubjectIdentifier in class ModifableTopicMapStoreImpl
Parameters:
topicMap - the topic map
subjectIdentifier - the subject-identifier
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateTopicBySubjectLocator

protected de.topicmapslab.majortom.model.core.ITopic doCreateTopicBySubjectLocator(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                   de.topicmapslab.majortom.model.core.ILocator subjectLocator)
                                                                            throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new topic item.

Specified by:
doCreateTopicBySubjectLocator in class ModifableTopicMapStoreImpl
Parameters:
topicMap - the topic map
subjectLocator - the subject-locator
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

createTopic

private de.topicmapslab.majortom.model.core.ITopic createTopic(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                               java.lang.String subjectIdentifier,
                                                               java.lang.String subjectLocator,
                                                               java.lang.String itemIdentifier)
Internal method to create a topic

Parameters:
topicMap - the topic map
subjectIdentifier - the subject identifier or null
subjectLocator - the subject locator or null
itemIdentifier - the item identifier or null
Returns:
the new topic

doCreateVariant

protected de.topicmapslab.majortom.model.core.IVariant doCreateVariant(de.topicmapslab.majortom.model.core.IName name,
                                                                       java.lang.String value,
                                                                       java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new variant for the given name.

Specified by:
doCreateVariant in class ModifableTopicMapStoreImpl
Parameters:
name - the parent name
value - the value
themes - the scoping themes
Returns:
the created variant
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateVariant

protected de.topicmapslab.majortom.model.core.IVariant doCreateVariant(de.topicmapslab.majortom.model.core.IName name,
                                                                       de.topicmapslab.majortom.model.core.ILocator value,
                                                                       java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new variant for the given name.

Specified by:
doCreateVariant in class ModifableTopicMapStoreImpl
Parameters:
name - the parent name
value - the value
themes - the scoping themes
Returns:
the created variant
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateVariant

protected de.topicmapslab.majortom.model.core.IVariant doCreateVariant(de.topicmapslab.majortom.model.core.IName name,
                                                                       java.lang.String value,
                                                                       de.topicmapslab.majortom.model.core.ILocator datatype,
                                                                       java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Create a new variant for the given name.

Specified by:
doCreateVariant in class ModifableTopicMapStoreImpl
Parameters:
name - the parent name
value - the value
datatype - the data type
themes - the scoping themes
Returns:
the created variant
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

createVariant

protected de.topicmapslab.majortom.model.core.IVariant createVariant(de.topicmapslab.majortom.model.core.IName name,
                                                                     java.lang.String value,
                                                                     java.lang.String datatype,
                                                                     java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                              throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doModifyItemIdentifier

protected void doModifyItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c,
                                      de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Add a new item-identifier to the given construct

Specified by:
doModifyItemIdentifier in class ModifableTopicMapStoreImpl
Parameters:
c - the construct
itemIdentifier - the item identifier
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

modifyItemIdentifier

private void modifyItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c,
                                  java.lang.String itemIdentifier)
                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doModifyPlayer

protected void doModifyPlayer(de.topicmapslab.majortom.model.core.IAssociationRole role,
                              de.topicmapslab.majortom.model.core.ITopic player)
                       throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Modify the player of the given role.

Specified by:
doModifyPlayer in class ModifableTopicMapStoreImpl
Parameters:
role - the role
player - the new player
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doModifyReifier

protected void doModifyReifier(de.topicmapslab.majortom.model.core.IReifiable r,
                               de.topicmapslab.majortom.model.core.ITopic reifier)
                        throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Modify the reifier of the given reified item.

Specified by:
doModifyReifier in class ModifableTopicMapStoreImpl
Parameters:
r - the reified item
reifier - the reifier
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doModifyScope

protected void doModifyScope(de.topicmapslab.majortom.model.core.IScopable s,
                             de.topicmapslab.majortom.model.core.ITopic theme)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Add a new theme to the given scoped item.

Specified by:
doModifyScope in class ModifableTopicMapStoreImpl
Parameters:
s - the scoped item
theme - the theme
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

internalModifyScope

private void internalModifyScope(de.topicmapslab.majortom.model.core.IScopable s,
                                 de.topicmapslab.majortom.model.core.IScope oldScope,
                                 de.topicmapslab.majortom.model.core.IScope newScope)
Internal method to modify the scope

Parameters:
s - the scoped construct
oldScope - the old scope
newScope - the new scope

doModifySubjectIdentifier

protected void doModifySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t,
                                         de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Add a new subject-identifier to the given topic

Specified by:
doModifySubjectIdentifier in class ModifableTopicMapStoreImpl
Parameters:
t - the topic
subjectIdentifier - the subject-identifier
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

modifySubjectIdentifier

private void modifySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t,
                                     java.lang.String subjectIdentifier)
                              throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doModifySubjectLocator

protected void doModifySubjectLocator(de.topicmapslab.majortom.model.core.ITopic t,
                                      de.topicmapslab.majortom.model.core.ILocator subjectLocator)
                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Add a new subject-locator to the given topic

Specified by:
doModifySubjectLocator in class ModifableTopicMapStoreImpl
Parameters:
t - the topic
subjectLocator - the subject-locator
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

modifySubjectLocator

private void modifySubjectLocator(de.topicmapslab.majortom.model.core.ITopic t,
                                  java.lang.String subjectLocator)
                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doModifySupertype

protected void doModifySupertype(de.topicmapslab.majortom.model.core.ITopic t,
                                 de.topicmapslab.majortom.model.core.ITopic type)
                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Add a new super type to the given topic

Specified by:
doModifySupertype in class ModifableTopicMapStoreImpl
Parameters:
t - the topic
type - the super type
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doModifyTag

protected void doModifyTag(de.topicmapslab.majortom.model.core.ITopicMap tm,
                           java.lang.String tag)
                    throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Add a new tag to the given topic map for the current time stamp

Specified by:
doModifyTag in class ModifableTopicMapStoreImpl
Parameters:
tm - the topic map
tag - the tag
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doModifyTag

protected void doModifyTag(de.topicmapslab.majortom.model.core.ITopicMap tm,
                           java.lang.String tag,
                           java.util.Calendar timestamp)
                    throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Add a new tag to the given topic map for the given time stamp

Specified by:
doModifyTag in class ModifableTopicMapStoreImpl
Parameters:
tm - the topic map
tag - the tag
timestamp - the time stamp
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doModifyType

protected void doModifyType(de.topicmapslab.majortom.model.core.ITypeable t,
                            de.topicmapslab.majortom.model.core.ITopic type)
                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Modify the type of the given typed item.

Specified by:
doModifyType in class ModifableTopicMapStoreImpl
Parameters:
t - the typed item
type - the type
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doModifyTopicType

protected void doModifyTopicType(de.topicmapslab.majortom.model.core.ITopic t,
                                 de.topicmapslab.majortom.model.core.ITopic type)
                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Add a new type to the given topic.

Specified by:
doModifyTopicType in class ModifableTopicMapStoreImpl
Parameters:
t - the topic
type - the type to add
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doModifyValue

protected void doModifyValue(de.topicmapslab.majortom.model.core.IName n,
                             java.lang.String value)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Modify the value of the given name.

Specified by:
doModifyValue in class ModifableTopicMapStoreImpl
Parameters:
n - the name
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doModifyValue

protected void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t,
                             java.lang.String value)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Modify the value of the given data-type-aware.

Specified by:
doModifyValue in class ModifableTopicMapStoreImpl
Parameters:
t - data-type-aware
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doModifyValue

protected void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t,
                             java.lang.String value,
                             de.topicmapslab.majortom.model.core.ILocator datatype)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Modify the value and the data type of the given data-type-aware.

Specified by:
doModifyValue in class ModifableTopicMapStoreImpl
Parameters:
t - data-type-aware
value - the value
datatype - the data type
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

modifyValue

private void modifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t,
                         java.lang.String value,
                         java.lang.String datatype)
                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doModifyValue

protected void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t,
                             java.lang.Object value)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Modify the value and the data type of the given data-type-aware.

Specified by:
doModifyValue in class ModifableTopicMapStoreImpl
Parameters:
t - data-type-aware
value - the value
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doModifyMetaData

protected void doModifyMetaData(de.topicmapslab.majortom.model.revision.IRevision revision,
                                java.lang.String key,
                                java.lang.String value)
                         throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Add a new meta data set to the given revision

Specified by:
doModifyMetaData in class ModifableTopicMapStoreImpl
Parameters:
revision - the revision
key - the key of the meta data set
value - the value of the meta data set
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doMergeTopics

protected void doMergeTopics(de.topicmapslab.majortom.model.core.ITopic context,
                             de.topicmapslab.majortom.model.core.ITopic other)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Merge a topic in the given topic

Specified by:
doMergeTopics in class ModifableTopicMapStoreImpl
Parameters:
context - the topic to merge in
other - the topic to merge in
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doMergeTopicMaps

protected void doMergeTopicMaps(org.tmapi.core.TopicMap context,
                                org.tmapi.core.TopicMap other)
                         throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Merge a topic map in the given topic map.

Specified by:
doMergeTopicMaps in class ModifableTopicMapStoreImpl
Parameters:
context - the topic map
other - the topic map to merge in
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doRemoveItemIdentifier

protected void doRemoveItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c,
                                      de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Remove the given item identifier from the given construct.

Specified by:
doRemoveItemIdentifier in class ModifableTopicMapStoreImpl
Parameters:
c - the construct
itemIdentifier - the item identifier to remove
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

removeItemIdentifier

private void removeItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c,
                                  java.lang.String itemIdentifier)
                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveScope

protected void doRemoveScope(de.topicmapslab.majortom.model.core.IScopable s,
                             de.topicmapslab.majortom.model.core.ITopic theme)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Remove the theme from the given scoped item.

Specified by:
doRemoveScope in class ModifableTopicMapStoreImpl
Parameters:
s - the scoped item
theme - the theme
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doRemoveSubjectIdentifier

protected void doRemoveSubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t,
                                         de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Remove the subject-identifier from the given topic.

Specified by:
doRemoveSubjectIdentifier in class ModifableTopicMapStoreImpl
Parameters:
t - the topic
subjectIdentifier - the subject-identifier
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

removeSubjectIdentifier

private void removeSubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t,
                                     java.lang.String subjectIdentifier)
                              throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveSubjectLocator

protected void doRemoveSubjectLocator(de.topicmapslab.majortom.model.core.ITopic t,
                                      de.topicmapslab.majortom.model.core.ILocator subjectLocator)
                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Remove the subject-locator from the given topic.

Specified by:
doRemoveSubjectLocator in class ModifableTopicMapStoreImpl
Parameters:
t - the topic
subjectLocator - the subject-locator
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

removeSubjectLocator

private void removeSubjectLocator(de.topicmapslab.majortom.model.core.ITopic t,
                                  java.lang.String subjectLocator)
                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveSupertype

protected void doRemoveSupertype(de.topicmapslab.majortom.model.core.ITopic t,
                                 de.topicmapslab.majortom.model.core.ITopic type)
                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Remove the type from the given topic.

Specified by:
doRemoveSupertype in class ModifableTopicMapStoreImpl
Parameters:
t - the topic
type - the type
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doRemoveType

protected void doRemoveType(de.topicmapslab.majortom.model.core.ITopic t,
                            de.topicmapslab.majortom.model.core.ITopic type)
                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Remove the super type from the given topic.

Specified by:
doRemoveType in class ModifableTopicMapStoreImpl
Parameters:
t - the topic
type - the type
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doRemoveTopicMap

protected void doRemoveTopicMap(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                boolean cascade)
                         throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Remove the topic map.

Specified by:
doRemoveTopicMap in class ModifableTopicMapStoreImpl
Parameters:
topicMap - the topic map
cascade - flag indicates if the dependent construct should removed too
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveTopic

protected void doRemoveTopic(de.topicmapslab.majortom.model.core.ITopic topic,
                             boolean cascade)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Remove the topic.

Specified by:
doRemoveTopic in class ModifableTopicMapStoreImpl
Parameters:
topic - the topic
cascade - flag indicates if the dependent construct should removed too
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

removeTopic

void removeTopic(java.lang.String id,
                 boolean cascade,
                 boolean fromReification)
           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveTopic

protected void doRemoveTopic(de.topicmapslab.majortom.model.core.ITopic topic,
                             boolean cascade,
                             boolean fromReification)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

removeName

void removeName(java.lang.String id,
                boolean cascade)
          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveName

protected void doRemoveName(de.topicmapslab.majortom.model.core.IName name,
                            boolean cascade)
                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Remove the name.

Specified by:
doRemoveName in class ModifableTopicMapStoreImpl
Parameters:
name - the name
cascade - flag indicates if the dependent construct should removed too
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

removeOccurrence

void removeOccurrence(java.lang.String id,
                      boolean cascade)
                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveOccurrence

protected void doRemoveOccurrence(de.topicmapslab.majortom.model.core.IOccurrence occurrence,
                                  boolean cascade)
                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Remove the occurrence.

Specified by:
doRemoveOccurrence in class ModifableTopicMapStoreImpl
Parameters:
occurrence - the occurrence
cascade - flag indicates if the dependent construct should removed too
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

removeAssociation

void removeAssociation(java.lang.String id,
                       boolean cascade)
                 throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveAssociation

protected void doRemoveAssociation(de.topicmapslab.majortom.model.core.IAssociation association,
                                   boolean cascade)
                            throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Remove the association.

Specified by:
doRemoveAssociation in class ModifableTopicMapStoreImpl
Parameters:
association - the association
cascade - flag indicates if the dependent construct should removed too
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

removeRole

void removeRole(java.lang.String id,
                boolean cascade,
                boolean calledFromAssociation)
          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

removeRole

private void removeRole(de.topicmapslab.majortom.model.core.IAssociationRole role,
                        boolean cascade,
                        boolean calledFromAssociation)
                 throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveRole

protected void doRemoveRole(de.topicmapslab.majortom.model.core.IAssociationRole role,
                            boolean cascade)
                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Remove the association role.

Specified by:
doRemoveRole in class ModifableTopicMapStoreImpl
Parameters:
role - the role
cascade - flag indicates if the dependent construct should removed too
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveVariant

protected void doRemoveVariant(de.topicmapslab.majortom.model.core.IVariant variant,
                               boolean cascade)
                        throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ModifableTopicMapStoreImpl
Remove the variant.

Specified by:
doRemoveVariant in class ModifableTopicMapStoreImpl
Parameters:
variant - the variant
cascade - flag indicates if the dependent construct should removed too
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

removeVariant

void removeVariant(java.lang.String id,
                   boolean cascade)
             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

removeReifier

private void removeReifier(java.lang.String id,
                           boolean cascade)
                    throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
This removes the reifier from a Reifiable but does NOT remove it from the hash in the reifiable which is given as parameter

Parameters:
r - the reifiable construct id
cascade -
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveReifier

protected void doRemoveReifier(de.topicmapslab.majortom.model.core.IReifiable r,
                               boolean cascade)
                        throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
This removes the reifier from a Reifiable but does NOT remove it from the hash in the reifiable which is given as parameter

Parameters:
r - the reifiable construct
cascade -
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

removeItemIdentifiers

private void removeItemIdentifiers(java.lang.String id)
                            throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Removes all item-identifiers of the construct

Parameters:
c - the construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

removeIdentifiers

private void removeIdentifiers(java.lang.String id,
                               java.lang.String TYPE)
                        throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Removes all identifiers of the construct

Parameters:
c - the construct
TYPE - constant defines the key part of redis
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

storeRevision

public void storeRevision(de.topicmapslab.majortom.model.revision.IRevision revision,
                          de.topicmapslab.majortom.model.event.TopicMapEventType type,
                          de.topicmapslab.majortom.model.core.IConstruct context,
                          java.lang.Object newValue,
                          java.lang.Object oldValue)
Description copied from class: ModifableTopicMapStoreImpl
Store a change set for the given revision. The change set will be created by the given arguments.

Specified by:
storeRevision in class ModifableTopicMapStoreImpl
Parameters:
revision - the revision the change set should add to
type - the type of change
context - the context of change
newValue - the new value after change
oldValue - the old value before change

createRevision

protected de.topicmapslab.majortom.model.revision.IRevision createRevision(de.topicmapslab.majortom.model.event.TopicMapEventType type)
Description copied from class: ModifableTopicMapStoreImpl
Creating a new revision object.

Specified by:
createRevision in class ModifableTopicMapStoreImpl
Returns:
the new revision object

doCreateLocator

protected de.topicmapslab.majortom.model.core.ILocator doCreateLocator(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                       java.lang.String reference)
                                                                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Create a locator instance.

Specified by:
doCreateLocator in class ReadOnlyTopicMapStoreImpl
Parameters:
topicMap - the topic map
reference - the string reference
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doCreateScope

public de.topicmapslab.majortom.model.core.IScope doCreateScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                         throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Create the internal scope object representing the collection of themes

Specified by:
doCreateScope in class ReadOnlyTopicMapStoreImpl
Parameters:
topicMap - the topic map
themes - the themes collection
Returns:
the scope object
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadAssociation

public java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t)
                                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the association played by the given topic

Specified by:
doReadAssociation in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadAssociation

public java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                         de.topicmapslab.majortom.model.core.ITopic type)
                                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the associations played by the given topic and being typed by the given type.

Specified by:
doReadAssociation in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
type - the type
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadAssociation

public java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                         de.topicmapslab.majortom.model.core.ITopic type,
                                                                                         de.topicmapslab.majortom.model.core.IScope scope)
                                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all scoped associations played by the given topic and being typed by the given type

Specified by:
doReadAssociation in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
type - the type
scope - the scope
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadAssociation

public java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                         de.topicmapslab.majortom.model.core.IScope scope)
                                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all scoped associations played by the given topic

Specified by:
doReadAssociation in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
scope - the scope
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadAssociation

public java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm)
                                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all associations of the topic map.

Specified by:
doReadAssociation in class ReadOnlyTopicMapStoreImpl
Parameters:
tm - the topic map
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadAssociation

public java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm,
                                                                                         de.topicmapslab.majortom.model.core.ITopic type)
                                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all associations of the topic map being typed by the given type.

Specified by:
doReadAssociation in class ReadOnlyTopicMapStoreImpl
Parameters:
tm - the topic map
type - the type
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadAssociation

public java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm,
                                                                                         de.topicmapslab.majortom.model.core.ITopic type,
                                                                                         de.topicmapslab.majortom.model.core.IScope scope)
                                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all scoped associations of the topic map being typed by the given type.

Specified by:
doReadAssociation in class ReadOnlyTopicMapStoreImpl
Parameters:
tm - the topic map
type - the type
scope - the scope
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadAssociation

public java.util.Set<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm,
                                                                                         de.topicmapslab.majortom.model.core.IScope scope)
                                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all scoped associations of the topic map.

Specified by:
doReadAssociation in class ReadOnlyTopicMapStoreImpl
Parameters:
tm - the topic map
scope - the scope
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadCharacteristics

public java.util.Set<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t)
                                                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all characteristics if the given topic.

Specified by:
doReadCharacteristics in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadCharacteristics

public java.util.Set<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                                 de.topicmapslab.majortom.model.core.ITopic type)
                                                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all characteristics if the given topic being typed by the given type.

Specified by:
doReadCharacteristics in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
type - the type
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadCharacteristics

public java.util.Set<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                                 de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                 de.topicmapslab.majortom.model.core.IScope scope)
                                                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all scoped characteristics if the given topic being typed by the given type.

Specified by:
doReadCharacteristics in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
type - the type
scope - the scope
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadCharacteristics

public java.util.Set<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                                 de.topicmapslab.majortom.model.core.IScope scope)
                                                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all scoped characteristics if the given topic.

Specified by:
doReadCharacteristics in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
scope - the scope
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadConstruct

public de.topicmapslab.majortom.model.core.IConstruct doReadConstruct(de.topicmapslab.majortom.model.core.ITopicMap tm,
                                                                      java.lang.String id)
                                                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the construct identified by the given id.

Specified by:
doReadConstruct in class ReadOnlyTopicMapStoreImpl
Parameters:
tm - the topic map
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadConstruct

public de.topicmapslab.majortom.model.core.IConstruct doReadConstruct(de.topicmapslab.majortom.model.core.ITopicMap t,
                                                                      de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
                                                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the construct identified by the given item-identifier.

Specified by:
doReadConstruct in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic map
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadDataType

public de.topicmapslab.majortom.model.core.ILocator doReadDataType(de.topicmapslab.majortom.model.core.IDatatypeAware d)
                                                            throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the data type of the given data-type-aware

Specified by:
doReadDataType in class ReadOnlyTopicMapStoreImpl
Parameters:
d - the data-type-aware
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadId

public java.lang.String doReadId(de.topicmapslab.majortom.model.core.IConstruct c)
                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the id of the given construct

Specified by:
doReadId in class ReadOnlyTopicMapStoreImpl
Parameters:
c - the construct
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadItemIdentifiers

public java.util.Set<de.topicmapslab.majortom.model.core.ILocator> doReadItemIdentifiers(de.topicmapslab.majortom.model.core.IConstruct c)
                                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all item-identifiers of the given construct

Specified by:
doReadItemIdentifiers in class ReadOnlyTopicMapStoreImpl
Parameters:
c - the construct
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadNames

public java.util.Set<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t)
                                                                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all names if the given topic.

Specified by:
doReadNames in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadNames

public java.util.Set<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t,
                                                                            de.topicmapslab.majortom.model.core.ITopic type)
                                                                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all names if the given topic being typed by the given type.

Specified by:
doReadNames in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
type - the type
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadNames

public java.util.Set<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t,
                                                                            de.topicmapslab.majortom.model.core.ITopic type,
                                                                            de.topicmapslab.majortom.model.core.IScope scope)
                                                                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all scoped names if the given topic being typed by the given type.

Specified by:
doReadNames in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
type - the type
scope - the scope
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadNames

public java.util.Set<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t,
                                                                            de.topicmapslab.majortom.model.core.IScope scope)
                                                                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all scoped names of the given topic where the scope matches exactly.

Specified by:
doReadNames in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
scope - the scope
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadFutureRevision

public de.topicmapslab.majortom.model.revision.IRevision doReadFutureRevision(de.topicmapslab.majortom.model.revision.IRevision r)
                                                                       throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the previous revision of the revision.

Specified by:
doReadFutureRevision in class ReadOnlyTopicMapStoreImpl
Parameters:
r - the revision
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadOccurrences

public java.util.Set<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t)
                                                                                 throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all occurrences if the given topic.

Specified by:
doReadOccurrences in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadOccurrences

public java.util.Set<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                        de.topicmapslab.majortom.model.core.ITopic type)
                                                                                 throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all occurrence if the given topic being typed by the given type.

Specified by:
doReadOccurrences in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
type - the type
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadOccurrences

public java.util.Set<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                        de.topicmapslab.majortom.model.core.ITopic type,
                                                                                        de.topicmapslab.majortom.model.core.IScope scope)
                                                                                 throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all scoped occurrence if the given topic being typed by the given type.

Specified by:
doReadOccurrences in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
type - the type
scope - the scope
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadOccurrences

public java.util.Set<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                        de.topicmapslab.majortom.model.core.IScope scope)
                                                                                 throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all scoped occurrence if the given topic.

Specified by:
doReadOccurrences in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
scope - the scope
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadPlayer

public de.topicmapslab.majortom.model.core.ITopic doReadPlayer(de.topicmapslab.majortom.model.core.IAssociationRole role)
                                                        throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the player of the given role

Specified by:
doReadPlayer in class ReadOnlyTopicMapStoreImpl
Parameters:
role - the role
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadPastRevision

public de.topicmapslab.majortom.model.revision.IRevision doReadPastRevision(de.topicmapslab.majortom.model.revision.IRevision r)
                                                                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the past revision of the revision.

Specified by:
doReadPastRevision in class ReadOnlyTopicMapStoreImpl
Parameters:
r - the revision
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadReification

public de.topicmapslab.majortom.model.core.IReifiable doReadReification(de.topicmapslab.majortom.model.core.ITopic t)
                                                                 throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the reified item of the given topic.

Specified by:
doReadReification in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadReification

public de.topicmapslab.majortom.model.core.ITopic doReadReification(de.topicmapslab.majortom.model.core.IReifiable r)
                                                             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the reifier of the reified construct

Specified by:
doReadReification in class ReadOnlyTopicMapStoreImpl
Parameters:
r - the reified item
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadRevisionTimestamp

public java.util.Calendar doReadRevisionTimestamp(de.topicmapslab.majortom.model.revision.IRevision r)
                                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the time-stamp of the revision begin.

Specified by:
doReadRevisionTimestamp in class ReadOnlyTopicMapStoreImpl
Parameters:
r - the revision
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadChangeSet

public de.topicmapslab.majortom.model.revision.Changeset doReadChangeSet(de.topicmapslab.majortom.model.revision.IRevision r)
                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the change set of a revision.

Specified by:
doReadChangeSet in class ReadOnlyTopicMapStoreImpl
Parameters:
r - the revision
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadRoles

public java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.IAssociation association)
                                                                                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all association role items of the given association

Specified by:
doReadRoles in class ReadOnlyTopicMapStoreImpl
Parameters:
association - the association
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadRoles

public java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.IAssociation association,
                                                                                       de.topicmapslab.majortom.model.core.ITopic type)
                                                                                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all association role items of the given association and the given type.

Specified by:
doReadRoles in class ReadOnlyTopicMapStoreImpl
Parameters:
association - the association
type - the role type
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadRoles

public java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player)
                                                                                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the played roles of the given topic.

Specified by:
doReadRoles in class ReadOnlyTopicMapStoreImpl
Parameters:
player - the role player
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadRoles

public java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player,
                                                                                       de.topicmapslab.majortom.model.core.ITopic type)
                                                                                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the played roles of the given topic and being typed by the given type

Specified by:
doReadRoles in class ReadOnlyTopicMapStoreImpl
Parameters:
player - the player
type - the role type
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadRoles

public java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player,
                                                                                       de.topicmapslab.majortom.model.core.ITopic type,
                                                                                       de.topicmapslab.majortom.model.core.ITopic assocType)
                                                                                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the played roles of the given topic and being typed by the given type

Specified by:
doReadRoles in class ReadOnlyTopicMapStoreImpl
Parameters:
player - the player
type - the role type
assocType - the association type
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadRoleTypes

public java.util.Set<de.topicmapslab.majortom.model.core.ITopic> doReadRoleTypes(de.topicmapslab.majortom.model.core.IAssociation association)
                                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all role types of the given association

Specified by:
doReadRoleTypes in class ReadOnlyTopicMapStoreImpl
Parameters:
association - the association
Returns:
a set containing all role types
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadSubjectIdentifiers

public java.util.Set<de.topicmapslab.majortom.model.core.ILocator> doReadSubjectIdentifiers(de.topicmapslab.majortom.model.core.ITopic t)
                                                                                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all subject-identifiers of the given topic.

Specified by:
doReadSubjectIdentifiers in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadSubjectLocators

public java.util.Set<de.topicmapslab.majortom.model.core.ILocator> doReadSubjectLocators(de.topicmapslab.majortom.model.core.ITopic t)
                                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all subject-locators of the given topic.

Specified by:
doReadSubjectLocators in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadSuptertypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> doReadSuptertypes(de.topicmapslab.majortom.model.core.ITopic t)
                                                                                   throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all super types of the given topic.

Specified by:
doReadSuptertypes in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadTopicBySubjectIdentifier

public de.topicmapslab.majortom.model.core.ITopic doReadTopicBySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopicMap t,
                                                                                 de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
                                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the topic identified by the given subject-identifier.

Specified by:
doReadTopicBySubjectIdentifier in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic map
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadTopicBySubjectLocator

public de.topicmapslab.majortom.model.core.ITopic doReadTopicBySubjectLocator(de.topicmapslab.majortom.model.core.ITopicMap t,
                                                                              de.topicmapslab.majortom.model.core.ILocator subjectLocator)
                                                                       throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the topic identified by the given subject-locator.

Specified by:
doReadTopicBySubjectLocator in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic map
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadTopics

public java.util.Set<de.topicmapslab.majortom.model.core.ITopic> doReadTopics(de.topicmapslab.majortom.model.core.ITopicMap t)
                                                                       throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Return all topics of the topic map.

Specified by:
doReadTopics in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic map
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadTopics

public java.util.Set<de.topicmapslab.majortom.model.core.ITopic> doReadTopics(de.topicmapslab.majortom.model.core.ITopicMap t,
                                                                              de.topicmapslab.majortom.model.core.ITopic type)
                                                                       throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Return all topics of the topic map being typed by the given type.

Specified by:
doReadTopics in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic map
type - the type
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadType

public de.topicmapslab.majortom.model.core.ITopic doReadType(de.topicmapslab.majortom.model.core.ITypeable typed)
                                                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the type of the given typed item.

Specified by:
doReadType in class ReadOnlyTopicMapStoreImpl
Parameters:
typed - the typed
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadChangeSetType

public de.topicmapslab.majortom.model.event.TopicMapEventType doReadChangeSetType(de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the type of the given typed item.

Specified by:
doReadChangeSetType in class ReadOnlyTopicMapStoreImpl
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadTypes

public java.util.Set<de.topicmapslab.majortom.model.core.ITopic> doReadTypes(de.topicmapslab.majortom.model.core.ITopic t)
                                                                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read all types of the given type.

Specified by:
doReadTypes in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadScope

public de.topicmapslab.majortom.model.core.IScope doReadScope(de.topicmapslab.majortom.model.core.IScopable s)
                                                       throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the scope of the given scoped item

Specified by:
doReadScope in class ReadOnlyTopicMapStoreImpl
Parameters:
s - the scoped item
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

internalReadScope

private de.topicmapslab.majortom.model.core.IScope internalReadScope(de.topicmapslab.majortom.model.core.IScopable s)
                                                              throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to read the scope of a construct. The scope will returned without the special variant handling.

Parameters:
s - the scoped construct
Returns:
the scope
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doReadValue

public java.lang.Object doReadValue(de.topicmapslab.majortom.model.core.IName n)
                             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the value of the topic name.

Specified by:
doReadValue in class ReadOnlyTopicMapStoreImpl
Parameters:
n - the name
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadValue

public java.lang.Object doReadValue(de.topicmapslab.majortom.model.core.IDatatypeAware t)
                             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the value of the data-type-aware.

Specified by:
doReadValue in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the data-type-aware
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadValue

public <T> T doReadValue(de.topicmapslab.majortom.model.core.IDatatypeAware t,
                         java.lang.Class<T> type)
              throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the value of the data-type-aware and cast them to the given type

Specified by:
doReadValue in class ReadOnlyTopicMapStoreImpl
Type Parameters:
T - the type of the value
Parameters:
t - the data-type-aware
type - the type of the value
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadVariants

public java.util.Set<de.topicmapslab.majortom.model.core.IVariant> doReadVariants(de.topicmapslab.majortom.model.core.IName n)
                                                                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the variants of the given name.

Specified by:
doReadVariants in class ReadOnlyTopicMapStoreImpl
Parameters:
n - the name
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadVariants

public java.util.Set<de.topicmapslab.majortom.model.core.IVariant> doReadVariants(de.topicmapslab.majortom.model.core.IName n,
                                                                                  de.topicmapslab.majortom.model.core.IScope scope)
                                                                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the variants of the given name in the given scope.

Specified by:
doReadVariants in class ReadOnlyTopicMapStoreImpl
Parameters:
n - the name
scope - the scope
Returns:
the read information
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadMetaData

public java.util.Map<java.lang.String,java.lang.String> doReadMetaData(de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the whole meta data sets of the given revision

Specified by:
doReadMetaData in class ReadOnlyTopicMapStoreImpl
Parameters:
revision - the revision
Returns:
a map containing all key-value-pairs of the revisions meta data
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadMetaData

public java.lang.String doReadMetaData(de.topicmapslab.majortom.model.revision.IRevision revision,
                                       java.lang.String key)
                                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Read the value of the meta set of the given revision identified by the given key.

Specified by:
doReadMetaData in class ReadOnlyTopicMapStoreImpl
Parameters:
revision - the revision
key - the key
Returns:
the value of the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadBestLabel

public java.lang.String doReadBestLabel(de.topicmapslab.majortom.model.core.ITopic topic)
                                 throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Returns the best label for the current topic instance. The best label will be identified satisfying the following rules in the given order.

1. Names of the default name type are weighted higher than names of other types.

2. Names with the unconstrained scope are weighted higher than other scoped names.

3. Names with a smaller number of scoping themes are weighted higher than others.

4. Names with a lexicographically smaller value are weighted higher than others.

5. If no names are existing, the subject-identifier with the lexicographically smallest reference are returned.

6. If no subject-identifiers are existing, the subject-locators with the lexicographically smallest reference are returned.

7. If no subject-locators are existing, the item-identifier with the lexicographically smallest reference are returned.

8. At least the ID of the topic will be returned.

Specified by:
doReadBestLabel in class ReadOnlyTopicMapStoreImpl
Parameters:
topic - the topic
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadBestLabel

public java.lang.String doReadBestLabel(de.topicmapslab.majortom.model.core.ITopic topic,
                                        de.topicmapslab.majortom.model.core.ITopic theme,
                                        boolean strict)
                                 throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Description copied from class: ReadOnlyTopicMapStoreImpl
Returns the best label for the current topic instance. The best label will be identified satisfying the following rules in the given order.

1. Names of the default name type are weighted higher than names of other types.

2. Names with the unconstrained scope are weighted higher than other scoped names.

3. Names with a smaller number of scoping themes are weighted higher than others.

4. Names with a lexicographically smaller value are weighted higher than others.

5. If no names are existing, the subject-identifier with the lexicographically smallest reference are returned.

6. If no subject-identifiers are existing, the subject-locators with the lexicographically smallest reference are returned.

7. If no subject-locators are existing, the item-identifier with the lexicographically smallest reference are returned.

8. At least the ID of the topic will be returned.

Specified by:
doReadBestLabel in class ReadOnlyTopicMapStoreImpl
Parameters:
topic - the topic
theme - the theme
strict - if there is no name with the given theme and strict is true, then null will be returned.
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doReadBestIdentifier

public java.lang.String doReadBestIdentifier(de.topicmapslab.majortom.model.core.ITopic topic,
                                             boolean withPrefix)
Description copied from class: ReadOnlyTopicMapStoreImpl
Returns the best and stable identifier of the topic. The best identifier will be extracted by following rules.

1. Identifiers are weighted by its types in the following order subject-identifier, subject-locator and item-identifier.

2. If there are more than one identifier of the same type, the shortest will be returned.

3. If there are more than one identifier with the same length, the lexicographically smallest will be returned.

Specified by:
doReadBestIdentifier in class ReadOnlyTopicMapStoreImpl
Parameters:
topic - the topic
withPrefix - flag indicates if the returned identifier will be prefixed with its type. Subject-identifier( si:), subject-locator(sl:) or item-identifier(ii:).
Returns:
the best identifier or the id if the topic has no identifiers

generateId

public long generateId()
Description copied from class: TopicMapStoreImpl

Specified by:
generateId in interface de.topicmapslab.majortom.model.store.ITopicMapStore
Overrides:
generateId in class TopicMapStoreImpl

clear

public void clear()
Description copied from class: ModifableTopicMapStoreImpl

Specified by:
clear in interface de.topicmapslab.majortom.model.store.ITopicMapStore
Overrides:
clear in class ModifableTopicMapStoreImpl

getNewRedisId

public java.lang.String getNewRedisId(java.lang.String type)
Genrates a new redis id with the prefix

Parameters:
type - the prefix of type
Returns:
the new string id

getTopicMapBaseLocatorHash

public java.lang.String getTopicMapBaseLocatorHash()
Convert the given topic map locator to a hash which can be used as prefix for topic maps

Returns:
the hash

getRedis

public RedisHandler getRedis()

isCachingEnabled

public boolean isCachingEnabled()
Description copied from class: ReadOnlyTopicMapStoreImpl
Method returns the internal state of caching.

Specified by:
isCachingEnabled in interface de.topicmapslab.majortom.model.store.ITopicMapStore
Overrides:
isCachingEnabled in class ReadOnlyTopicMapStoreImpl
Returns:
true if caching is enabled, false otherwise.

commit

public void commit()
Description copied from class: ReadOnlyTopicMapStoreImpl

Specified by:
commit in interface de.topicmapslab.majortom.model.store.ITopicMapStore
Overrides:
commit in class ReadOnlyTopicMapStoreImpl

removeDuplicates

public void removeDuplicates()
Description copied from class: ModifableTopicMapStoreImpl

Specified by:
removeDuplicates in interface de.topicmapslab.majortom.model.store.ITopicMapStore
Overrides:
removeDuplicates in class ModifableTopicMapStoreImpl