it.unimo.dbgroup.momis.annotationOntology
Class OntologyManagerCacheRelationship

java.lang.Object
  extended byit.unimo.dbgroup.momis.annotationOntology.OntologyManagerCache
      extended byit.unimo.dbgroup.momis.annotationOntology.OntologyManagerCacheRelationship

public class OntologyManagerCacheRelationship
extends OntologyManagerCache

Cache used by the OntologyManager for Relationships

Author:
Alberto Corni (Aug 2003)

Field Summary
private  java.util.Map _cacheRelationshipIdentifier
          
Key.
 
Fields inherited from class it.unimo.dbgroup.momis.annotationOntology.OntologyManagerCache
 
Constructor Summary
OntologyManagerCacheRelationship(OntologyManager ontologyManager)
           
 
Method Summary
 void clear()
          clean the cache
 OntologyRelationship getRelationship(java.lang.Object relationshipIdentifier)
           
private  void putInCache(OntologyRelationship ontologyRelationship)
          The correct way to add an entry to the cache
 
Methods inherited from class it.unimo.dbgroup.momis.annotationOntology.OntologyManagerCache
getOntologyManager, setOntologyManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_cacheRelationshipIdentifier

private java.util.Map _cacheRelationshipIdentifier

Key. OntologyRelationshipIdentifier
value. the OntologyRelationship

Constructor Detail

OntologyManagerCacheRelationship

public OntologyManagerCacheRelationship(OntologyManager ontologyManager)
Method Detail

getRelationship

public OntologyRelationship getRelationship(java.lang.Object relationshipIdentifier)
                                     throws java.lang.Exception
Parameters:
relationshipIdentifier - the object identifier for the relationship
Throws:
java.lang.Exception

putInCache

private void putInCache(OntologyRelationship ontologyRelationship)
The correct way to add an entry to the cache


clear

public void clear()
clean the cache

Specified by:
clear in class OntologyManagerCache


Universita' di Modena e Reggio Emilia