de.deepamehta.core.impl
Class TypeCache
java.lang.Object
de.deepamehta.core.impl.TypeCache
class TypeCache
- extends Object
A memory-cache for type definitions: topic types and association types.
Types are accessed by the get
methods. They are lazy-loaded from the DB.
This class is internally used by the EmbeddedService
. The plugin developer accesses topic types via the
DeepaMehtaService.getTopicType(java.lang.String)
core service call.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
topicTypes
private Map<String,TopicType> topicTypes
assocTypes
private Map<String,AssociationType> assocTypes
dms
private EmbeddedService dms
endlessRecursionProtection
private TypeCache.EndlessRecursionProtection endlessRecursionProtection
logger
private Logger logger
TypeCache
TypeCache(EmbeddedService dms)
getTopicType
TopicType getTopicType(String topicTypeUri)
getAssociationType
AssociationType getAssociationType(String assocTypeUri)
putTopicType
void putTopicType(TopicType topicType)
putAssociationType
void putAssociationType(AssociationType assocType)
removeTopicType
void removeTopicType(String topicTypeUri)
removeAssociationType
void removeAssociationType(String assocTypeUri)
loadTopicType
private TopicType loadTopicType(String topicTypeUri)
loadAssociationType
private AssociationType loadAssociationType(String assocTypeUri)
Copyright © 2015. All Rights Reserved.