de.deepamehta.core.impl
Class TypeCache

Show UML class diagram
java.lang.Object
  extended by 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.


Nested Class Summary
private  class TypeCache.EndlessRecursionDetection
           
 
Field Summary
private  Map<String,AssociationType> assocTypes
           
private  EmbeddedService dms
           
private  TypeCache.EndlessRecursionDetection endlessRecursionDetection
           
private  Logger logger
           
private  Map<String,TopicType> topicTypes
           
 
Constructor Summary
TypeCache(EmbeddedService dms)
           
 
Method Summary
(package private)  AssociationType getAssociationType(String assocTypeUri)
           
(package private)  TopicType getTopicType(String topicTypeUri)
           
private  AssociationType loadAssociationType(String assocTypeUri)
           
private  TopicType loadTopicType(String topicTypeUri)
           
(package private)  void putAssociationType(AssociationType assocType)
           
(package private)  void putTopicType(TopicType topicType)
           
(package private)  void removeAssociationType(String assocTypeUri)
           
(package private)  void removeTopicType(String topicTypeUri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

topicTypes

private Map<String,TopicType> topicTypes

assocTypes

private Map<String,AssociationType> assocTypes

dms

private EmbeddedService dms

endlessRecursionDetection

private TypeCache.EndlessRecursionDetection endlessRecursionDetection

logger

private Logger logger
Constructor Detail

TypeCache

TypeCache(EmbeddedService dms)
Method Detail

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.