de.topicmapslab.majortom.inmemory.virtual
Class VirtualTopicMapStore

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.inmemory.store.InMemoryTopicMapStore
                  extended by de.topicmapslab.majortom.inmemory.virtual.VirtualTopicMapStore
All Implemented Interfaces:
de.topicmapslab.majortom.model.store.ITopicMapStore
Direct Known Subclasses:
InMemoryTransactionTopicMapStore, VirtualInMemoryTopicMapStore

public abstract class VirtualTopicMapStore
extends InMemoryTopicMapStore

Author:
Sven Krosse

Field Summary
private  de.topicmapslab.majortom.model.store.ITopicMapStore store
           
 
Fields inherited from class de.topicmapslab.majortom.inmemory.store.InMemoryTopicMapStore
ITEMIDENTIFIER_PREFIX, SUBJECTIDENTIFIER_PREFIX, SUBJECTLOCATOR_PREFIX
 
Fields inherited from class de.topicmapslab.majortom.store.TopicMapStoreImpl
OUTPUT
 
Constructor Summary
VirtualTopicMapStore(de.topicmapslab.majortom.model.core.ITopicMapSystem topicMapSystem, de.topicmapslab.majortom.model.store.ITopicMapStore store)
          constructor
 
Method Summary
protected abstract  VirtualAssociationStore<?> createAssociationStore(InMemoryTopicMapStore store)
          Creates the internal association store reference.
protected abstract  VirtualCharacteristicsStore<?> createCharacteristicsStore(InMemoryTopicMapStore store, de.topicmapslab.majortom.model.core.ILocator xsdString)
          Creates the internal characteristic store reference.
protected abstract  VirtualIdentityStore<?> createIdentityStore(InMemoryTopicMapStore store)
          Creates the internal identity store reference.
protected abstract  VirtualReificationStore<?> createReificationStore(InMemoryTopicMapStore store)
          Creates the internal reification store reference.
protected abstract  VirtualScopeStore<?> createScopeStore(InMemoryTopicMapStore store)
          Creates the internal scope store reference.
protected abstract  VirtualTopicTypeStore<?> createTopicTypeStore(InMemoryTopicMapStore store)
          Creates the internal topic-type hierarchy store reference.
protected abstract  VirtualTypedStore<?> createTypedStore(InMemoryTopicMapStore store)
          Creates the internal types store reference.
 VirtualAssociationStore<?> getAssociationStore()
          Returns the internal association store reference.
 VirtualCharacteristicsStore<?> getCharacteristicsStore()
          Returns the internal characteristic store reference.
 VirtualIdentityStore<?> getIdentityStore()
          Returns the internal identity store reference.
 de.topicmapslab.majortom.model.store.ITopicMapStore getRealStore()
          
 VirtualReificationStore<?> getReificationStore()
          Returns the internal reification store reference.
 VirtualScopeStore<?> getScopeStore()
          Returns the internal scope store reference.
 VirtualTopicTypeStore<?> getTopicTypeStore()
          Returns the internal topic-type hierarchy store reference.
 VirtualTypedStore<?> getTypedStore()
          Returns the internal types store reference.
 boolean isRevisionManagementEnabled()
          
 void removeVirtualConstruct(de.topicmapslab.majortom.model.core.IConstruct construct, de.topicmapslab.majortom.model.core.IConstruct newConstruct)
          Returns a virtual construct from the current virtual topic map store.
 
