public class SubjectIdentityCache extends AbstractSubjectIdentityCache implements Serializable
AbstractSubjectIdentityCache.EventHandler| Modifier and Type | Field and Description |
|---|---|
protected CollectionFactoryIF |
cfactory |
protected long |
counter |
protected Map<String,TMObject> |
id_objects |
protected Map<LocatorIF,TMObjectIF> |
source_locators |
protected Map<LocatorIF,TopicIF> |
subject_indicators |
protected Map<LocatorIF,TopicIF> |
subjects |
protected TopicMapTransactionIF |
txn |
handlers| Constructor and Description |
|---|
SubjectIdentityCache(TopicMapTransactionIF txn,
CollectionFactoryIF cfactory) |
processEvent, registerListenersprotected TopicMapTransactionIF txn
protected CollectionFactoryIF cfactory
protected long counter
protected Map<LocatorIF,TMObjectIF> source_locators
public SubjectIdentityCache(TopicMapTransactionIF txn, CollectionFactoryIF cfactory)
public void refresh()
public TMObjectIF getObjectById(String object_id)
getObjectById in class AbstractSubjectIdentityCachepublic TMObjectIF getObjectByItemIdentifier(LocatorIF locator)
getObjectByItemIdentifier in class AbstractSubjectIdentityCachepublic TopicIF getTopicBySubjectLocator(LocatorIF locator)
getTopicBySubjectLocator in class AbstractSubjectIdentityCachepublic TopicIF getTopicBySubjectIdentifier(LocatorIF locator)
getTopicBySubjectIdentifier in class AbstractSubjectIdentityCachepublic Collection<LocatorIF> getItemIdentifiers()
public Collection<LocatorIF> getSubjectIdentifiers()
protected TMObjectIF _getObjectByItemIdentifier(LocatorIF source_locator)
_getObjectByItemIdentifier in class AbstractSubjectIdentityCacheprotected void registerSourceLocator(LocatorIF source_locator, TMObjectIF object)
registerSourceLocator in class AbstractSubjectIdentityCacheprotected void unregisterSourceLocator(LocatorIF source_locator)
unregisterSourceLocator in class AbstractSubjectIdentityCacheprotected TopicIF _getTopicBySubjectIdentifier(LocatorIF subject_indicator)
_getTopicBySubjectIdentifier in class AbstractSubjectIdentityCacheprotected void registerSubjectIndicator(LocatorIF subject_indicator, TopicIF object)
registerSubjectIndicator in class AbstractSubjectIdentityCacheprotected void unregisterSubjectIndicator(LocatorIF subject_indicator)
unregisterSubjectIndicator in class AbstractSubjectIdentityCacheprotected TopicIF _getTopicBySubjectLocator(LocatorIF subject)
_getTopicBySubjectLocator in class AbstractSubjectIdentityCacheprotected void registerSubject(LocatorIF subject, TopicIF object)
registerSubject in class AbstractSubjectIdentityCacheprotected void unregisterSubject(LocatorIF subject)
unregisterSubject in class AbstractSubjectIdentityCacheprotected void registerObject(TMObjectIF o)
registerObject in class AbstractSubjectIdentityCacheprotected void unregisterObject(TMObjectIF o)
unregisterObject in class AbstractSubjectIdentityCache