|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.topicmapslab.majortom.store.TopicMapStoreImpl
de.topicmapslab.majortom.store.ReadOnlyTopicMapStoreImpl
de.topicmapslab.majortom.store.ModifableTopicMapStoreImpl
de.topicmapslab.majortom.inmemory.store.InMemoryTopicMapStore
de.topicmapslab.majortom.inmemory.virtual.VirtualTopicMapStore
de.topicmapslab.majortom.inmemory.transaction.InMemoryTransactionTopicMapStore
public class InMemoryTransactionTopicMapStore
Field Summary | |
---|---|
private java.util.List<TransactionCommand> |
commands
|
private java.util.LinkedList<TransactionCommand> |
commited
|
private de.topicmapslab.majortom.model.transaction.ITransaction |
transaction
|
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 | |
---|---|
InMemoryTransactionTopicMapStore(de.topicmapslab.majortom.model.core.ITopicMapSystem topicMapSystem,
de.topicmapslab.majortom.model.store.ITopicMapStore store,
de.topicmapslab.majortom.model.transaction.ITransaction transaction)
constructor |
Method Summary | |
---|---|
void |
commit()
|
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. |
java.lang.Object |
doCreate(de.topicmapslab.majortom.model.core.IConstruct context,
de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType,
java.lang.Object... params)
|
void |
doModify(de.topicmapslab.majortom.model.core.IConstruct context,
de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType,
java.lang.Object... params)
|
java.lang.String |
doReadId(de.topicmapslab.majortom.model.core.IConstruct c)
Read the id of the given construct |
void |
doRemove(de.topicmapslab.majortom.model.core.IConstruct context,
boolean cascade)
|
void |
doRemove(de.topicmapslab.majortom.model.core.IConstruct context,
de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType,
java.lang.Object... params)
|
InMemoryIdentity |
getTopicMapIdentity()
|
de.topicmapslab.majortom.model.transaction.ITransaction |
getTransaction()
|
boolean |
isRevisionManagementEnabled()
|
void |
rollback()
|
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.store.ModifableTopicMapStoreImpl |
---|
checkMergeConditionOfItemIdentifier, checkMergeConditionOfSubjectIdentifier, checkMergeConditionOfSubjectLocator, checkMergeConstraint, checkReificationConstraintBeforeModification, doMerge, isTopicUsedAsPlayer, isTopicUsedAsReifier, isTopicUsedAsSupertype, isTopicUsedAsTheme, isTopicUsedAsType, storeRevision |
Methods inherited from class de.topicmapslab.majortom.store.ReadOnlyTopicMapStoreImpl |
---|
clearCache, doRead, getCache, internalDoRead |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.topicmapslab.majortom.model.transaction.ITransactionTopicMapStore |
---|
getRealStore |
Methods inherited from interface de.topicmapslab.majortom.model.store.ITopicMapStore |
---|
addTopicMapListener, clear, close, connect, createTransaction, doMerge, doRead, enableCaching, enableRevisionManagement, generateId, getConstructFactory, getIndex, getMetaData, getTopicMap, getTopicMapBaseLocator, getTopicMapBaseLocatorReference, initialize, isCachingEnabled, isConnected, isReadOnly, isRevisionManagementSupported, isTransactable, removeDuplicates, removeTopicMapListener, setTopicMapSystem |
Field Detail |
---|
private java.util.List<TransactionCommand> commands
private java.util.LinkedList<TransactionCommand> commited
private final de.topicmapslab.majortom.model.transaction.ITransaction transaction
Constructor Detail |
---|
public InMemoryTransactionTopicMapStore(de.topicmapslab.majortom.model.core.ITopicMapSystem topicMapSystem, de.topicmapslab.majortom.model.store.ITopicMapStore store, de.topicmapslab.majortom.model.transaction.ITransaction transaction)
topicMapSystem
- the topic map systemstore
- the real storetransaction
- the transactionMethod Detail |
---|
public de.topicmapslab.majortom.model.transaction.ITransaction getTransaction()
getTransaction
in interface de.topicmapslab.majortom.model.transaction.ITransactionTopicMapStore
public void commit() throws de.topicmapslab.majortom.model.exception.TransactionException
commit
in interface de.topicmapslab.majortom.model.store.ITopicMapStore
commit
in interface de.topicmapslab.majortom.model.transaction.ITransactionTopicMapStore
commit
in class InMemoryTopicMapStore
de.topicmapslab.majortom.model.exception.TransactionException
public void rollback()
rollback
in interface de.topicmapslab.majortom.model.transaction.ITransactionTopicMapStore
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
doModify
in interface de.topicmapslab.majortom.model.store.ITopicMapStore
doModify
in class ModifableTopicMapStoreImpl
de.topicmapslab.majortom.model.exception.TopicMapStoreException
public void doRemove(de.topicmapslab.majortom.model.core.IConstruct context, de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType, java.lang.Object... params) throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
doRemove
in interface de.topicmapslab.majortom.model.store.ITopicMapStore
doRemove
in class ModifableTopicMapStoreImpl
de.topicmapslab.majortom.model.exception.TopicMapStoreException
public void doRemove(de.topicmapslab.majortom.model.core.IConstruct context, boolean cascade) throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
doRemove
in interface de.topicmapslab.majortom.model.store.ITopicMapStore
doRemove
in class ModifableTopicMapStoreImpl
de.topicmapslab.majortom.model.exception.TopicMapStoreException
public java.lang.Object doCreate(de.topicmapslab.majortom.model.core.IConstruct context, de.topicmapslab.majortom.model.store.TopicMapStoreParameterType paramType, java.lang.Object... params) throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
doCreate
in interface de.topicmapslab.majortom.model.store.ITopicMapStore
doCreate
in class ModifableTopicMapStoreImpl
de.topicmapslab.majortom.model.exception.TopicMapStoreException
public java.lang.String doReadId(de.topicmapslab.majortom.model.core.IConstruct c) throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
doReadId
in class InMemoryTopicMapStore
c
- the construct
de.topicmapslab.majortom.model.exception.TopicMapStoreException
- thrown if operation failsprotected VirtualIdentityStore<?> createIdentityStore(InMemoryTopicMapStore store)
createIdentityStore
in class VirtualTopicMapStore
store
- the calling store instance
protected VirtualAssociationStore<?> createAssociationStore(InMemoryTopicMapStore store)
createAssociationStore
in class VirtualTopicMapStore
store
- the calling store instance
protected VirtualReificationStore<?> createReificationStore(InMemoryTopicMapStore store)
createReificationStore
in class VirtualTopicMapStore
store
- the calling store instance
protected VirtualTypedStore<?> createTypedStore(InMemoryTopicMapStore store)
createTypedStore
in class VirtualTopicMapStore
store
- the calling store instance
protected VirtualCharacteristicsStore<?> createCharacteristicsStore(InMemoryTopicMapStore store, de.topicmapslab.majortom.model.core.ILocator xsdString)
createCharacteristicsStore
in class VirtualTopicMapStore
store
- the calling store instancexsdString
- the locator of datatype xsd:string
protected VirtualScopeStore<?> createScopeStore(InMemoryTopicMapStore store)
createScopeStore
in class VirtualTopicMapStore
store
- the calling store instance
protected VirtualTopicTypeStore<?> createTopicTypeStore(InMemoryTopicMapStore store)
createTopicTypeStore
in class VirtualTopicMapStore
store
- the calling store instance
public boolean isRevisionManagementEnabled()
isRevisionManagementEnabled
in interface de.topicmapslab.majortom.model.store.ITopicMapStore
isRevisionManagementEnabled
in class VirtualTopicMapStore
public InMemoryIdentity getTopicMapIdentity()
getTopicMapIdentity
in interface de.topicmapslab.majortom.model.store.ITopicMapStore
getTopicMapIdentity
in class InMemoryTopicMapStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |