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()
TopicMapTransactionIFisActive in interface TopicMapTransactionIFpublic TopicMapBuilderIF getBuilder()
TopicMapTransactionIFgetBuilder in interface TopicMapTransactionIFpublic CollectionFactoryIF getCollectionFactory()
public IndexManagerIF getIndexManager()
TopicMapTransactionIFgetIndexManager in interface TopicMapTransactionIFpublic TopicMapIF getTopicMap()
TopicMapTransactionIFgetTopicMap in interface TopicMapTransactionIFpublic TopicMapStoreIF getStore()
TopicMapTransactionIFgetStore in interface TopicMapTransactionIFpublic TopicMapTransactionIF getParent()
public void commit()
TopicMapTransactionIFcommit in interface TopicMapTransactionIFpublic void abort()
TopicMapTransactionIFabort in interface TopicMapTransactionIFpublic void abort(boolean invalidate)
public abstract boolean validate()
public TopicMapTransactionIF createNested()