public class CachingISLookUp<D extends eu.dnetlib.domain.DriverResource> extends Object implements ISLookUp<D>
| Constructor and Description |
|---|
CachingISLookUp() |
| Modifier and Type | Method and Description |
|---|---|
List<D> |
fetch(eu.dnetlib.domain.SearchCriteria criteria)
Performs a search by criteria.
|
List<String> |
fetch(String XQuery)
Performs a direct XQuery search and returns a list of xml profiles that
match the criteria, without any processing.
|
D |
getById(String id)
Returns the resource profile with the given search id.
|
List<D> |
getByid(String[] ids)
Returns the resource profiles with the given ids.
|
D |
getUniqueResult(eu.dnetlib.domain.SearchCriteria criteria)
Performs a quick search and returns the unique result.
|
List<D> |
performQuickSearch(eu.dnetlib.domain.SearchCriteria criteria)
Uses the appropriate method in ISLookUp and performs a query without
using a result set.
|
void |
setConverter(ResourceToXmlConverter<D> converter) |
void |
setCriteriaCache(net.sf.ehcache.Ehcache criteriaCache) |
void |
setIdCache(net.sf.ehcache.Ehcache idCache) |
void |
setLookupLocator(ServiceLocator<eu.dnetlib.api.enabling.ISLookUpService> lookupLocator) |
public D getById(String id) throws ISLookUpException
ISLookUpgetById in interface ISLookUp<D extends eu.dnetlib.domain.DriverResource>id - the idISLookUpExceptionpublic List<D> getByid(String[] ids) throws ISLookUpException
ISLookUpgetByid in interface ISLookUp<D extends eu.dnetlib.domain.DriverResource>ids - the list of ids.ISLookUpExceptionpublic List<D> fetch(eu.dnetlib.domain.SearchCriteria criteria) throws ISLookUpException
ISLookUpfetch in interface ISLookUp<D extends eu.dnetlib.domain.DriverResource>criteria - the search criteria.ISLookUpExceptionpublic List<D> performQuickSearch(eu.dnetlib.domain.SearchCriteria criteria) throws ISLookUpException
ISLookUpperformQuickSearch in interface ISLookUp<D extends eu.dnetlib.domain.DriverResource>criteria - the search criteria.ISLookUpExceptionpublic List<String> fetch(String XQuery)
ISLookUppublic D getUniqueResult(eu.dnetlib.domain.SearchCriteria criteria) throws ISLookUpException
ISLookUpgetUniqueResult in interface ISLookUp<D extends eu.dnetlib.domain.DriverResource>criteria - the search criteria.ISLookUpException - if there is more than one result.public void setLookupLocator(ServiceLocator<eu.dnetlib.api.enabling.ISLookUpService> lookupLocator)
public void setConverter(ResourceToXmlConverter<D> converter)
public void setCriteriaCache(net.sf.ehcache.Ehcache criteriaCache)
public void setIdCache(net.sf.ehcache.Ehcache idCache)
Copyright © 2022. All rights reserved.