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 class InMemoryTopicMapStore extends AbstractTopicMapStore
PUBLIC: The in-memory TopicMapStoreIF implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected TopicMapTransactionIF
transaction
-
Fields inherited from class net.ontopia.topicmaps.impl.utils.AbstractTopicMapStore
base_address, closed, deleted, open, readonly, readonlySet, reference, topic_listeners
-
Fields inherited from interface net.ontopia.topicmaps.core.TopicMapStoreIF
IN_MEMORY_IMPLEMENTATION, RDBMS_IMPLEMENTATION
-
-
Constructor Summary
Constructors Constructor Description InMemoryTopicMapStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
PUBLIC: Closes the store and aborts the transaction if active.void
close(boolean returnStore)
EventManagerIF
getEventManager()
int
getImplementation()
PUBLIC: Returns the topic map implementation identifier.String
getProperty(String propertyName)
PUBLIC: Returns the value of the specified topic map store property.TopicMapTransactionIF
getTransaction()
boolean
isTransactional()
PUBLIC: Returns true if the store supports transactions.void
setBaseAddress(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 Detail
-
transaction
protected TopicMapTransactionIF transaction
-
-
Method Detail
-
getImplementation
public int getImplementation()
Description copied from interface:TopicMapStoreIF
PUBLIC: Returns the topic map implementation identifier.- Returns:
TopicMapStoreIF.IN_MEMORY_IMPLEMENTATION
orTopicMapStoreIF.RDBMS_IMPLEMENTATION
flags.
-
isTransactional
public boolean isTransactional()
Description copied from interface:TopicMapStoreIF
PUBLIC: Returns true if the store supports transactions.- Returns:
- Boolean: true if transactional, false if not.
-
getTransaction
public TopicMapTransactionIF getTransaction()
- Specified by:
getTransaction
in classAbstractTopicMapStore
-
setBaseAddress
public void setBaseAddress(LocatorIF base_address)
Description copied from interface:TopicMapStoreIF
EXPERIMENTAL: Sets the persistent base address of the store.
-
close
public void close()
Description copied from interface:TopicMapStoreIF
PUBLIC: Closes the store and aborts the transaction if active.
-
close
public void close(boolean returnStore)
- Specified by:
close
in classAbstractTopicMapStore
-
getProperty
public String getProperty(String propertyName)
Description copied from interface:TopicMapStoreIF
PUBLIC: Returns the value of the specified topic map store property.
-
getEventManager
public EventManagerIF getEventManager()
- Specified by:
getEventManager
in classAbstractTopicMapStore
-
-