de.topicmapslab.majortom.database.transaction
Class InMemoryTransaction

java.lang.Object
  extended by de.topicmapslab.majortom.core.ConstructImpl
      extended by de.topicmapslab.majortom.core.ReifiableImpl
          extended by de.topicmapslab.majortom.core.TopicMapImpl
              extended by de.topicmapslab.majortom.transaction.TransactionImpl
                  extended by de.topicmapslab.majortom.database.transaction.InMemoryTransaction
All Implemented Interfaces:
de.topicmapslab.majortom.model.core.IConstruct, de.topicmapslab.majortom.model.core.IReifiable, de.topicmapslab.majortom.model.core.ITopicMap, de.topicmapslab.majortom.model.core.paged.IPagedTopicMap, de.topicmapslab.majortom.model.transaction.ITransaction, java.io.Serializable, java.lang.Comparable<de.topicmapslab.majortom.model.core.IConstruct>, org.tmapi.core.Construct, org.tmapi.core.Reifiable, org.tmapi.core.TopicMap

public class InMemoryTransaction
extends TransactionImpl

In-memory implementation of the ITransaction

Author:
Sven Krosse
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  TransactionTopicMapStore transactionTopicMapStore
           
 
Constructor Summary
InMemoryTransaction(de.topicmapslab.majortom.model.core.ITopicMap parent)
          constructor
 
Method Summary
 void close()
          
 void commit()
          
 de.topicmapslab.majortom.model.transaction.ITransactionTopicMapStore getStore()
          
<T extends de.topicmapslab.majortom.model.core.IConstruct>
T
moveToTransactionContext(T construct)
          
 
Methods inherited from class de.topicmapslab.majortom.transaction.TransactionImpl
addItemIdentifier, createAssociation, createAssociation, getItemIdentifiers, getReifier, getTopicMap, isClose, removeItemIdentifier, rollback, setReifier
 
Methods inherited from class de.topicmapslab.majortom.core.TopicMapImpl
addTag, addTag, addTopicMapListener, clear, createLocator, createScope, createScope, createTopic, createTopicByItemIdentifier, createTopicBySubjectIdentifier, createTopicBySubjectLocator, createTransaction, getAssociations, getAssociations, getAssociations, getAssociations, getAssociations, getAssociations, getConstructById, getConstructByItemIdentifier, getIdentity, getIndex, getLocator, getNumberOfAssociations, getNumberOfTopics, getTopicBySubjectIdentifier, getTopicBySubjectLocator, getTopicMapSystem, getTopics, getTopics, getTopics, getTopics, mergeIn, remove, removeDuplicates, removeTopicMapListener, setStore, toString
 
Methods inherited from class de.topicmapslab.majortom.core.ConstructImpl
compareTo, equals, getId, getParent, hashCode, isRemoved, longId, remove, setRemoved
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.topicmapslab.majortom.model.core.ITopicMap
addTag, addTag, addTopicMapListener, clear, createScope, createScope, createTransaction, getAssociations, getAssociations, getAssociations, getTopicMapSystem, getTopics, removeDuplicates, removeTopicMapListener
 
Methods inherited from interface org.tmapi.core.TopicMap
createLocator, createTopic, createTopicByItemIdentifier, createTopicBySubjectIdentifier, createTopicBySubjectLocator, getAssociations, getConstructById, getConstructByItemIdentifier, getIndex, getLocator, getParent, getTopicBySubjectIdentifier, getTopicBySubjectLocator, getTopics, mergeIn
 
Methods inherited from interface de.topicmapslab.majortom.model.core.IConstruct
isRemoved, longId, remove
 
Methods inherited from interface org.tmapi.core.Construct
equals, getId, hashCode, remove
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

transactionTopicMapStore

private final TransactionTopicMapStore transactionTopicMapStore
Constructor Detail

InMemoryTransaction

public InMemoryTransaction(de.topicmapslab.majortom.model.core.ITopicMap parent)
constructor

Parameters:
parent - the parent topic map
Method Detail

getStore

public de.topicmapslab.majortom.model.transaction.ITransactionTopicMapStore getStore()

Specified by:
getStore in interface de.topicmapslab.majortom.model.core.ITopicMap
Specified by:
getStore in class TransactionImpl

close

public void close()

Specified by:
close in interface org.tmapi.core.TopicMap
Overrides:
close in class TopicMapImpl

moveToTransactionContext

public <T extends de.topicmapslab.majortom.model.core.IConstruct> T moveToTransactionContext(T construct)


commit

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

Specified by:
commit in interface de.topicmapslab.majortom.model.transaction.ITransaction
Overrides:
commit in class TransactionImpl
Throws:
de.topicmapslab.majortom.model.exception.TransactionException