de.topicmapslab.majortom.database.core
Class JdbcTopicMapSystem

java.lang.Object
  extended by de.topicmapslab.majortom.core.TopicMapSystemImpl
      extended by de.topicmapslab.majortom.database.core.JdbcTopicMapSystem
All Implemented Interfaces:
de.topicmapslab.majortom.model.core.ITopicMapSystem, org.tmapi.core.TopicMapSystem

public class JdbcTopicMapSystem
extends TopicMapSystemImpl

Author:
Sven Krosse

Field Summary
private  java.util.Set<org.tmapi.core.Locator> storedTopicMapLocators
           
 
Constructor Summary
JdbcTopicMapSystem()
          constructor for JAVA services
JdbcTopicMapSystem(TopicMapSystemFactoryImpl factory)
          constructor
 
Method Summary
 org.tmapi.core.TopicMap createTopicMap(org.tmapi.core.Locator locator)
          
 org.tmapi.core.TopicMap createTopicMap(org.tmapi.core.Locator locator, de.topicmapslab.majortom.model.store.ITopicMapStore store)
          
 java.lang.Class<? extends de.topicmapslab.majortom.model.store.ITopicMapStore> getHandledClass()
          
 org.tmapi.core.TopicMap getTopicMap(org.tmapi.core.Locator locator)
          
 org.tmapi.core.TopicMap getTopicMap(java.lang.String reference)
          
private  java.util.Set<org.tmapi.core.Locator> loadLocatorsFromDatabase()
          Internal method to load all locators from database
 de.topicmapslab.majortom.model.core.ITopicMap removeTopicMap(org.tmapi.core.Locator locator)
          
 void setFactory(org.tmapi.core.TopicMapSystemFactory factory)
          
 
Methods inherited from class de.topicmapslab.majortom.core.TopicMapSystemImpl
addTopicMap, close, containsTopicMap, createLocator, createTopicMap, createTopicMap, getFactory, getFeature, getLocators, getProperty, setFactory, setFeature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

storedTopicMapLocators

private java.util.Set<org.tmapi.core.Locator> storedTopicMapLocators
Constructor Detail

JdbcTopicMapSystem

public JdbcTopicMapSystem()
constructor for JAVA services


JdbcTopicMapSystem

public JdbcTopicMapSystem(TopicMapSystemFactoryImpl factory)
constructor

Parameters:
factory - the factory
Method Detail

setFactory

public void setFactory(org.tmapi.core.TopicMapSystemFactory factory)

Specified by:
setFactory in interface de.topicmapslab.majortom.model.core.ITopicMapSystem
Overrides:
setFactory in class TopicMapSystemImpl

loadLocatorsFromDatabase

private final java.util.Set<org.tmapi.core.Locator> loadLocatorsFromDatabase()
Internal method to load all locators from database


getTopicMap

public org.tmapi.core.TopicMap getTopicMap(org.tmapi.core.Locator locator)

Specified by:
getTopicMap in interface org.tmapi.core.TopicMapSystem
Overrides:
getTopicMap in class TopicMapSystemImpl

getTopicMap

public org.tmapi.core.TopicMap getTopicMap(java.lang.String reference)

Specified by:
getTopicMap in interface org.tmapi.core.TopicMapSystem
Overrides:
getTopicMap in class TopicMapSystemImpl

createTopicMap

public org.tmapi.core.TopicMap createTopicMap(org.tmapi.core.Locator locator)
                                       throws org.tmapi.core.TopicMapExistsException

Specified by:
createTopicMap in interface org.tmapi.core.TopicMapSystem
Overrides:
createTopicMap in class TopicMapSystemImpl
Throws:
org.tmapi.core.TopicMapExistsException

createTopicMap

public org.tmapi.core.TopicMap createTopicMap(org.tmapi.core.Locator locator,
                                              de.topicmapslab.majortom.model.store.ITopicMapStore store)
                                       throws org.tmapi.core.TopicMapExistsException

Specified by:
createTopicMap in interface de.topicmapslab.majortom.model.core.ITopicMapSystem
Overrides:
createTopicMap in class TopicMapSystemImpl
Throws:
org.tmapi.core.TopicMapExistsException

removeTopicMap

public de.topicmapslab.majortom.model.core.ITopicMap removeTopicMap(org.tmapi.core.Locator locator)

Overrides:
removeTopicMap in class TopicMapSystemImpl

getHandledClass

public java.lang.Class<? extends de.topicmapslab.majortom.model.store.ITopicMapStore> getHandledClass()

Specified by:
getHandledClass in interface de.topicmapslab.majortom.model.core.ITopicMapSystem
Overrides:
getHandledClass in class TopicMapSystemImpl