Package net.ontopia.topicmaps.impl.rdbms
Class SubjectIdentityCache
- java.lang.Object
-
- net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache
-
- net.ontopia.topicmaps.impl.rdbms.SubjectIdentityCache
-
- All Implemented Interfaces:
Serializable
,EventListenerIF
public class SubjectIdentityCache extends AbstractSubjectIdentityCache
INTERNAL:- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache
AbstractSubjectIdentityCache.EventHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected TransactionIF
ptxn
protected TransactionalLookupIndexIF<LocatorIF,IdentityIF>
source_locators
protected TransactionalLookupIndexIF<LocatorIF,IdentityIF>
subject_indicators
protected TransactionalLookupIndexIF<LocatorIF,IdentityIF>
subjects
protected TopicMapTransactionIF
txn
-
Fields inherited from class net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache
handlers
-
-
Constructor Summary
Constructors Constructor Description SubjectIdentityCache(TopicMapTransactionIF txn, CollectionFactoryIF cfactory)
-
Method Summary
-
Methods inherited from class net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache
processEvent, registerListeners, registerObject, unregisterObject
-
-
-
-
Field Detail
-
txn
protected TopicMapTransactionIF txn
-
ptxn
protected TransactionIF ptxn
-
source_locators
protected TransactionalLookupIndexIF<LocatorIF,IdentityIF> source_locators
-
subject_indicators
protected TransactionalLookupIndexIF<LocatorIF,IdentityIF> subject_indicators
-
subjects
protected TransactionalLookupIndexIF<LocatorIF,IdentityIF> subjects
-
-
Constructor Detail
-
SubjectIdentityCache
public SubjectIdentityCache(TopicMapTransactionIF txn, CollectionFactoryIF cfactory)
-
-
Method Detail
-
initialize
public void initialize()
-
commit
public void commit()
-
abort
public void abort()
-
getObjectById
public TMObjectIF getObjectById(String object_id)
- Specified by:
getObjectById
in classAbstractSubjectIdentityCache
-
getObjectByItemIdentifier
public TMObjectIF getObjectByItemIdentifier(LocatorIF locator)
- Specified by:
getObjectByItemIdentifier
in classAbstractSubjectIdentityCache
-
getTopicBySubjectLocator
public TopicIF getTopicBySubjectLocator(LocatorIF locator)
- Specified by:
getTopicBySubjectLocator
in classAbstractSubjectIdentityCache
-
getTopicBySubjectIdentifier
public TopicIF getTopicBySubjectIdentifier(LocatorIF locator)
- Specified by:
getTopicBySubjectIdentifier
in classAbstractSubjectIdentityCache
-
_getObjectByItemIdentifier
protected TMObjectIF _getObjectByItemIdentifier(LocatorIF source_locator)
- Specified by:
_getObjectByItemIdentifier
in classAbstractSubjectIdentityCache
-
registerSourceLocator
protected void registerSourceLocator(LocatorIF source_locator, TMObjectIF object)
- Specified by:
registerSourceLocator
in classAbstractSubjectIdentityCache
-
unregisterSourceLocator
protected void unregisterSourceLocator(LocatorIF source_locator)
- Specified by:
unregisterSourceLocator
in classAbstractSubjectIdentityCache
-
_getTopicBySubjectIdentifier
protected TopicIF _getTopicBySubjectIdentifier(LocatorIF subject_indicator)
- Specified by:
_getTopicBySubjectIdentifier
in classAbstractSubjectIdentityCache
-
registerSubjectIndicator
protected void registerSubjectIndicator(LocatorIF subject_indicator, TopicIF object)
- Specified by:
registerSubjectIndicator
in classAbstractSubjectIdentityCache
-
unregisterSubjectIndicator
protected void unregisterSubjectIndicator(LocatorIF subject_indicator)
- Specified by:
unregisterSubjectIndicator
in classAbstractSubjectIdentityCache
-
_getTopicBySubjectLocator
protected TopicIF _getTopicBySubjectLocator(LocatorIF subject)
- Specified by:
_getTopicBySubjectLocator
in classAbstractSubjectIdentityCache
-
registerSubject
protected void registerSubject(LocatorIF subject, TopicIF object)
- Specified by:
registerSubject
in classAbstractSubjectIdentityCache
-
unregisterSubject
protected void unregisterSubject(LocatorIF subject)
- Specified by:
unregisterSubject
in classAbstractSubjectIdentityCache
-
-