- Summary:
Add CACHE option in DataEngineContext, and change DataSetManager to make design-time
cache easy to use.
- Bugzilla Bug (s) Resolved:
N/A
- Description:
Now DtE support a global option applied to an instance of data engine. This
cache option will affect all query executed in this instance and will override
the cache property of data set and application context. There are three
possible values:
CACHE_USE_DEFAULT, CACHE_USE_DISABLE, CACHE_USE_ALWAYS.
Detailed explanation can be known from DataEngineContext class.
Meantime, several methods are added in DataSetManager
for making the DtE cache easy to use. The main methods are to retrieve the
metadata of data set and the data of data set.
- Tests Description:
Junit test
- Files Added:
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor2/DataSetResultCache.java
- Files Edited:
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/api/DataEngineContext.java
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/DataEngineImpl.java
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/odi/ICandidateQuery.java
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceQuery.java
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceAndDataSet.java
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/CandidateQuery.java
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSetCacheManager.java
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/CachedResultSet.java
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/cache/OdiAdapter.java
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/cache/SmartCache.java
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceFactory.java
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor2/DataSourceQuery.java
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor2/CandidateQuery.java
/org.eclipse.birt.data/test/org/eclipse/birt/data/engine/api/DataSetCacheTest.java
//----UI part
/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/DataSetManager.java
- Files Deleted:
/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor2/OdaCacheResultSet.java
- Notes to
Build Team:
N/A
- Notes to Developers:
N/A
- Notes to QA:
N/A
- Notes to
Documentation:
N/A