de.topicmapslab.majortom.database.store
Class JdbcTopicMapStore

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.store.JdbcTopicMapStore
All Implemented Interfaces:
de.topicmapslab.majortom.model.store.ITopicMapStore

public class JdbcTopicMapStore
extends ModifableTopicMapStoreImpl

MaJorToM database topic map store

Author:
Sven Krosse

Field Summary
private  java.lang.String dialect
           
private  JdbcIdentity identity
          the topic map identity
private  de.topicmapslab.majortom.model.index.IIdentityIndex identityIndex
           
private  de.topicmapslab.majortom.model.index.ILiteralIndex literalIndex
           
private static java.lang.String MESSAGE_SESSION_CANNOT_BE_CLOSED
           
private  de.topicmapslab.majortom.model.index.paging.IPagedConstructIndex pagedConstructIndex
           
private  de.topicmapslab.majortom.model.index.paging.IPagedIdentityIndex pagedIdentityIndex
           
private  de.topicmapslab.majortom.model.index.paging.IPagedLiteralIndex pagedLiteralIndex
           
private  de.topicmapslab.majortom.model.index.paging.IPagedScopedIndex pagedScopedIndex
           
private  de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex pagedSupertypeSubtypeIndex
           
private  de.topicmapslab.majortom.model.index.paging.IPagedTransitiveTypeInstanceIndex pagedTransitiveTypeInstanceIndex
           
private  de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex pagedTypeInstanceIndex
           
private  IConnectionProvider provider
          the connection provider
private  de.topicmapslab.majortom.model.index.IRevisionIndex revisionIndex
           
private  de.topicmapslab.majortom.model.index.IScopedIndex scopedIndex
           
private  de.topicmapslab.majortom.model.index.ISupertypeSubtypeIndex supertSubtypeIndex
           
private  de.topicmapslab.majortom.model.index.ITransitiveTypeInstanceIndex transitiveTypeInstanceIndex
           
private  de.topicmapslab.majortom.model.index.ITypeInstanceIndex typeInstanceIndex
           
 
Fields inherited from class de.topicmapslab.majortom.store.TopicMapStoreImpl
OUTPUT
 
Constructor Summary
JdbcTopicMapStore()
          constructor
JdbcTopicMapStore(de.topicmapslab.majortom.model.core.ITopicMapSystem topicMapSystem)
           
 
Method Summary
 void clear()
          
 void close()
          
 void commit()
          
 void connect()
          
 de.topicmapslab.majortom.model.revision.IRevision createRevision(de.topicmapslab.majortom.model.event.TopicMapEventType type)
          Creating a new revision object.
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.
 de.topicmapslab.majortom.model.transaction.ITransaction createTransaction()
          
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.
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.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, de.topicmapslab.majortom.model.revision.IRevision revision)
          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, 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)
          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.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, de.topicmapslab.majortom.model.revision.IRevision revision)
          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.
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, de.topicmapslab.majortom.model.revision.IRevision revision)
          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.ITopic doCreateTopicWithoutIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.revision.IRevision revision)
          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  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, de.topicmapslab.majortom.model.revision.IRevision revision)
          Create a new variant for the given name.
protected  void doMergeTopicMaps(org.tmapi.core.TopicMap context, org.tmapi.core.TopicMap other)
          Merge a topic map in the given topic map.
protected  void doMergeTopics(de.topicmapslab.majortom.model.core.ITopic context, de.topicmapslab.majortom.model.core.ITopic other)
          Merge a topic in the given topic
protected  void doModifyItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c, de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
          Add a new item-identifier to the given construct
protected  void doModifyItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c, de.topicmapslab.majortom.model.core.ILocator itemIdentifier, de.topicmapslab.majortom.model.revision.IRevision revision)
          Add a new item-identifier to the given construct
 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 doModifyReifier(de.topicmapslab.majortom.model.core.IReifiable r, de.topicmapslab.majortom.model.core.ITopic reifier, de.topicmapslab.majortom.model.revision.IRevision revision)
          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 doModifySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectIdentifier, de.topicmapslab.majortom.model.revision.IRevision revision)
          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 doModifySubjectLocator(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectLocator, de.topicmapslab.majortom.model.revision.IRevision revision)
          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 doModifySupertype(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.revision.IRevision revision)
          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 doModifyTopicType(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.revision.IRevision revision)
          Add a new type to the given topic.
