Package psidev.psi.mi.jami.bridges.ols
Class CachedOlsOntologyTermFetcher
- java.lang.Object
-
- psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
-
- psidev.psi.mi.jami.bridges.ols.CachedOlsFetcher<OntologyTerm>
-
- psidev.psi.mi.jami.bridges.ols.CachedOlsOntologyTermFetcher
-
- All Implemented Interfaces:
CachedFetcher,CvTermFetcher<OntologyTerm>,OntologyTermFetcher
public class CachedOlsOntologyTermFetcher extends CachedOlsFetcher<OntologyTerm> implements OntologyTermFetcher
Code for the cache based on the CachedOntologyService at uk.ac.ebi.intact.bridges.olslight;- Since:
- 03/07/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Field Summary
Fields Modifier and Type Field Description static StringCACHE_NAMEConstantCACHE_NAME="ontology-cache"-
Fields inherited from class psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
EHCACHE_CONFIG_FILE
-
-
Constructor Summary
Constructors Constructor Description CachedOlsOntologyTermFetcher()Constructor for CachedOlsOntologyTermFetcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<OntologyTerm>fetchRootTerms(String databaseName)fetchRootTerms.Set<OntologyTerm>fetchRootTerms(CvTerm database)fetchRootTerms.protected OntologyTermFetchergetDelegateFetcher()Getter for the fielddelegateFetcher.-
Methods inherited from class psidev.psi.mi.jami.bridges.ols.CachedOlsFetcher
fetchByIdentifier, fetchByIdentifier, fetchByIdentifiers, fetchByIdentifiers, fetchByName, fetchByName, fetchByNames, fetchByNames
-
Methods inherited from class psidev.psi.mi.jami.bridges.fetcher.AbstractCachedFetcher
clearCache, getFromCache, initialiseCache, initialiseCache, shutDownCache, storeInCache
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.bridges.fetcher.CachedFetcher
clearCache, getFromCache, initialiseCache, initialiseCache, shutDownCache, storeInCache
-
Methods inherited from interface psidev.psi.mi.jami.bridges.fetcher.CvTermFetcher
fetchByIdentifier, fetchByIdentifier, fetchByIdentifiers, fetchByIdentifiers, fetchByName, fetchByName, fetchByNames, fetchByNames
-
-
-
-
Field Detail
-
CACHE_NAME
public static final String CACHE_NAME
ConstantCACHE_NAME="ontology-cache"- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CachedOlsOntologyTermFetcher
public CachedOlsOntologyTermFetcher() throws BridgeFailedExceptionConstructor for CachedOlsOntologyTermFetcher.
- Throws:
BridgeFailedException- if any.
-
-
Method Detail
-
fetchRootTerms
public Set<OntologyTerm> fetchRootTerms(String databaseName) throws BridgeFailedException
fetchRootTerms.
- Specified by:
fetchRootTermsin interfaceOntologyTermFetcher- Parameters:
databaseName- : ontology database name- Returns:
- a set of root terms for the ontology matching this database name
- Throws:
BridgeFailedException- if any.
-
fetchRootTerms
public Set<OntologyTerm> fetchRootTerms(CvTerm database) throws BridgeFailedException
fetchRootTerms.
- Specified by:
fetchRootTermsin interfaceOntologyTermFetcher- Parameters:
database- aCvTermobject.- Returns:
- a
Setobject. - Throws:
BridgeFailedException- if any.
-
getDelegateFetcher
protected OntologyTermFetcher getDelegateFetcher()
Getter for the field
delegateFetcher.- Overrides:
getDelegateFetcherin classCachedOlsFetcher<OntologyTerm>- Returns:
- a
CvTermFetcherobject.
-
-