public abstract class BaseRetriever<T,C extends RetrieverContext> extends Object implements Retriever<T,C>
Modifier and Type | Field and Description |
---|---|
protected BaseCrmConnectionStrategy |
connectionStrategy |
Constructor and Description |
---|
BaseRetriever() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getCustomDisableCachePropertyName() |
protected Iterable<T> |
getItemFromCache(String entityName) |
Iterable<T> |
getMetadata(C ctx) |
protected boolean |
isResolveRequired(Iterable<T> metadata) |
protected Iterable<T> |
putItemInCache(String key,
Iterable<T> metadata) |
protected abstract Iterable<T> |
resolveMetadata(C ctx) |
void |
setCache(LRUCache<String,Iterable<T>> cache) |
void |
setConnectionStrategy(BaseCrmConnectionStrategy connectionStrategy) |
protected boolean |
useCache() |
protected BaseCrmConnectionStrategy connectionStrategy
public Iterable<T> getMetadata(C ctx) throws IOrganizationServiceExecuteOrganizationServiceFaultFaultFaultMessage
getMetadata
in interface Retriever<T,C extends RetrieverContext>
IOrganizationServiceExecuteOrganizationServiceFaultFaultFaultMessage
public void setConnectionStrategy(BaseCrmConnectionStrategy connectionStrategy)
setConnectionStrategy
in interface Retriever<T,C extends RetrieverContext>
public void setCache(LRUCache<String,Iterable<T>> cache)
setCache
in interface Retriever<T,C extends RetrieverContext>
protected boolean useCache()
protected abstract Iterable<T> resolveMetadata(C ctx) throws IOrganizationServiceExecuteOrganizationServiceFaultFaultFaultMessage
protected abstract String getCustomDisableCachePropertyName()
Copyright © 2010–2016. All rights reserved.