de.topicmapslab.majortom.database.transaction
Class TransactionTopicMapStore

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.database.transaction.TransactionTopicMapStore
All Implemented Interfaces:
de.topicmapslab.majortom.model.store.ITopicMapStore, de.topicmapslab.majortom.model.transaction.ITransactionTopicMapStore

public class TransactionTopicMapStore
extends ModifableTopicMapStoreImpl
implements de.topicmapslab.majortom.model.transaction.ITransactionTopicMapStore


Field Summary
private  AssociationCache associationCache
           
private  boolean blocked
          thread specific attributes
private  CharacteristicsCache characteristicsStore
           
private  java.util.List<TransactionCommand> commands
           
private  java.util.List<TransactionCommand> commited
           
private static java.lang.String ID_PREFIX
           
private  JdbcIdentity identity
          the identity of the topic map itself
private  de.topicmapslab.majortom.model.index.IIdentityIndex identityIndex
           
private  IdentityCache identityStore
           
protected static java.lang.String ITEMIDENTIFIER_PREFIX
           
private  org.tmapi.index.LiteralIndex literalIndex
           
private  java.util.List<java.lang.Runnable> queue
           
private  ReificationCache reificationCache
           
private  org.tmapi.index.ScopedIndex scopedIndex
           
private  ScopeCache scopeStore
           
private  ModifableTopicMapStoreImpl store
           
protected static java.lang.String SUBJECTIDENTIFIER_PREFIX
           
protected static java.lang.String SUBJECTLOCATOR_PREFIX
           
private  de.topicmapslab.majortom.model.index.ISupertypeSubtypeIndex supertypeSubtypeIndex
           
private  TopicTypeCache topicTypeCache
           
private  de.topicmapslab.majortom.model.transaction.ITransaction transaction
           
private  de.topicmapslab.majortom.model.index.ITransitiveTypeInstanceIndex transitiveTypeInstanceIndex
           
private  TypedCache typedStore
           
private  org.tmapi.index.TypeInstanceIndex typeInstanceIndex
          indexes
 
Fields inherited from class de.topicmapslab.majortom.store.TopicMapStoreImpl
OUTPUT
 
Constructor Summary
TransactionTopicMapStore(de.topicmapslab.majortom.model.core.ITopicMapSystem topicMapSystem, ModifableTopicMapStoreImpl store, de.topicmapslab.majortom.model.transaction.ITransaction transaction)
          constructor
 
Method Summary
protected  void addTaskToThreadPool(java.lang.Runnable task)
          Adding the given task to the internal thread pool of the topic map store.
 void clear()
          
 void close()
          
 void commit()
          
 void connect()
          
