Package net.ontopia.topicmaps.impl.basic
Class SubjectIdentityCache
java.lang.Object
net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache
net.ontopia.topicmaps.impl.basic.SubjectIdentityCache
- All Implemented Interfaces:
Serializable,EventListenerIF
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache
AbstractSubjectIdentityCache.EventHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CollectionFactoryIFprotected longprotected Map<LocatorIF,TMObjectIF> protected TopicMapTransactionIFFields inherited from class net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache
handlers -
Constructor Summary
ConstructorsConstructorDescriptionSubjectIdentityCache(TopicMapTransactionIF txn, CollectionFactoryIF cfactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected TMObjectIF_getObjectByItemIdentifier(LocatorIF source_locator) protected TopicIF_getTopicBySubjectIdentifier(LocatorIF subject_indicator) protected TopicIF_getTopicBySubjectLocator(LocatorIF subject) getObjectById(String object_id) getObjectByItemIdentifier(LocatorIF locator) getTopicBySubjectIdentifier(LocatorIF locator) getTopicBySubjectLocator(LocatorIF locator) voidrefresh()protected voidINTERNAL: Register the object with the identity map.protected voidregisterSourceLocator(LocatorIF source_locator, TMObjectIF object) protected voidregisterSubject(LocatorIF subject, TopicIF object) protected voidregisterSubjectIndicator(LocatorIF subject_indicator, TopicIF object) protected voidINTERNAL: Unregister the object with the identity map.protected voidunregisterSourceLocator(LocatorIF source_locator) protected voidunregisterSubject(LocatorIF subject) protected voidunregisterSubjectIndicator(LocatorIF subject_indicator) Methods inherited from class net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache
processEvent, registerListeners
-
Field Details
-
txn
-
cfactory
-
counter
protected long counter -
id_objects
-
subjects
-
subject_indicators
-
source_locators
-
-
Constructor Details
-
SubjectIdentityCache
-
-
Method Details
-
refresh
public void refresh() -
getObjectById
- Specified by:
getObjectByIdin classAbstractSubjectIdentityCache
-
getObjectByItemIdentifier
- Specified by:
getObjectByItemIdentifierin classAbstractSubjectIdentityCache
-
getTopicBySubjectLocator
- Specified by:
getTopicBySubjectLocatorin classAbstractSubjectIdentityCache
-
getTopicBySubjectIdentifier
- Specified by:
getTopicBySubjectIdentifierin classAbstractSubjectIdentityCache
-
getItemIdentifiers
-
getSubjectIdentifiers
-
_getObjectByItemIdentifier
- Specified by:
_getObjectByItemIdentifierin classAbstractSubjectIdentityCache
-
registerSourceLocator
- Specified by:
registerSourceLocatorin classAbstractSubjectIdentityCache
-
unregisterSourceLocator
- Specified by:
unregisterSourceLocatorin classAbstractSubjectIdentityCache
-
_getTopicBySubjectIdentifier
- Specified by:
_getTopicBySubjectIdentifierin classAbstractSubjectIdentityCache
-
registerSubjectIndicator
- Specified by:
registerSubjectIndicatorin classAbstractSubjectIdentityCache
-
unregisterSubjectIndicator
- Specified by:
unregisterSubjectIndicatorin classAbstractSubjectIdentityCache
-
_getTopicBySubjectLocator
- Specified by:
_getTopicBySubjectLocatorin classAbstractSubjectIdentityCache
-
registerSubject
- Specified by:
registerSubjectin classAbstractSubjectIdentityCache
-
unregisterSubject
- Specified by:
unregisterSubjectin classAbstractSubjectIdentityCache
-
registerObject
INTERNAL: Register the object with the identity map.- Overrides:
registerObjectin classAbstractSubjectIdentityCache
-
unregisterObject
INTERNAL: Unregister the object with the identity map.- Overrides:
unregisterObjectin classAbstractSubjectIdentityCache
-