protected  void doModifyType(de.topicmapslab.majortom.model.core.ITypeable t, de.topicmapslab.majortom.model.core.ITopic type)
          Modify the type of the given typed item.
protected  void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t, java.lang.Object value)
          Modify the value and the data type of the given data-type-aware.
protected  void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t, java.lang.String value)
          Modify the value of the given data-type-aware.
protected  void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t, java.lang.String value, de.topicmapslab.majortom.model.core.ILocator datatype)
          Modify the value and the data type of the given data-type-aware.
protected  void doModifyValue(de.topicmapslab.majortom.model.core.IName n, java.lang.String value)
          Modify the value of the given name.
 java.lang.Object doRead(de.topicmapslab.majortom.model.core.IConstruct context, de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType, java.lang.Object... params)
          
 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 r)
          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 d)
          Read the data type of the given data-type-aware
 de.topicmapslab.majortom.model.revision.IRevision doReadFutureRevision(de.topicmapslab.majortom.model.revision.IRevision r)
          Read the previous revision of the revision.
 java.lang.String doReadId(de.topicmapslab.majortom.model.core.IConstruct c)
          Read the id of the given construct
 java.util.Set<de.topicmapslab.majortom.model.core.ILocator> doReadItemIdentifiers(de.topicmapslab.majortom.model.core.IConstruct c)
          Read all item-identifiers of the given construct
 java.util.Map<java.lang.String,java.lang.String> doReadMetaData(de.topicmapslab.majortom.model.revision.IRevision revision)
          Read the whole meta data sets of the given revision
 java.lang.String doReadMetaData(de.topicmapslab.majortom.model.revision.IRevision revision, java.lang.String key)
          Read the value of the meta set of the given revision identified by the given key.
 java.util.Set<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t)
          Read all names if the given topic.
 java.util.Set<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped names of the given topic where the scope matches exactly.
 java.util.Set<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          Read all names if the given topic being typed by the given type.
 java.util.Set<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped names if the given topic being typed by the given type.
 java.util.Set<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t)
          Read all occurrences if the given topic.
 java.util.Set<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped occurrence if the given topic.
 java.util.Set<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          Read all occurrence if the given topic being typed by the given type.
 java.util.Set<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.IScope scope)
          Read all scoped occurrence if the given topic being typed by the given type.
 de.topicmapslab.majortom.model.revision.IRevision doReadPastRevision(de.topicmapslab.majortom.model.revision.IRevision r)
          Read the past revision of the revision.
 de.topicmapslab.majortom.model.core.ITopic doReadPlayer(de.topicmapslab.majortom.model.core.IAssociationRole role)
          Read the player of the given role
 de.topicmapslab.majortom.model.core.ITopic doReadReification(de.topicmapslab.majortom.model.core.IReifiable r)
          Read the reifier of the reified construct
 de.topicmapslab.majortom.model.core.IReifiable doReadReification(de.topicmapslab.majortom.model.core.ITopic t)
          Read the reified item of the given topic.
 java.util.Calendar doReadRevisionTimestamp(de.topicmapslab.majortom.model.revision.IRevision r)
          Read the time-stamp of the revision begin.
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.IAssociation association)
          Read all association role items of the given association
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.IAssociation association, de.topicmapslab.majortom.model.core.ITopic type)
          Read all association role items of the given association and the given type.
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player)
          Read the played roles of the given topic.
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player, de.topicmapslab.majortom.model.core.ITopic type)
          Read the played roles of the given topic and being typed by the given type
 java.util.Set<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.ITopic assocType)
          Read the played roles of the given topic and being typed by the given type
 java.util.Set<de.topicmapslab.majortom.model.core.ITopic> doReadRoleTypes(de.topicmapslab.majortom.model.core.IAssociation association)
          Read all role types of the given association
 de.topicmapslab.majortom.model.core.IScope doReadScope(de.topicmapslab.majortom.model.core.IScopable s)
          Read the scope of the given scoped item
 java.util.Set<de.topicmapslab.majortom.model.core.ILocator> doReadSubjectIdentifiers(de.topicmapslab.majortom.model.core.ITopic t)
          Read all subject-identifiers of the given topic.
 java.util.Set<de.topicmapslab.majortom.model.core.ILocator> doReadSubjectLocators(de.topicmapslab.majortom.model.core.ITopic t)
          Read all subject-locators of the given topic.
 java.util.List<de.topicmapslab.majortom.model.core.ITopic> doReadSuptertypes(de.topicmapslab.majortom.model.core.ITopic t)
          Read all super types of the given topic.
 de.topicmapslab.majortom.model.core.ITopic doReadTopicBySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopicMap t, de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
          Read the topic identified by the given subject-identifier.
 de.topicmapslab.majortom.model.core.ITopic doReadTopicBySubjectLocator(de.topicmapslab.majortom.model.core.ITopicMap t, de.topicmapslab.majortom.model.core.ILocator subjectLocator)
          Read the topic identified by the given subject-locator.
 java.util.Set<de.topicmapslab.majortom.model.core.ITopic> doReadTopics(de.topicmapslab.majortom.model.core.ITopicMap t)
          Return all topics of the topic map.
 java.util.Set<de.topicmapslab.majortom.model.core.ITopic> doReadTopics(de.topicmapslab.majortom.model.core.ITopicMap t, de.topicmapslab.majortom.model.core.ITopic type)
          Return all topics of the topic map being typed by the given type.
 de.topicmapslab.majortom.model.core.ITopic doReadType(de.topicmapslab.majortom.model.core.ITypeable typed)
          Read the type of the given typed item.
 java.util.Set<de.topicmapslab.majortom.model.core.ITopic> doReadTypes(de.topicmapslab.majortom.model.core.ITopic t)
          Read all types of the given type.
 java.lang.Object doReadValue(de.topicmapslab.majortom.model.core.IDatatypeAware t)
          Read the value of the data-type-aware.
