org.meta2project.storage.cache
Class OntologyCache
java.lang.Object
org.meta2project.storage.cache.OntologyCache
public class OntologyCache
- extends java.lang.Object
- Author:
- Anton Malykh
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OntologyCache
public OntologyCache(DBCache cache)
getOntology
public DBOntology getOntology(DBConnection con,
long id)
throws NotFoundException
- Throws:
NotFoundException
getOntology
public Ontology getOntology(DBConnection con,
java.lang.String uri)
getOntologieIds
public java.util.Collection<Ontology> getOntologieIds(DBConnection con)
createOntology
public Ontology createOntology(DBConnection con,
java.lang.String uri)
setURI
public void setURI(long id,
java.lang.String uri)
throws AlreadyExistsException
- Throws:
AlreadyExistsException
removeOntology
public void removeOntology(java.lang.String uri)