public abstract class AbstractTopicMapTransaction extends Object implements TopicMapTransactionIF
Modifier and Type | Field and Description |
---|---|
protected boolean |
active |
protected TopicMapBuilderIF |
builder |
protected CollectionFactoryIF |
cfactory |
protected IndexManagerIF |
imanager |
protected boolean |
invalid |
protected AbstractTopicMapTransaction |
parent |
protected AbstractTopicMapStore |
store |
protected TopicMapIF |
topicmap |
EVENT_ABORT, EVENT_COMMIT
Constructor and Description |
---|
AbstractTopicMapTransaction() |
Modifier and Type | Method and Description |
---|---|
void |
abort()
PUBLIC: Aborts the transaction; all changes made inside the
transaction are rolled back.
|
void |
abort(boolean invalidate) |
void |
commit()
PUBLIC: Commits the transaction.
|
TopicMapTransactionIF |
createNested() |
TopicMapBuilderIF |
getBuilder()
PUBLIC: Gets a topic map builder for use with this transaction.
|
CollectionFactoryIF |
getCollectionFactory() |
IndexManagerIF |
getIndexManager()
PUBLIC: Gets the index manager that manages the topic map indexes
in the transaction.
|
TopicMapTransactionIF |
getParent() |
TopicMapStoreIF |
getStore()
PUBLIC: Gets the store to which the transaction is connected.
|
TopicMapIF |
getTopicMap()
PUBLIC: Gets the topic map that is accessible through the
transaction.
|
boolean |
isActive()
PUBLIC: Returns true if the transaction is active (in process).
|
abstract boolean |
validate() |
protected boolean active
protected boolean invalid
protected AbstractTopicMapStore store
protected AbstractTopicMapTransaction parent
protected TopicMapIF topicmap
protected TopicMapBuilderIF builder
protected CollectionFactoryIF cfactory
protected IndexManagerIF imanager
public boolean isActive()
TopicMapTransactionIF
isActive
in interface TopicMapTransactionIF
public TopicMapBuilderIF getBuilder()
TopicMapTransactionIF
getBuilder
in interface TopicMapTransactionIF
public CollectionFactoryIF getCollectionFactory()
public IndexManagerIF getIndexManager()
TopicMapTransactionIF
getIndexManager
in interface TopicMapTransactionIF
public TopicMapIF getTopicMap()
TopicMapTransactionIF
getTopicMap
in interface TopicMapTransactionIF
public TopicMapStoreIF getStore()
TopicMapTransactionIF
getStore
in interface TopicMapTransactionIF
public TopicMapTransactionIF getParent()
public void commit()
TopicMapTransactionIF
commit
in interface TopicMapTransactionIF
public void abort()
TopicMapTransactionIF
abort
in interface TopicMapTransactionIF
public void abort(boolean invalidate)
public abstract boolean validate()
public TopicMapTransactionIF createNested()