<T> T
doReadValue(de.topicmapslab.majortom.model.core.IDatatypeAware t, java.lang.Class<T> type)
          Read the value of the data-type-aware and cast them to the given type
 java.lang.Object doReadValue(de.topicmapslab.majortom.model.core.IName n)
          Read the value of the topic name.
 java.util.Set<de.topicmapslab.majortom.model.core.IVariant> doReadVariants(de.topicmapslab.majortom.model.core.IName n)
          Read the variants of the given name.
 java.util.Set<de.topicmapslab.majortom.model.core.IVariant> doReadVariants(de.topicmapslab.majortom.model.core.IName n, de.topicmapslab.majortom.model.core.IScope scope)
          Read the variants of the given name in the given scope.
protected  void doRemoveAssociation(de.topicmapslab.majortom.model.core.IAssociation association, boolean cascade)
          Remove the association.
protected  void doRemoveAssociation(de.topicmapslab.majortom.model.core.IAssociation association, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          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 doRemoveItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c, de.topicmapslab.majortom.model.core.ILocator itemIdentifier, de.topicmapslab.majortom.model.revision.IRevision revision)
          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 doRemoveName(de.topicmapslab.majortom.model.core.IName name, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Remove the name.
protected  void doRemoveOccurrence(de.topicmapslab.majortom.model.core.IOccurrence occurrence, boolean cascade)
          Remove the occurrence.
protected  void doRemoveOccurrence(de.topicmapslab.majortom.model.core.IOccurrence occurrence, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Remove the occurrence.
protected  void doRemoveRole(de.topicmapslab.majortom.model.core.IAssociationRole role, boolean cascade)
          Remove the association role.
protected  void doRemoveRole(de.topicmapslab.majortom.model.core.IAssociationRole role, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          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.
protected  void doRemoveVariant(de.topicmapslab.majortom.model.core.IVariant variant, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Remove the variant.
 java.lang.String getDialect()
           
<I extends org.tmapi.index.Index>
I
getIndex(java.lang.Class<I> clazz)
          
 java.util.List<de.topicmapslab.majortom.model.core.ITopic> getSuptertypes(de.topicmapslab.majortom.model.core.ITopic t, int offset, int limit)
          
 JdbcIdentity getTopicMapIdentity()
          Returns the internal identity of the topic map
 java.util.Set<de.topicmapslab.majortom.model.core.ITopic> getTypes(de.topicmapslab.majortom.model.core.ITopic t, int offset, int limit)
          
 void initialize(org.tmapi.core.Locator topicMapBaseLocator)
          
protected  boolean isTopicMapEmpty(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
          Returns whether the topic map is empty or not
 boolean isTransactable()
          
 ISession openSession()
          Creates a new session using connection provider
 void removeDuplicates()
          
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.
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.
 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, doCreate, doMerge, doModify, doRemove, doRemove, existsTmdmDefaultNameType, existsTmdmInstanceRoleType, existsTmdmSubtypeRoleType, existsTmdmSupertypeRoleType, existsTmdmSupertypeSubtypeAssociationType, existsTmdmTypeInstanceAssociationType, existsTmdmTypeRoleType, getTmdmDefaultNameType, getTmdmInstanceRoleType, getTmdmSubtypeRoleType, getTmdmSupertypeRoleType, getTmdmSupertypeSubtypeAssociationType, getTmdmTypeInstanceAssociationType, getTmdmTypeRoleType, isTopicInUse, isTopicUsedAsPlayer, isTopicUsedAsReifier, isTopicUsedAsSupertype, isTopicUsedAsTheme, isTopicUsedAsType, storeRevision
 
Methods inherited from class de.topicmapslab.majortom.store.ReadOnlyTopicMapStoreImpl
clearCache, doReadLocator, enableCaching, getCache, internalDoRead, isCachingEnabled
 
Methods inherited from class de.topicmapslab.majortom.store.TopicMapStoreImpl
addTaskToThreadPool, 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
 

Field Detail

MESSAGE_SESSION_CANNOT_BE_CLOSED

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

provider

private IConnectionProvider provider
the connection provider


identity

private JdbcIdentity identity
the topic map identity


typeInstanceIndex

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

transitiveTypeInstanceIndex

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

supertSubtypeIndex

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

scopedIndex

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

literalIndex

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

identityIndex

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

revisionIndex

private de.topicmapslab.majortom.model.index.IRevisionIndex revisionIndex

pagedTypeInstanceIndex

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

pagedIdentityIndex

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

pagedConstructIndex

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

pagedScopedIndex

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

pagedSupertypeSubtypeIndex

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

pagedTransitiveTypeInstanceIndex

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

pagedLiteralIndex

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

dialect

private java.lang.String dialect
Constructor Detail

JdbcTopicMapStore

public JdbcTopicMapStore()
constructor


JdbcTopicMapStore

public JdbcTopicMapStore(de.topicmapslab.majortom.model.core.ITopicMapSystem topicMapSystem)
Parameters:
topicMapSystem -
Method Detail

isTopicMapEmpty

protected boolean isTopicMapEmpty(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
Returns whether the topic map is empty or not

Returns:
true or false

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

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

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,
                                                                               de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                        throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Create a new association item.

Parameters:
topicMap - the topic map
type - the type
themes - the scoping themes
revision - the revision to store to
Returns:
the created construct
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

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

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

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

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,
                                                                 de.topicmapslab.majortom.model.revision.IRevision revision)
                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Create a new name characteristics item.

Parameters:
topic - the parent topic
type - the type
value - the characteristics value
themes - the scoping themes
revision - the revision to store to
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

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,
                                                                             de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                      throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Create a new occurrence characteristics item.

Parameters:
topic - the parent topic
type - the type
value - the characteristics value
datatype - the data type
themes - the scoping themes
revision - the revision to store to
Returns:
the created construct
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

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,
                                                                            de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Create a new association role item.

Parameters:
association - the parent association
type - the type
player - the role player
revision - the revision to store to
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

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

doCreateTopicWithoutIdentifier

protected de.topicmapslab.majortom.model.core.ITopic doCreateTopicWithoutIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                    de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                             throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Create a new topic item without any identifier.

Parameters:
topicMap - the topic map
revision - the revision to store to
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

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

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,
                                                                       de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Create a new variant for the given name.

Parameters:
name - the parent name
value - the value
datatype - the data type
themes - the scoping themes
revision - the revision to store to
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

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

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

doModifyItemIdentifier

protected void doModifyItemIdentifier(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
Add a new item-identifier to the given construct

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

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

doModifyReifier

protected void doModifyReifier(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
Modify the reifier of the given reified item.

Parameters:
r - the reified item
reifier - the reifier
revision - the revision to store to
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

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

doModifySubjectIdentifier

protected void doModifySubjectIdentifier(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
Add a new subject-identifier to the given topic

Parameters:
t - the topic
subjectIdentifier - the subject-identifier
revision - the revision to store to
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if 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

doModifySubjectLocator

protected void doModifySubjectLocator(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
Add a new subject-locator to the given topic

Parameters:
t - the topic
subjectLocator - the subject-locator
revision - the revision to store to
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

doModifySupertype

protected void doModifySupertype(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
Add a new super type to the given topic

Parameters:
t - the topic
type - the super type
revision - the revision to store to
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

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

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

doModifyTopicType

protected void doModifyTopicType(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
Add a new type to the given topic.

Parameters:
t - the topic
type - the type to add
revision - the revision to store to
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doModifyValue

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

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

doModifyValue

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

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

doModifyValue

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

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

doModifyValue

protected void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t,
                             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:
t - data-type-aware
value - the value
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails

doRead

public java.lang.Object doRead(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:
doRead in interface de.topicmapslab.majortom.model.store.ITopicMapStore
Overrides:
doRead in class ReadOnlyTopicMapStoreImpl
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

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

doModifyMetaData

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

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

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

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

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

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

getSuptertypes

public java.util.List<de.topicmapslab.majortom.model.core.ITopic> getSuptertypes(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                 int offset,
                                                                                 int limit)
                                                                          throws de.topicmapslab.majortom.model.exception.TopicMapStoreException

Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

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

getTypes

public java.util.Set<de.topicmapslab.majortom.model.core.ITopic> getTypes(de.topicmapslab.majortom.model.core.ITopic t,
                                                                          int offset,
                                                                          int limit)
                                                                   throws de.topicmapslab.majortom.model.exception.TopicMapStoreException

Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doReadValue

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

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

doReadValue

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

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

doReadValue

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

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

doReadVariants

public java.util.Set<de.topicmapslab.majortom.model.core.IVariant> doReadVariants(de.topicmapslab.majortom.model.core.IName n)
                                                                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

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

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

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

doRemoveAssociation

protected void doRemoveAssociation(de.topicmapslab.majortom.model.core.IAssociation association,
                                   boolean cascade,
                                   de.topicmapslab.majortom.model.revision.IRevision revision)
                            throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Remove the association.

Parameters:
association - the association
cascade - flag indicates if the dependent construct should removed too
revision - the revision to store to
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

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

doRemoveItemIdentifier

protected void doRemoveItemIdentifier(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
Remove the given item identifier from the given construct.

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

doRemoveName

protected void doRemoveName(de.topicmapslab.majortom.model.core.IName name,
                            boolean cascade,
                            de.topicmapslab.majortom.model.revision.IRevision revision)
                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Remove the name.

Parameters:
name - the name
cascade - flag indicates if the dependent construct should removed too
revision - the revision to store to
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveOccurrence

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

doRemoveOccurrence

protected void doRemoveOccurrence(de.topicmapslab.majortom.model.core.IOccurrence occurrence,
                                  boolean cascade,
                                  de.topicmapslab.majortom.model.revision.IRevision revision)
                           throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Remove the occurrence.

Parameters:
occurrence - the occurrence
cascade - flag indicates if the dependent construct should removed too
revision - the revision to store to
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveRole

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

doRemoveRole

protected void doRemoveRole(de.topicmapslab.majortom.model.core.IAssociationRole role,
                            boolean cascade,
                            de.topicmapslab.majortom.model.revision.IRevision revision)
                     throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Remove the association role.

Parameters:
role - the role
cascade - flag indicates if the dependent construct should removed too
revision - the revision to store to
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

doRemoveScope

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

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

doRemoveSubjectIdentifier

protected void doRemoveSubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t,
                                         de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
                                  throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
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

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

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

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

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

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

doRemoveVariant

protected void doRemoveVariant(de.topicmapslab.majortom.model.core.IVariant variant,
                               boolean cascade,
                               de.topicmapslab.majortom.model.revision.IRevision revision)
                        throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Remove the variant.

Parameters:
variant - the variant
cascade - flag indicates if the dependent construct should removed too
revision - the revision to store to
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

commit

public void commit()

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

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

getIndex

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


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

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

isTransactable

public boolean isTransactable()

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

createRevision

public 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

storeRevision

public void storeRevision(de.topicmapslab.majortom.model.revision.IRevision revision,
                          de.topicmapslab.majortom.model.event.TopicMapEventType type,
                          de.topicmapslab.majortom.model.core.IConstruct context,
                          java.lang.Object newValue,
                          java.lang.Object oldValue)
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

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

clear

public void clear()

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

getTopicMapIdentity

public JdbcIdentity getTopicMapIdentity()
Returns the internal identity of the topic map

Returns:
the identity

openSession

public ISession openSession()
Creates a new session using connection provider

Returns:
the new session

removeDuplicates

public void removeDuplicates()

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

getDialect

public java.lang.String getDialect()
Returns:
the dialect