it.eng.spagobi.analiticalmodel.document.handlers
Class LovResultCacheManager
java.lang.Object
it.eng.spagobi.analiticalmodel.document.handlers.LovResultCacheManager
public class LovResultCacheManager
- extends java.lang.Object
This class caches LOV (list of values) executions' result.
The key of the cache element is composed by the user's identifier and the LOV definition.
In case the LOV is a query and there are dependencies, the wrapped statement is used instead of the original statement.
- Author:
- Davide Zerbetto (davide.zerbetto@eng.it)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LovResultCacheManager
public LovResultCacheManager()
getLovResult
public java.lang.String getLovResult(it.eng.spago.security.IEngUserProfile profile,
BIObjectParameter parameter,
ExecutionInstance executionInstance,
boolean retrieveIfNotcached)
throws java.lang.Exception
- Returns the LOV result. If the LOV result is in cache, it is returned;
otherwise, if retrieveIfNotcached is true, the LOV is executed and
returned, otherwise null is returned.
- Parameters:
profile
- The user profile objectparameter
- The BIObjectParameter to retrieve the value forexecutionInstance
- The execution instanceretrieveIfNotcached
- If true and LOV is not cached, the LOV executed and cached,
otherwise the LOV is not executed (and not cached)
- Returns:
- the LOV result, or null if the LOV is not cached and
retrieveIfNotcached is false
- Throws:
java.lang.Exception