net.ontopia.topicmaps.impl.basic
Class SubjectIdentityCache

java.lang.Object
  extended by net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache
      extended by net.ontopia.topicmaps.impl.basic.SubjectIdentityCache
All Implemented Interfaces:
java.io.Serializable, net.ontopia.topicmaps.impl.utils.EventListenerIF

public class SubjectIdentityCache
extends net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache
implements java.io.Serializable

INTERNAL: Class that maintains indexes for use with the TopicMapIF locator lookup methods. This is especially useful in the cases where the topic map object cannot use queries to do the lookups.

This class uses the event model to maintain its indexes.

See Also:
Serialized Form

Constructor Summary
SubjectIdentityCache(net.ontopia.topicmaps.impl.utils.TopicMapTransactionIF txn, CollectionFactoryIF cfactory)
           
 
Method Summary
 TMObjectIF getObjectById(java.lang.String object_id)
           
 TMObjectIF getObjectByItemIdentifier(LocatorIF locator)
           
 TopicIF getTopicBySubjectIdentifier(LocatorIF locator)
           
 TopicIF getTopicBySubjectLocator(LocatorIF locator)
           
 void refresh()
           
 
Methods inherited from class net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache
processEvent, registerListeners
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectIdentityCache

public SubjectIdentityCache(net.ontopia.topicmaps.impl.utils.TopicMapTransactionIF txn,
                            CollectionFactoryIF cfactory)
Method Detail

refresh

public void refresh()

getObjectById

public TMObjectIF getObjectById(java.lang.String object_id)
Specified by:
getObjectById in class net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache

getObjectByItemIdentifier

public TMObjectIF getObjectByItemIdentifier(LocatorIF locator)
Specified by:
getObjectByItemIdentifier in class net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache

getTopicBySubjectLocator

public TopicIF getTopicBySubjectLocator(LocatorIF locator)
Specified by:
getTopicBySubjectLocator in class net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache

getTopicBySubjectIdentifier

public TopicIF getTopicBySubjectIdentifier(LocatorIF locator)
Specified by:
getTopicBySubjectIdentifier in class net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache


Copyright © 2000-2010 Ontopia.