Package net.ontopia.topicmaps.impl.basic
Class InMemoryTopicMapStore
java.lang.Object
net.ontopia.topicmaps.impl.utils.AbstractTopicMapStore
net.ontopia.topicmaps.impl.basic.InMemoryTopicMapStore
- All Implemented Interfaces:
AutoCloseable,TopicMapStoreIF
- Direct Known Subclasses:
RemoteTopicMapStore
PUBLIC: The in-memory TopicMapStoreIF implementation.
-
Field Summary
FieldsFields inherited from class net.ontopia.topicmaps.impl.utils.AbstractTopicMapStore
base_address, closed, deleted, open, readonly, readonlySet, reference, topic_listenersFields inherited from interface net.ontopia.topicmaps.core.TopicMapStoreIF
IN_MEMORY_IMPLEMENTATION, RDBMS_IMPLEMENTATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()PUBLIC: Closes the store and aborts the transaction if active.voidclose(boolean returnStore) intPUBLIC: Returns the topic map implementation identifier.getProperty(String propertyName) PUBLIC: Returns the value of the specified topic map store property.booleanPUBLIC: Returns true if the store supports transactions.voidsetBaseAddress(LocatorIF base_address) EXPERIMENTAL: Sets the persistent base address of the store.Methods inherited from class net.ontopia.topicmaps.impl.utils.AbstractTopicMapStore
abort, commit, delete, getBaseAddress, getReference, getTopicMap, isOpen, isReadOnly, open, setReadOnly, setReference, setTopicListeners, validate
-
Field Details
-
transaction
-
-
Constructor Details
-
InMemoryTopicMapStore
public InMemoryTopicMapStore()
-
-
Method Details
-
getImplementation
public int getImplementation()Description copied from interface:TopicMapStoreIFPUBLIC: Returns the topic map implementation identifier.- Returns:
TopicMapStoreIF.IN_MEMORY_IMPLEMENTATIONorTopicMapStoreIF.RDBMS_IMPLEMENTATIONflags.
-
isTransactional
public boolean isTransactional()Description copied from interface:TopicMapStoreIFPUBLIC: Returns true if the store supports transactions.- Returns:
- Boolean: true if transactional, false if not.
-
getTransaction
- Specified by:
getTransactionin classAbstractTopicMapStore
-
setBaseAddress
Description copied from interface:TopicMapStoreIFEXPERIMENTAL: Sets the persistent base address of the store. -
close
public void close()Description copied from interface:TopicMapStoreIFPUBLIC: Closes the store and aborts the transaction if active. -
close
public void close(boolean returnStore) - Specified by:
closein classAbstractTopicMapStore
-
getProperty
Description copied from interface:TopicMapStoreIFPUBLIC: Returns the value of the specified topic map store property. -
getEventManager
- Specified by:
getEventManagerin classAbstractTopicMapStore
-