de.topicmapslab.majortom.queued.store
Class VirtualInMemoryTopicMapStore

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
                      extended by de.topicmapslab.majortom.queued.store.VirtualInMemoryTopicMapStore
All Implemented Interfaces:
de.topicmapslab.majortom.model.store.ITopicMapStore

public class VirtualInMemoryTopicMapStore
extends VirtualTopicMapStore

Author:
Sven Krosse

Field Summary
 
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
VirtualInMemoryTopicMapStore(de.topicmapslab.majortom.model.core.ITopicMapSystem topicMapSystem, JdbcTopicMapStore store)
          constructor
 
Method Summary
protected  VirtualAssociationStore<?> createAssociationStore(InMemoryTopicMapStore store)
          Creates the internal association store reference.
protected  VirtualCharacteristicsStore<?> createCharacteristicsStore(InMemoryTopicMapStore store, de.topicmapslab.majortom.model.core.ILocator xsdString)
          Creates the internal characteristic store reference.
protected  VirtualIdentityStore<?> createIdentityStore(InMemoryTopicMapStore store)
          Creates the internal identity store reference.
protected  VirtualReificationStore<?> createReificationStore(InMemoryTopicMapStore store)
          Creates the internal reification store reference.
protected  VirtualScopeStore<?> createScopeStore(InMemoryTopicMapStore store)
          Creates the internal scope store reference.
protected  VirtualTopicTypeStore<?> createTopicTypeStore(InMemoryTopicMapStore store)
          Creates the internal topic-type hierarchy store reference.
protected  VirtualTypedStore<?> createTypedStore(InMemoryTopicMapStore store)
          Creates the internal types store reference.
 void doModify(de.topicmapslab.majortom.model.core.IConstruct context, de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType, java.lang.Object... params)
          
 java.lang.Object doRead(de.topicmapslab.majortom.model.core.IConstruct context, de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType, java.lang.Object... params)
          
 boolean isRevisionManagementEnabled()
          
 boolean isRevisionManagementSupported()
          
 
Methods inherited from class de.topicmapslab.majortom.inmemory.virtual.VirtualTopicMapStore
getAssociationStore, getCharacteristicsStore, getIdentityStore, getRealStore, getReificationStore, getScopeStore, getTopicTypeStore, getTypedStore, removeVirtualConstruct
 
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, doRemove, doRemove, isTopicUsedAsPlayer, isTopicUsedAsReifier, isTopicUsedAsSupertype, isTopicUsedAsTheme, isTopicUsedAsType, storeRevision
 
Methods inherited from class de.topicmapslab.majortom.store.ReadOnlyTopicMapStoreImpl
clearCache, 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, notifyListeners, recognizingSupertypeSubtypeAssociation, recognizingTypeInstanceAssociation, removeTopicMapListener, setTopicMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualInMemoryTopicMapStore

public VirtualInMemoryTopicMapStore(de.topicmapslab.majortom.model.core.ITopicMapSystem topicMapSystem,
                                    JdbcTopicMapStore store)
constructor

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

createIdentityStore

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

Specified by:
createIdentityStore in class VirtualTopicMapStore
Parameters:
store - the calling store instance
Returns:
the identityStore

createAssociationStore

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

Specified by:
createAssociationStore in class VirtualTopicMapStore
Parameters:
store - the calling store instance
Returns:
the associationStore

createReificationStore

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

Specified by:
createReificationStore in class VirtualTopicMapStore
Parameters:
store - the calling store instance
Returns:
the reificationStore

createTypedStore

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

Specified by:
createTypedStore in class VirtualTopicMapStore
Parameters:
store - the calling store instance
Returns:
the typedStore

createCharacteristicsStore

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

Specified by:
createCharacteristicsStore in class VirtualTopicMapStore
Parameters:
store - the calling store instance
xsdString - the locator of datatype xsd:string
Returns:
the characteristicsStore

createScopeStore

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

Specified by:
createScopeStore in class VirtualTopicMapStore
Parameters:
store - the calling store instance
Returns:
the scopeStore

createTopicTypeStore

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

Specified by:
createTopicTypeStore in class VirtualTopicMapStore
Parameters:
store - the calling store instance
Returns:
the topicTypeStore

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

doModify

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

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

isRevisionManagementEnabled

public boolean isRevisionManagementEnabled()

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

isRevisionManagementSupported

public boolean isRevisionManagementSupported()

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