Methods inherited from class de.topicmapslab.majortom.inmemory.store.InMemoryTopicMapStore
addTaskToThreadPool, clear, close, commit, connect, createAssociation, createName, createOccurrence, createRevision, createRevisionStore, createRole, createSupertypeSubtypeAssociation, createTopic, createTopic, createTransaction, createTypeInstanceAssociation, createVariant, doCreateAssociation, doCreateAssociation, doCreateItemIdentifier, doCreateLocator, doCreateName, doCreateName, doCreateName, doCreateName, doCreateOccurrence, doCreateOccurrence, doCreateOccurrence, doCreateOccurrence, doCreateOccurrence, doCreateOccurrence, doCreateRole, doCreateScope, doCreateTopicByItemIdentifier, doCreateTopicBySubjectIdentifier, doCreateTopicBySubjectLocator, doCreateTopicWithoutIdentifier, doCreateVariant, doCreateVariant, doCreateVariant, doMergeTopicMaps, doMergeTopics, doModifyItemIdentifier, doModifyMetaData, doModifyPlayer, doModifyReifier, doModifyScope, doModifySubjectIdentifier, doModifySubjectLocator, doModifySupertype, doModifyTag, doModifyTag, doModifyTopicType, doModifyType, doModifyValue, doModifyValue, doModifyValue, doModifyValue, doReadAssociation, doReadAssociation, doReadAssociation, doReadAssociation, doReadAssociation, doReadAssociation, doReadAssociation, doReadAssociation, doReadBestIdentifier, doReadBestLabel, doReadBestLabel, doReadChangeSet, doReadChangeSetType, doReadCharacteristics, doReadCharacteristics, doReadCharacteristics, doReadCharacteristics, doReadConstruct, doReadConstruct, doReadDataType, doReadFutureRevision, doReadId, doReadItemIdentifiers, doReadLocator, doReadMetaData, doReadMetaData, doReadNames, doReadNames, doReadNames, doReadNames, doReadOccurrences, doReadOccurrences, doReadOccurrences, doReadOccurrences, doReadPastRevision, doReadPlayer, doReadReification, doReadReification, doReadRevisionTimestamp, doReadRoles, doReadRoles, doReadRoles, doReadRoles, doReadRoles, doReadRoleTypes, doReadScope, doReadSubjectIdentifiers, doReadSubjectLocators, doReadSuptertypes, doReadTopicBySubjectIdentifier, doReadTopicBySubjectLocator, doReadTopics, doReadTopics, doReadType, doReadTypes, doReadValue, doReadValue, doReadValue, doReadVariants, doReadVariants, doRemoveAssociation, doRemoveItemIdentifier, doRemoveName, doRemoveOccurrence, doRemoveRole, doRemoveScope, doRemoveSubjectIdentifier, doRemoveSubjectLocator, doRemoveSupertype, doRemoveTopic, doRemoveTopicMap, doRemoveType, doRemoveVariant, enableCaching, existsTmdmDefaultNameType, existsTmdmInstanceRoleType, existsTmdmSubtypeRoleType, existsTmdmSupertypeRoleType, existsTmdmSupertypeSubtypeAssociationType, existsTmdmTypeInstanceAssociationType, existsTmdmTypeRoleType, getCapacityOfCollections, getIndex, getRevisionStore, getTmdmDefaultNameType, getTmdmInstanceRoleType, getTmdmSubtypeRoleType, getTmdmSupertypeRoleType, getTmdmSupertypeSubtypeAssociationType, getTmdmTypeInstanceAssociationType, getTmdmTypeRoleType, getTopicMapIdentity, isCachingEnabled, isTopicInUse, isTransactable, mergeTopics, modifyItemIdentifier, modifyReifier, modifySubjectIdentifier, modifySubjectLocator, modifySupertype, modifyTopicType, removeAssociation, removeDuplicates, removeItemIdentifier, removeName, removeOccurrence, removeSubjectIdentifier, removeSubjectLocator, removeSupertype, removeSupertypeSubtypeAssociation, removeTopic, removeTopicType, removeTypeInstanceAssociation, removeVariant, setTopicMapSystem, storeRevision
 
Methods inherited from class de.topicmapslab.majortom.store.ModifableTopicMapStoreImpl
checkMergeConditionOfItemIdentifier, checkMergeConditionOfSubjectIdentifier, checkMergeConditionOfSubjectLocator, checkMergeConstraint, checkReificationConstraintBeforeModification, doCreate, doMerge, doModify, doRemove, doRemove, isTopicUsedAsPlayer, isTopicUsedAsReifier, isTopicUsedAsSupertype, isTopicUsedAsTheme, isTopicUsedAsType, storeRevision
 
Methods inherited from class de.topicmapslab.majortom.store.ReadOnlyTopicMapStoreImpl
clearCache, doRead, getCache, internalDoRead
 
Methods inherited from class de.topicmapslab.majortom.store.TopicMapStoreImpl
addTopicMapListener, createConstructFactory, createMetaDataInstance, doAutomaticMerging, doMergingByTopicName, enableRevisionManagement, generateId, generateStringId, getConstructFactory, getListeners, getMetaData, getThreadPool, getTopicMap, getTopicMapBaseLocator, getTopicMapBaseLocatorReference, getTopicMapSystem, initialize, isConnected, isReadOnly, isReificationDeletionRestricted, isRevisionManagementSupported, notifyListeners, recognizingSupertypeSubtypeAssociation, recognizingTypeInstanceAssociation, removeTopicMapListener, setTopicMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

store

private final de.topicmapslab.majortom.model.store.ITopicMapStore store
Constructor Detail

VirtualTopicMapStore