(package private)  de.topicmapslab.majortom.model.core.IAssociation createAssociation(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
          Internal creation method for associations.
(package private)  de.topicmapslab.majortom.model.core.IAssociation createAssociation(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ITopic type, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to create an association
protected  AssociationCache createAssociationStore(TransactionTopicMapStore store)
          Creates the internal association store reference.
protected  CharacteristicsCache createCharacteristicsStore(TransactionTopicMapStore store, de.topicmapslab.majortom.model.core.ILocator xsdString)
          Creates the internal characteristic store reference.
private  de.topicmapslab.majortom.model.core.ITopic createDefaultNameType(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.revision.IRevision revision)
          Create the default name type if not exists.
protected  IdentityCache createIdentityStore(TransactionTopicMapStore store)
          Creates the internal identity store reference.
(package private)  de.topicmapslab.majortom.model.core.IName createName(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, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal modification method to create a new name item to a topic item.
(package 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, de.topicmapslab.majortom.model.core.ILocator datatype, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal modification method to create a new occurrence for the given topic item.
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, de.topicmapslab.majortom.model.core.ILocator datatype, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to create an occurrence of the given topic.
protected  ReificationCache createReificationStore(TransactionTopicMapStore store)
          Creates the internal reification store reference.
protected  de.topicmapslab.majortom.model.revision.IRevision createRevision(de.topicmapslab.majortom.model.event.TopicMapEventType type)
          Creating a new revision object.
(package private)  de.topicmapslab.majortom.model.core.IAssociationRole createRole(de.topicmapslab.majortom.model.core.IAssociation association, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.ITopic player, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal creation method for roles.
protected  ScopeCache createScopeStore(TransactionTopicMapStore store)
          Creates the internal scope store reference.
protected  void createSupertypeSubtypeAssociation(de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.ITopic supertype, de.topicmapslab.majortom.model.revision.IRevision revision)
          Create the specific association of the topic maps data model representing a supertype-subtype relation between the given topics.
(package private)  de.topicmapslab.majortom.model.core.ITopic createTopic(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal creation method for a topic
protected  TopicTypeCache createTopicTypeStore(TransactionTopicMapStore store)
          Creates the internal topic-type hierarchy store reference.
 de.topicmapslab.majortom.model.transaction.ITransaction createTransaction()
          
protected  TypedCache createTypedStore(TransactionTopicMapStore store)
          Creates the internal types store reference.
protected  void createTypeInstanceAssociation(de.topicmapslab.majortom.model.core.ITopic instance, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.revision.IRevision revision)
          Create the specific association of the topic maps data model representing a type-instance relation between the given topics.
(package private)  de.topicmapslab.majortom.model.core.IVariant createVariant(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, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to create a variant of the given name
 java.lang.Object doCreate(de.topicmapslab.majortom.model.core.IConstruct context, de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType, java.lang.Object... params)
          
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
 void doModify(de.topicmapslab.majortom.model.core.IConstruct context, de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType, java.lang.Object... params)
          
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 c, 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 c, java.lang.String value)
          Modify the value of the given data-type-aware.
protected  void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware c, 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 t, 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 c)
          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
 de.topicmapslab.majortom.model.core.ILocator doReadLocator(de.topicmapslab.majortom.model.core.ITopicMap t)
          Read the base locator of the given topic map.
 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.Set<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 c)
          Read the value of the data-type-aware.
<T> T
doReadValue(de.topicmapslab.majortom.model.core.IDatatypeAware c, 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.
 void doRemove(de.topicmapslab.majortom.model.core.IConstruct context, boolean cascade)
          
 void doRemove(de.topicmapslab.majortom.model.core.IConstruct context, de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType, java.lang.Object... params)
          
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 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 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.
 void enableCaching(boolean enable)
          Enable the caching mechanism of the database topic map store.
 boolean existsTmdmInstanceRoleType()
          Check if the topic type representing the instance association role type of the topic map data model exists.
 boolean existsTmdmSubtypeRoleType()
          Check if the topic type representing the subtype association role type of the topic map data model exists.
 boolean existsTmdmSupertypeRoleType()
          Check if the topic type representing the supertype association role type of the topic map data model exists.
 boolean existsTmdmSupertypeSubtypeAssociationType()
          Check if the topic type representing the supertype-subtype association type of the topic map data model exists.
 boolean existsTmdmTypeInstanceAssociationType()
          Check if the topic type representing the type-instance association type of the topic map data model exists.
 boolean existsTmdmTypeRoleType()
          Check if the topic type representing the type association role type of the topic map data model exists.
private  java.util.Set<de.topicmapslab.majortom.model.core.IName> filterByDefaultNameType(de.topicmapslab.majortom.model.core.ITopic topic, java.util.Set<de.topicmapslab.majortom.model.core.IName> names)
          Method filter the given names by the default name type
 de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity generateIdentity()
          Generates an identity for a constructs
 AssociationCache getAssociationStore()
          Returns the internal association store reference.
 CharacteristicsCache getCharacteristicsStore()
          Returns the internal characteristic store reference.
 IdentityCache getIdentityStore()
          Returns the internal identity store reference.
<I extends org.tmapi.index.Index>
I
getIndex(java.lang.Class<I> clazz)
          
 ModifableTopicMapStoreImpl getRealStore()
          
 ReificationCache getReificationStore()
          Returns the internal reification store reference.
 ScopeCache getScopeStore()
          Returns the internal scope store reference.
 de.topicmapslab.majortom.model.core.ITopic getTmdmInstanceRoleType()
          Returns the topic type representing the instance association role type of the topic map data model.
 de.topicmapslab.majortom.model.core.ITopic getTmdmSubtypeRoleType()
          Returns the topic type representing the subtype association role type of the topic map data model.
 de.topicmapslab.majortom.model.core.ITopic getTmdmSupertypeRoleType()
          Returns the topic type representing the supertype association role type of the topic map data model.
 de.topicmapslab.majortom.model.core.ITopic getTmdmSupertypeSubtypeAssociationType()
          Returns the topic type representing the supertype-subtype association type of the topic map data model.
 de.topicmapslab.majortom.model.core.ITopic getTmdmTypeInstanceAssociationType()
          Returns the topic type representing the type-instance association type of the topic map data model.
 de.topicmapslab.majortom.model.core.ITopic getTmdmTypeRoleType()
          Returns the topic type representing the type association role type of the topic map data model.
 JdbcIdentity getTopicMapIdentity()
          
 TopicTypeCache getTopicTypeStore()
          Returns the internal topic-type hierarchy store reference.
 de.topicmapslab.majortom.model.transaction.ITransaction getTransaction()
          
 TypedCache getTypedStore()
          Returns the internal types store reference.
 void initialize(org.tmapi.core.Locator topicMapBaseLocator)
          
 boolean isCachingEnabled()
          Method returns the internal state of caching.
protected  boolean isTopicInUse(de.topicmapslab.majortom.model.core.ITopic topic)
          Method checks if the topic is used by any topic map relation.
 boolean isTransactable()
          
(package private)  void mergeTopics(de.topicmapslab.majortom.model.core.ITopic context, de.topicmapslab.majortom.model.core.ITopic other, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal modification method to merge two topics
(package private)  void modifyItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c, de.topicmapslab.majortom.model.core.ILocator itemIdentifier, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal modification method to add a item-identifier
(package private)  void modifyPlayer(de.topicmapslab.majortom.model.core.IAssociationRole role, de.topicmapslab.majortom.model.core.ITopic player, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to modify the player of an association role
(package private)  void modifyReifier(de.topicmapslab.majortom.model.core.IReifiable r, de.topicmapslab.majortom.model.core.ITopic reifier, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal modification method to change the reification of the given construct.
(package private)  void modifySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectIdentifier, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal modification method to add a new subject-identifier
(package private)  void modifySubjectLocator(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectLocator, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal modification method to add a new subject-locator.
(package private)  void modifySupertype(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal modification method to add a new super type to a topic type
(package private)  void modifyType(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal modification method to add a new type to a topic item.
(package private)  void modifyType(de.topicmapslab.majortom.model.core.ITypeable t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to modify type
(package private)  void modifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware c, java.lang.Object value, de.topicmapslab.majortom.model.core.ILocator datatype, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal modification method to modify the value and the data type of a IDatatypeAware.
(package private)  void modifyValue(de.topicmapslab.majortom.model.core.IName n, java.lang.String value, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal modification method to modify the value of a name
private  java.lang.String readBestName(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic theme, java.util.Set<de.topicmapslab.majortom.model.core.IName> names, boolean strict)
          Internal best label method only check name attributes.
private  java.lang.String readBestName(de.topicmapslab.majortom.model.core.ITopic topic, java.util.Set<de.topicmapslab.majortom.model.core.IName> names)
          Internal best label method only check name attributes.
(package private)  void removeAssocaition(de.topicmapslab.majortom.model.core.IAssociation association, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to remove an association
(package private)  void removeConstruct(de.topicmapslab.majortom.model.core.IConstruct construct, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to remove a construct
 void removeDuplicates()
          
(package private)  void removeItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c, de.topicmapslab.majortom.model.core.ILocator itemIdentifier, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to remove an item identifier
(package private)  void removeName(de.topicmapslab.majortom.model.core.IName name, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to remove a topic name
(package private)  void removeOccurrence(de.topicmapslab.majortom.model.core.IOccurrence occurrence, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to remove a occurrence
(package private)  void removeRole(de.topicmapslab.majortom.model.core.IAssociationRole role, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to remove an association role
(package private)  void removeSubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectIdentifier, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to remove an subject identifier
(package private)  void removeSubjectLocator(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectLocator, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to remove an subject locator
protected  void removeSupertypeSubtypeAssociation(de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.ITopic supertype, de.topicmapslab.majortom.model.revision.IRevision revision)
          Removes the corresponding association of the supertype-subtype relation between the given topics.
(package private)  void removeTopic(de.topicmapslab.majortom.model.core.ITopic topic, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to return a topic.
private  void removeTopic(de.topicmapslab.majortom.model.core.ITopic topic, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision, java.util.Set<java.lang.String> topicIds)
          Internal method to return a topic.
protected  void removeTypeInstanceAssociation(de.topicmapslab.majortom.model.core.ITopic instance, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.revision.IRevision revision)
          Removes the corresponding association of the type-instance relation between the given topics.
(package private)  void removeVariant(de.topicmapslab.majortom.model.core.IVariant variant, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Internal method to remove a variant
 void rollback()
          
 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, doMerge, existsTmdmDefaultNameType, getTmdmDefaultNameType, isTopicUsedAsPlayer, isTopicUsedAsReifier, isTopicUsedAsSupertype, isTopicUsedAsTheme, isTopicUsedAsType, storeRevision
 
Methods inherited from class de.topicmapslab.majortom.store.ReadOnlyTopicMapStoreImpl
clearCache, doRead, getCache, internalDoRead
 
Methods inherited from class de.topicmapslab.majortom.store.TopicMapStoreImpl
addTopicMapListener, createConstructFactory, createMetaDataInstance, doAutomaticMerging, doMergingByTopicName, enableRevisionManagement, generateId, generateStringId, getConstructFactory, getListeners, getMetaData, getThreadPool, getTopicMap, getTopicMapBaseLocator, getTopicMapBaseLocatorReference, getTopicMapSystem, isConnected, isReadOnly, isReificationDeletionRestricted, isRevisionManagementEnabled, isRevisionManagementSupported, notifyListeners, recognizingSupertypeSubtypeAssociation, recognizingTypeInstanceAssociation, removeTopicMapListener, setTopicMap, setTopicMapSystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.topicmapslab.majortom.model.store.ITopicMapStore
addTopicMapListener, doMerge, doRead, enableRevisionManagement, generateId, getConstructFactory, getMetaData, getTopicMap, getTopicMapBaseLocator, getTopicMapBaseLocatorReference, isConnected, isReadOnly, isRevisionManagementEnabled, isRevisionManagementSupported, removeTopicMapListener, setTopicMapSystem
 

Field Detail

SUBJECTIDENTIFIER_PREFIX

protected static final java.lang.String SUBJECTIDENTIFIER_PREFIX
See Also:
Constant Field Values

SUBJECTLOCATOR_PREFIX

protected static final java.lang.String SUBJECTLOCATOR_PREFIX
See Also:
Constant Field Values

ITEMIDENTIFIER_PREFIX

protected static final java.lang.String ITEMIDENTIFIER_PREFIX
See Also:
Constant Field Values

ID_PREFIX

private static final java.lang.String ID_PREFIX
See Also:
Constant Field Values

commands

private java.util.List<TransactionCommand> commands

commited

private java.util.List<TransactionCommand> commited

store

private final ModifableTopicMapStoreImpl store

transaction

private final de.topicmapslab.majortom.model.transaction.ITransaction transaction

identityStore

private IdentityCache identityStore

characteristicsStore

private CharacteristicsCache characteristicsStore

typedStore

private TypedCache typedStore

scopeStore

private ScopeCache scopeStore

topicTypeCache

private TopicTypeCache topicTypeCache

reificationCache

private ReificationCache reificationCache

associationCache

private AssociationCache associationCache

identity

private JdbcIdentity identity
the identity of the topic map itself


typeInstanceIndex

private org.tmapi.index.TypeInstanceIndex typeInstanceIndex
indexes


transitiveTypeInstanceIndex

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

scopedIndex

private org.tmapi.index.ScopedIndex scopedIndex

literalIndex

private org.tmapi.index.LiteralIndex literalIndex

identityIndex

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

supertypeSubtypeIndex

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

blocked

private boolean blocked
thread specific attributes


queue

private java.util.List<java.lang.Runnable> queue
Constructor Detail

TransactionTopicMapStore

public TransactionTopicMapStore(de.topicmapslab.majortom.model.core.ITopicMapSystem topicMapSystem,
                                ModifableTopicMapStoreImpl store,
                                de.topicmapslab.majortom.model.transaction.ITransaction transaction)
constructor

Parameters:
topicMapSystem - the parent topic map system
store - the real topic map store
transaction - the transaction
Method Detail

initialize

public void initialize(org.tmapi.core.Locator topicMapBaseLocator)
                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException

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

doCreateItemIdentifier

protected de.topicmapslab.majortom.model.core.ILocator doCreateItemIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
Creates an internal item-identifier for a construct.

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

createAssociation

de.topicmapslab.majortom.model.core.IAssociation createAssociation(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
                                                             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal creation method for associations.

Parameters:
topicMap - the topic map
Returns:
the association
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)
                                                                        throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

createAssociation

de.topicmapslab.majortom.model.core.IAssociation createAssociation(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                   de.topicmapslab.majortom.model.core.ITopic type,
                                                                   java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes,
                                                                   de.topicmapslab.majortom.model.revision.IRevision revision)
                                                             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to create an association

Parameters:
topicMap - the topic map
type - the type
themes - the themes
revision - the revision
Returns:
the created association
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
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

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
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

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
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
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
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

createName

de.topicmapslab.majortom.model.core.IName createName(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,
                                                     de.topicmapslab.majortom.model.revision.IRevision revision)
                                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal modification method to create a new name item to a topic item.

Parameters:
topic - the topic
type - the name type
value - the value
themes - the themes
revision - the revision
Returns:
the created name
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
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
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
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
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
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
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
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,
                                                                         de.topicmapslab.majortom.model.core.ILocator datatype,
                                                                         de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to create an occurrence of the given topic.

Parameters:
topic - the topic
type - the occurrence type
value - the value
datatype - the datatype
revision - the revision to store history
Returns:
the created occurrence
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

createOccurrence

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,
                                                                 de.topicmapslab.majortom.model.core.ILocator datatype,
                                                                 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes,
                                                                 de.topicmapslab.majortom.model.revision.IRevision revision)
                                                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal modification method to create a new occurrence for the given topic item.

Parameters:
topic - the topic item
type - the type
value - the value
datatype - the datatype
themes - the themes
revision - the revision
Returns:
the created occurrence
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

createRole

de.topicmapslab.majortom.model.core.IAssociationRole createRole(de.topicmapslab.majortom.model.core.IAssociation association,
                                                                de.topicmapslab.majortom.model.core.ITopic type,
                                                                de.topicmapslab.majortom.model.core.ITopic player,
                                                                de.topicmapslab.majortom.model.revision.IRevision revision)
                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal creation method for roles.

Parameters:
association - the association
type - the type
player - the player
revision - the revision
Returns:
the created role
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

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
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

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
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

createTopic

de.topicmapslab.majortom.model.core.ITopic createTopic(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                       de.topicmapslab.majortom.model.revision.IRevision revision)
                                                 throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal creation method for a topic

Parameters:
topicMap - the topic map
revision - the revision
Returns:
the create topic
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doCreateTopicWithoutIdentifier

protected de.topicmapslab.majortom.model.core.ITopic doCreateTopicWithoutIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
                                                                             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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
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
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
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

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
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
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

createVariant

de.topicmapslab.majortom.model.core.IVariant createVariant(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,
                                                           de.topicmapslab.majortom.model.revision.IRevision revision)
                                                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to create a variant of the given name

Parameters:
name - the name
value - the value
datatype - the datatype
themes - the themes
revision - the revision
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
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

doMergeTopicMaps

protected void doMergeTopicMaps(org.tmapi.core.TopicMap context,
                                org.tmapi.core.TopicMap other)
                         throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

mergeTopics

void mergeTopics(de.topicmapslab.majortom.model.core.ITopic context,
                 de.topicmapslab.majortom.model.core.ITopic other,
                 de.topicmapslab.majortom.model.revision.IRevision revision)
           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal modification method to merge two topics

Parameters:
context - the context
other - the topic to merge in the other one
revision - the revision
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
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

modifyItemIdentifier

void modifyItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c,
                          de.topicmapslab.majortom.model.core.ILocator itemIdentifier,
                          de.topicmapslab.majortom.model.revision.IRevision revision)
                    throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal modification method to add a item-identifier

Parameters:
c - the construct
itemIdentifier - the item identifier
revision - the revision to store dependent changes
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

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
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

modifyPlayer

void modifyPlayer(de.topicmapslab.majortom.model.core.IAssociationRole role,
                  de.topicmapslab.majortom.model.core.ITopic player,
                  de.topicmapslab.majortom.model.revision.IRevision revision)
            throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to modify the player of an association role

Parameters:
role - the role
player - the player
revision - the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

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
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

modifyReifier

void modifyReifier(de.topicmapslab.majortom.model.core.IReifiable r,
                   de.topicmapslab.majortom.model.core.ITopic reifier,
                   de.topicmapslab.majortom.model.revision.IRevision revision)
             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal modification method to change the reification of the given construct.

Parameters:
r - the construct
reifier - the reifier
revision - the revision
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
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
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

modifySubjectIdentifier

void modifySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t,
                             de.topicmapslab.majortom.model.core.ILocator subjectIdentifier,
                             de.topicmapslab.majortom.model.revision.IRevision revision)
                       throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal modification method to add a new subject-identifier

Parameters:
t - the topic
subjectIdentifier - the subject-identifier
revision - the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

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
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

modifySubjectLocator

void modifySubjectLocator(de.topicmapslab.majortom.model.core.ITopic t,
                          de.topicmapslab.majortom.model.core.ILocator subjectLocator,
                          de.topicmapslab.majortom.model.revision.IRevision revision)
                    throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal modification method to add a new subject-locator.

Parameters:
t - the topic
subjectLocator - the subject-locator
revision - the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if the operation fails

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
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

modifySupertype

void modifySupertype(de.topicmapslab.majortom.model.core.ITopic t,
                     de.topicmapslab.majortom.model.core.ITopic type,
                     de.topicmapslab.majortom.model.revision.IRevision revision)
               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal modification method to add a new super type to a topic type

Parameters:
t - the topic type
type - the super type
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

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
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
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
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

modifyType

void modifyType(de.topicmapslab.majortom.model.core.ITypeable t,
                de.topicmapslab.majortom.model.core.ITopic type,
                de.topicmapslab.majortom.model.revision.IRevision revision)
          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to modify type

Parameters:
t - the typed item
type - the type
revision - the revision
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
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

modifyType

void modifyType(de.topicmapslab.majortom.model.core.ITopic t,
                de.topicmapslab.majortom.model.core.ITopic type,
                de.topicmapslab.majortom.model.revision.IRevision revision)
          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal modification method to add a new type to a topic item.

Parameters:
t - the topic item
type - the new type
revision - the revision
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
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

modifyValue

void modifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware c,
                 java.lang.Object value,
                 de.topicmapslab.majortom.model.core.ILocator datatype,
                 de.topicmapslab.majortom.model.revision.IRevision revision)
           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal modification method to modify the value and the data type of a IDatatypeAware.

Parameters:
c - the IDatatypeAware
value - the value
datatype - the data type
revision - the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doModifyValue

protected void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware c,
                             java.lang.String value)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Modify the value of the given data-type-aware.

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

doModifyValue

protected void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware c,
                             java.lang.String value,
                             de.topicmapslab.majortom.model.core.ILocator datatype)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Modify the value and the data type of the given data-type-aware.

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

doModifyValue

protected void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware c,
                             java.lang.Object value)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Modify the value and the data type of the given data-type-aware.

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

modifyValue

void modifyValue(de.topicmapslab.majortom.model.core.IName n,
                 java.lang.String value,
                 de.topicmapslab.majortom.model.revision.IRevision revision)
           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal modification method to modify the value of a name

Parameters:
n - the name
value - the value
revision - the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doModifyValue

protected void doModifyValue(de.topicmapslab.majortom.model.core.IName n,
                             java.lang.String value)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

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
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

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
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
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
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
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
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
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
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
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

doReadChangeSet

public de.topicmapslab.majortom.model.revision.Changeset doReadChangeSet(de.topicmapslab.majortom.model.revision.IRevision r)
                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

doReadChangeSetType

public de.topicmapslab.majortom.model.event.TopicMapEventType doReadChangeSetType(de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

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
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
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
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
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 t,
                                                                      java.lang.String id)
                                                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Read the construct identified by the given id.

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

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
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 c)
                                                            throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Read the data type of the given data-type-aware

Specified by:
doReadDataType in class ReadOnlyTopicMapStoreImpl
Parameters:
c - 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
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
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

doReadLocator

public de.topicmapslab.majortom.model.core.ILocator doReadLocator(de.topicmapslab.majortom.model.core.ITopicMap t)
                                                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Read the base locator of the given topic map.

Overrides:
doReadLocator in class ReadOnlyTopicMapStoreImpl
Parameters:
t - the topic map
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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

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
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

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
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
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
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
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
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

doReadScope

public de.topicmapslab.majortom.model.core.IScope doReadScope(de.topicmapslab.majortom.model.core.IScopable s)
                                                       throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

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
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
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.Set<de.topicmapslab.majortom.model.core.ITopic> doReadSuptertypes(de.topicmapslab.majortom.model.core.ITopic t)
                                                                            throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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
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
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
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
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
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

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
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

doReadValue

public java.lang.Object doReadValue(de.topicmapslab.majortom.model.core.IDatatypeAware c)
                             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Read the value of the data-type-aware.

Specified by:
doReadValue in class ReadOnlyTopicMapStoreImpl
Parameters:
c - 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 c,
                         java.lang.Class<T> type)
              throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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:
c - 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

doReadValue

public java.lang.Object doReadValue(de.topicmapslab.majortom.model.core.IName n)
                             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

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
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
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
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
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

doReadBestIdentifier

public java.lang.String doReadBestIdentifier(de.topicmapslab.majortom.model.core.ITopic topic,
                                             boolean withPrefix)
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

doReadBestLabel

public java.lang.String doReadBestLabel(de.topicmapslab.majortom.model.core.ITopic topic)
                                 throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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
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

filterByDefaultNameType

private java.util.Set<de.topicmapslab.majortom.model.core.IName> filterByDefaultNameType(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                                         java.util.Set<de.topicmapslab.majortom.model.core.IName> names)
Method filter the given names by the default name type

Parameters:
topic - the topic as parent of the names
names - the names
Returns:
the filtered names

readBestName

private java.lang.String readBestName(de.topicmapslab.majortom.model.core.ITopic topic,
                                      de.topicmapslab.majortom.model.core.ITopic theme,
                                      java.util.Set<de.topicmapslab.majortom.model.core.IName> names,
                                      boolean strict)
                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal best label method only check name attributes.

Parameters:
topic - the topic
theme - the theme
set - the non-empty set of names
strict - if there is no name with the given theme and strict is true, then null will be returned.
Returns:
the best name
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

readBestName

private java.lang.String readBestName(de.topicmapslab.majortom.model.core.ITopic topic,
                                      java.util.Set<de.topicmapslab.majortom.model.core.IName> names)
                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal best label method only check name attributes.

Parameters:
topic - the topic
set - the non-empty set of names
Returns:
the best name
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

removeAssocaition

void removeAssocaition(de.topicmapslab.majortom.model.core.IAssociation association,
                       boolean cascade,
                       de.topicmapslab.majortom.model.revision.IRevision revision)
                 throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to remove an association

Parameters:
association - the association
cascade - cascading flag
revision - the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doRemoveAssociation

protected void doRemoveAssociation(de.topicmapslab.majortom.model.core.IAssociation association,
                                   boolean cascade)
                            throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

removeConstruct

void removeConstruct(de.topicmapslab.majortom.model.core.IConstruct construct,
                     boolean cascade,
                     de.topicmapslab.majortom.model.revision.IRevision revision)
               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to remove a construct

Parameters:
construct - the construct
cascade - cascading flag
revision - the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

removeName

void removeName(de.topicmapslab.majortom.model.core.IName name,
                boolean cascade,
                de.topicmapslab.majortom.model.revision.IRevision revision)
          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to remove a topic name

Parameters:
name - the name
cascade - cascading flag
revision - the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doRemoveName

protected void doRemoveName(de.topicmapslab.majortom.model.core.IName name,
                            boolean cascade)
                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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(de.topicmapslab.majortom.model.core.IOccurrence occurrence,
                      boolean cascade,
                      de.topicmapslab.majortom.model.revision.IRevision revision)
                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to remove a occurrence

Parameters:
occurrence - the occurrence
cascade - cascading flag
revision - the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doRemoveOccurrence

protected void doRemoveOccurrence(de.topicmapslab.majortom.model.core.IOccurrence occurrence,
                                  boolean cascade)
                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

removeRole

void removeRole(de.topicmapslab.majortom.model.core.IAssociationRole role,
                boolean cascade,
                de.topicmapslab.majortom.model.revision.IRevision revision)
          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to remove an association role

Parameters:
role - the role
cascade - the cascading flag
revision - the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doRemoveRole

protected void doRemoveRole(de.topicmapslab.majortom.model.core.IAssociationRole role,
                            boolean cascade)
                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

removeVariant

void removeVariant(de.topicmapslab.majortom.model.core.IVariant variant,
                   boolean cascade,
                   de.topicmapslab.majortom.model.revision.IRevision revision)
             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to remove a variant

Parameters:
variant - the variant
cascade - cascading flag
revision - the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doRemoveVariant

protected void doRemoveVariant(de.topicmapslab.majortom.model.core.IVariant variant,
                               boolean cascade)
                        throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

removeTopic

void removeTopic(de.topicmapslab.majortom.model.core.ITopic topic,
                 boolean cascade,
                 de.topicmapslab.majortom.model.revision.IRevision revision)
           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to return a topic.

Parameters:
topic - the topic
cascade - the cascading flag
revision - the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

removeTopic

private void removeTopic(de.topicmapslab.majortom.model.core.ITopic topic,
                         boolean cascade,
                         de.topicmapslab.majortom.model.revision.IRevision revision,
                         java.util.Set<java.lang.String> topicIds)
                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to return a topic.

Parameters:
topic - the topic
cascade - the cascading flag
revision - the revision
topicIds - a set containing all topic id to avoid cycle deletion
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doRemoveTopic

protected void doRemoveTopic(de.topicmapslab.majortom.model.core.ITopic topic,
                             boolean cascade)
                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

isTopicInUse

protected boolean isTopicInUse(de.topicmapslab.majortom.model.core.ITopic topic)
Method checks if the topic is used by any topic map relation.

Overrides:
isTopicInUse in class ModifableTopicMapStoreImpl
Parameters:
topic - the topic to check
Returns:
true if the topic is used as type, reifier etc. , false otherwise.

doRemoveTopicMap

protected void doRemoveTopicMap(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                boolean cascade)
                         throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

removeItemIdentifier

void removeItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c,
                          de.topicmapslab.majortom.model.core.ILocator itemIdentifier,
                          de.topicmapslab.majortom.model.revision.IRevision revision)
                    throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to remove an item identifier

Parameters:
c - the construct
itemIdentifier - the item identifier
revision - the revision
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
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

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
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

removeSubjectIdentifier

void removeSubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t,
                             de.topicmapslab.majortom.model.core.ILocator subjectIdentifier,
                             de.topicmapslab.majortom.model.revision.IRevision revision)
                       throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to remove an subject identifier

Parameters:
t - the topic
subjectIdentifier - the subject identifier
revision - the revision
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
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

removeSubjectLocator

void removeSubjectLocator(de.topicmapslab.majortom.model.core.ITopic t,
                          de.topicmapslab.majortom.model.core.ILocator subjectLocator,
                          de.topicmapslab.majortom.model.revision.IRevision revision)
                    throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Internal method to remove an subject locator

Parameters:
t - the topic
subjectLocator - the subject locator
revision - the revision
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

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
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

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
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
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

close

public void close()
           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException

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

connect

public void connect()
             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException

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

getIndex

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

Specified by:
getIndex in interface de.topicmapslab.majortom.model.store.ITopicMapStore

createDefaultNameType

private de.topicmapslab.majortom.model.core.ITopic createDefaultNameType(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                         de.topicmapslab.majortom.model.revision.IRevision revision)
Create the default name type if not exists.

Parameters:
topicMap - the topic map
revision - the revision the revision to handle created type
Returns:
the default name type

createTypeInstanceAssociation

protected void createTypeInstanceAssociation(de.topicmapslab.majortom.model.core.ITopic instance,
                                             de.topicmapslab.majortom.model.core.ITopic type,
                                             de.topicmapslab.majortom.model.revision.IRevision revision)
Create the specific association of the topic maps data model representing a type-instance relation between the given topics.

Overrides:
createTypeInstanceAssociation in class ModifableTopicMapStoreImpl
Parameters:
instance - the instance
type - the type

createSupertypeSubtypeAssociation

protected void createSupertypeSubtypeAssociation(de.topicmapslab.majortom.model.core.ITopic type,
                                                 de.topicmapslab.majortom.model.core.ITopic supertype,
                                                 de.topicmapslab.majortom.model.revision.IRevision revision)
Create the specific association of the topic maps data model representing a supertype-subtype relation between the given topics.

Overrides:
createSupertypeSubtypeAssociation in class ModifableTopicMapStoreImpl
Parameters:
type - the type
supertype - the supertype

removeSupertypeSubtypeAssociation

protected void removeSupertypeSubtypeAssociation(de.topicmapslab.majortom.model.core.ITopic type,
                                                 de.topicmapslab.majortom.model.core.ITopic supertype,
                                                 de.topicmapslab.majortom.model.revision.IRevision revision)
                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Removes the corresponding association of the supertype-subtype relation between the given topics.

Overrides:
removeSupertypeSubtypeAssociation in class ModifableTopicMapStoreImpl
Parameters:
type - the type
supertype - the supertype
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

removeTypeInstanceAssociation

protected void removeTypeInstanceAssociation(de.topicmapslab.majortom.model.core.ITopic instance,
                                             de.topicmapslab.majortom.model.core.ITopic type,
                                             de.topicmapslab.majortom.model.revision.IRevision revision)
                                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Removes the corresponding association of the type-instance relation between the given topics.

Overrides:
removeTypeInstanceAssociation in class ModifableTopicMapStoreImpl
Parameters:
instance - the instance
type - the type
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

getTmdmTypeInstanceAssociationType

public de.topicmapslab.majortom.model.core.ITopic getTmdmTypeInstanceAssociationType()
                                                                              throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Returns the topic type representing the type-instance association type of the topic map data model.

Overrides:
getTmdmTypeInstanceAssociationType in class ModifableTopicMapStoreImpl
Returns:
the topic type
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

getTmdmTypeRoleType

public de.topicmapslab.majortom.model.core.ITopic getTmdmTypeRoleType()
                                                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Returns the topic type representing the type association role type of the topic map data model.

Overrides:
getTmdmTypeRoleType in class ModifableTopicMapStoreImpl
Returns:
the topic type
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

getTmdmInstanceRoleType

public de.topicmapslab.majortom.model.core.ITopic getTmdmInstanceRoleType()
                                                                   throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Returns the topic type representing the instance association role type of the topic map data model.

Overrides:
getTmdmInstanceRoleType in class ModifableTopicMapStoreImpl
Returns:
the topic type
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

getTmdmSupertypeSubtypeAssociationType

public de.topicmapslab.majortom.model.core.ITopic getTmdmSupertypeSubtypeAssociationType()
                                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Returns the topic type representing the supertype-subtype association type of the topic map data model.

Overrides:
getTmdmSupertypeSubtypeAssociationType in class ModifableTopicMapStoreImpl
Returns:
the topic type
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

getTmdmSupertypeRoleType

public de.topicmapslab.majortom.model.core.ITopic getTmdmSupertypeRoleType()
                                                                    throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Returns the topic type representing the supertype association role type of the topic map data model.

Overrides:
getTmdmSupertypeRoleType in class ModifableTopicMapStoreImpl
Returns:
the topic type
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

getTmdmSubtypeRoleType

public de.topicmapslab.majortom.model.core.ITopic getTmdmSubtypeRoleType()
                                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Returns the topic type representing the subtype association role type of the topic map data model.

Overrides:
getTmdmSubtypeRoleType in class ModifableTopicMapStoreImpl
Returns:
the topic type
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

existsTmdmTypeInstanceAssociationType

public boolean existsTmdmTypeInstanceAssociationType()
                                              throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Check if the topic type representing the type-instance association type of the topic map data model exists.

Overrides:
existsTmdmTypeInstanceAssociationType in class ModifableTopicMapStoreImpl
Returns:
true if this topic type exists, false otherwise
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

existsTmdmTypeRoleType

public boolean existsTmdmTypeRoleType()
                               throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Check if the topic type representing the type association role type of the topic map data model exists.

Overrides:
existsTmdmTypeRoleType in class ModifableTopicMapStoreImpl
Returns:
true if this topic type exists, false otherwise
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

existsTmdmInstanceRoleType

public boolean existsTmdmInstanceRoleType()
                                   throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Check if the topic type representing the instance association role type of the topic map data model exists.

Overrides:
existsTmdmInstanceRoleType in class ModifableTopicMapStoreImpl
Returns:
true if this topic type exists, false otherwise
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

existsTmdmSupertypeSubtypeAssociationType

public boolean existsTmdmSupertypeSubtypeAssociationType()
                                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Check if the topic type representing the supertype-subtype association type of the topic map data model exists.

Overrides:
existsTmdmSupertypeSubtypeAssociationType in class ModifableTopicMapStoreImpl
Returns:
true if this topic type exists, false otherwise
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

existsTmdmSupertypeRoleType

public boolean existsTmdmSupertypeRoleType()
                                    throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Check if the topic type representing the supertype association role type of the topic map data model exists.

Overrides:
existsTmdmSupertypeRoleType in class ModifableTopicMapStoreImpl
Returns:
true if this topic type exists, false otherwise
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

existsTmdmSubtypeRoleType

public boolean existsTmdmSubtypeRoleType()
                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Check if the topic type representing the subtype association role type of the topic map data model exists.

Overrides:
existsTmdmSubtypeRoleType in class ModifableTopicMapStoreImpl
Returns:
true if this topic type exists, false otherwise
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

createCharacteristicsStore

protected CharacteristicsCache createCharacteristicsStore(TransactionTopicMapStore store,
                                                          de.topicmapslab.majortom.model.core.ILocator xsdString)
Creates the internal characteristic store reference.

Parameters:
store - the calling store instance
xsdString - the locator of datatype xsd:string
Returns:
the characteristicsStore

createScopeStore

protected ScopeCache createScopeStore(TransactionTopicMapStore store)
Creates the internal scope store reference.

Parameters:
store - the calling store instance
Returns:
the scopeStore

createAssociationStore

protected AssociationCache createAssociationStore(TransactionTopicMapStore store)
Creates the internal association store reference.

Parameters:
store - the calling store instance
Returns:
the associationStore

createIdentityStore

protected IdentityCache createIdentityStore(TransactionTopicMapStore store)
Creates the internal identity store reference.

Parameters:
store - the calling store instance
Returns:
the identityStore

createReificationStore

protected ReificationCache createReificationStore(TransactionTopicMapStore store)
Creates the internal reification store reference.

Parameters:
store - the calling store instance
Returns:
the reificationStore

createTopicTypeStore

protected TopicTypeCache createTopicTypeStore(TransactionTopicMapStore store)
Creates the internal topic-type hierarchy store reference.

Parameters:
store - the calling store instance
Returns:
the topicTypeStore

createTypedStore

protected TypedCache createTypedStore(TransactionTopicMapStore store)
Creates the internal types store reference.

Parameters:
store - the calling store instance
Returns:
the typedStore

getCharacteristicsStore

public CharacteristicsCache getCharacteristicsStore()
Returns the internal characteristic store reference.

Returns:
the characteristicsStore

getScopeStore

public ScopeCache getScopeStore()
Returns the internal scope store reference.

Returns:
the scopeStore

getAssociationStore

public AssociationCache getAssociationStore()
Returns the internal association store reference.

Returns:
the associationStore

getIdentityStore

public IdentityCache getIdentityStore()
Returns the internal identity store reference.

Returns:
the identityStore

getReificationStore

public ReificationCache getReificationStore()
Returns the internal reification store reference.

Returns:
the reificationStore

getTopicTypeStore

public TopicTypeCache getTopicTypeStore()
Returns the internal topic-type hierarchy store reference.

Returns:
the topicTypeStore

getTypedStore

public TypedCache getTypedStore()
Returns the internal types store reference.

Returns:
the typedStore

createTransaction

public de.topicmapslab.majortom.model.transaction.ITransaction createTransaction()

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

isTransactable

public boolean isTransactable()

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

storeRevision

public final 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. 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)
Creating a new revision object.

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

addTaskToThreadPool

protected void addTaskToThreadPool(java.lang.Runnable task)
Adding the given task to the internal thread pool of the topic map store.

Overrides:
addTaskToThreadPool in class TopicMapStoreImpl
Parameters:
task - the task to add

removeDuplicates

public void removeDuplicates()

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

clear

public void clear()

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

getTransaction

public de.topicmapslab.majortom.model.transaction.ITransaction getTransaction()

Specified by:
getTransaction in interface de.topicmapslab.majortom.model.transaction.ITransactionTopicMapStore

commit

public void commit()
            throws de.topicmapslab.majortom.model.exception.TransactionException

Specified by:
commit in interface de.topicmapslab.majortom.model.store.ITopicMapStore
Specified by:
commit in interface de.topicmapslab.majortom.model.transaction.ITransactionTopicMapStore
Overrides:
commit in class ReadOnlyTopicMapStoreImpl
Throws:
de.topicmapslab.majortom.model.exception.TransactionException

getRealStore

public ModifableTopicMapStoreImpl getRealStore()

Specified by:
getRealStore in interface de.topicmapslab.majortom.model.transaction.ITransactionTopicMapStore

rollback

public void rollback()

Specified by:
rollback in interface de.topicmapslab.majortom.model.transaction.ITransactionTopicMapStore

doModify

public void doModify(de.topicmapslab.majortom.model.core.IConstruct context,
                     de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType,
                     java.lang.Object... params)
              throws de.topicmapslab.majortom.model.exception.TopicMapStoreException

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

doRemove

public void doRemove(de.topicmapslab.majortom.model.core.IConstruct context,
                     de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType,
                     java.lang.Object... params)
              throws de.topicmapslab.majortom.model.exception.TopicMapStoreException

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

doRemove

public void doRemove(de.topicmapslab.majortom.model.core.IConstruct context,
                     boolean cascade)
              throws de.topicmapslab.majortom.model.exception.TopicMapStoreException

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

doCreate

public java.lang.Object doCreate(de.topicmapslab.majortom.model.core.IConstruct context,
                                 de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType,
                                 java.lang.Object... params)
                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException

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

generateIdentity

public de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity generateIdentity()
Generates an identity for a constructs

Returns:
the generate id

isCachingEnabled

public boolean isCachingEnabled()
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.

enableCaching

public void enableCaching(boolean enable)
Enable the caching mechanism of the database topic map store. If the caching is enabled, the cache stores any read access and deliver the values from cache instead calling the database. The cache will be updated automatically. If the cache is disabled, it will be destroyed. Any cached values are lost.

Specified by:
enableCaching in interface de.topicmapslab.majortom.model.store.ITopicMapStore
Overrides:
enableCaching in class ReadOnlyTopicMapStoreImpl
Parameters:
enable - true to enable the cache, false to disable it

getTopicMapIdentity

public JdbcIdentity getTopicMapIdentity()

Specified by:
getTopicMapIdentity in interface de.topicmapslab.majortom.model.store.ITopicMapStore