public VirtualTopicMapStore(de.topicmapslab.majortom.model.core.ITopicMapSystem topicMapSystem,
                            de.topicmapslab.majortom.model.store.ITopicMapStore store)
constructor

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

getRealStore

public de.topicmapslab.majortom.model.store.ITopicMapStore getRealStore()


createIdentityStore

protected abstract VirtualIdentityStore<?> createIdentityStore(InMemoryTopicMapStore store)
Creates the internal identity store reference.

Overrides:
createIdentityStore in class InMemoryTopicMapStore
Parameters:
store - the calling store instance
Returns:
the identityStore

createAssociationStore

protected abstract VirtualAssociationStore<?> createAssociationStore(InMemoryTopicMapStore store)
Creates the internal association store reference.

Overrides:
createAssociationStore in class InMemoryTopicMapStore
Parameters:
store - the calling store instance
Returns:
the associationStore

createReificationStore

protected abstract VirtualReificationStore<?> createReificationStore(InMemoryTopicMapStore store)
Creates the internal reification store reference.

Overrides:
createReificationStore in class InMemoryTopicMapStore
Parameters:
store - the calling store instance
Returns:
the reificationStore

createTypedStore

protected abstract VirtualTypedStore<?> createTypedStore(InMemoryTopicMapStore store)
Creates the internal types store reference.

Overrides:
createTypedStore in class InMemoryTopicMapStore
Parameters:
store - the calling store instance
Returns:
the typedStore

createCharacteristicsStore

protected abstract VirtualCharacteristicsStore<?> createCharacteristicsStore(InMemoryTopicMapStore store,
                                                                             de.topicmapslab.majortom.model.core.ILocator xsdString)
Creates the internal characteristic store reference.

Overrides:
createCharacteristicsStore in class InMemoryTopicMapStore
Parameters:
store - the calling store instance
xsdString - the locator of datatype xsd:string
Returns:
the characteristicsStore

createScopeStore

protected abstract VirtualScopeStore<?> createScopeStore(InMemoryTopicMapStore store)
Creates the internal scope store reference.

Overrides:
createScopeStore in class InMemoryTopicMapStore
Parameters:
store - the calling store instance
Returns:
the scopeStore

createTopicTypeStore

protected abstract VirtualTopicTypeStore<?> createTopicTypeStore(InMemoryTopicMapStore store)
Creates the internal topic-type hierarchy store reference.

Overrides:
createTopicTypeStore in class InMemoryTopicMapStore
Parameters:
store - the calling store instance
Returns:
the topicTypeStore

isRevisionManagementEnabled

public boolean isRevisionManagementEnabled()

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

getIdentityStore

public VirtualIdentityStore<?> getIdentityStore()
Returns the internal identity store reference.

Overrides:
getIdentityStore in class InMemoryTopicMapStore
Returns:
the identityStore

getAssociationStore

public VirtualAssociationStore<?> getAssociationStore()
Returns the internal association store reference.

Overrides:
getAssociationStore in class InMemoryTopicMapStore
Returns:
the associationStore

getReificationStore

public VirtualReificationStore<?> getReificationStore()
Returns the internal reification store reference.

Overrides:
getReificationStore in class InMemoryTopicMapStore
Returns:
the reificationStore

getTypedStore

public VirtualTypedStore<?> getTypedStore()
Returns the internal types store reference.

Overrides:
getTypedStore in class InMemoryTopicMapStore
Returns:
the typedStore

getTopicTypeStore

public VirtualTopicTypeStore<?> getTopicTypeStore()
Returns the internal topic-type hierarchy store reference.

Overrides:
getTopicTypeStore in class InMemoryTopicMapStore
Returns:
the topicTypeStore

getCharacteristicsStore

public VirtualCharacteristicsStore<?> getCharacteristicsStore()
Returns the internal characteristic store reference.

Overrides:
getCharacteristicsStore in class InMemoryTopicMapStore
Returns:
the characteristicsStore

getScopeStore

public VirtualScopeStore<?> getScopeStore()
Returns the internal scope store reference.

Overrides:
getScopeStore in class InMemoryTopicMapStore
Returns:
the scopeStore

removeVirtualConstruct

public void removeVirtualConstruct(de.topicmapslab.majortom.model.core.IConstruct construct,
                                   de.topicmapslab.majortom.model.core.IConstruct newConstruct)
Returns a virtual construct from the current virtual topic map store. The construct will not mark as removed and will not removed from the underlying real topic map store.

Parameters:
construct - the construct to remove
newConstruct - the corresponding new construct